PathRemoveArgs (shlwapi)
Last changed: -49.43.248.2

.
Summary
PathRemoveArgs - Removes any arguments from a given path.

C# Signature:

/// <summary>
/// Removes any arguments from a given path.
/// </summary>
/// <param name="lpszPath">Pointer to a null-terminated string of length MAX_PATH that contains the path from which to remove arguments.</param>
[DllImport("shlwapi.dll", EntryPoint = "PathRemoveArgsW", SetLastError = true, CharSet = CharSet.Unicode)]
static extern void PathRemoveArgs([MarshalAs(UnmanagedType.LPTStr)]System.Text.StringBuilder lpszPath);

VB.NET Signature

''' <summary>
''' Removes any arguments from a given path.
''' </summary>
''' <param name="lpszPath">Pointer to a null-terminated string of length MAX_PATH that contains the path from which to remove arguments.</param>
<DllImport("shlwapi.dll", EntryPoint:="PathRemoveArgsW", SetLastError:=True, CharSet:=CharSet.Unicode)> _
Public sub PathRemoveArgs(<MarshalAs(UnmanagedType.LPTStr)>lpszPath As System.Text.StringBuilder)
End sub

VB Signature:

Public Declare Sub PathRemoveArgs Lib "shlwapi" Alias "PathRemoveArgsA" _
        (ByVal pszPath 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