PathRemoveBlanks (shlwapi)
Last changed: anonymous

.
Summary
TODO - a short description

C# Signature:

/// <summary>
/// Removes all leading and trailing spaces from a string.
/// </summary>
/// <param name="pszPath">A pointer to a null-terminated string of length MAX_PATH from which to strip all leading and trailing spaces.</param>
[DllImport("shlwapi.dll", EntryPoint = "PathRemoveBlanksW",  SetLastError = True, CharSet = CharSet.Unicode)]
static extern void PathRemoveBlanks([MarshalAs(UnmanagedType.LPTStr)]lpszString As String);

VB.NET Signature:

''' <summary>
''' Removes all leading and trailing spaces from a string.
''' </summary>
''' <param name="pszPath">A pointer to a null-terminated string of length MAX_PATH from which to strip all leading and trailing spaces.</param>
<DllImport("shlwapi.dll", EntryPoint:="PathRemoveBlanksW",  SetLastError:=True, CharSet:=CharSet.Unicode)> _
Public sub PathRemoveBlanks(<MarshalAs(UnmanagedType.LPTStr)>lpszString As String)
End sub

VB Signature:

Public Declare Sub PathRemoveBlanks Lib "shlwapi" Alias "PathRemoveBlanksA" _
        (ByVal lpszString As String)

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation