ShlwApiPathSetDlgItemPath Method

Sets the text of a child control in a window or dialog box, using PathCompactPath function to ensure the path fits in the control.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static void PathSetDlgItemPath(
	IntPtr hDlg,
	int id,
	string path
)

Parameters

hDlg  IntPtr
A handle to the dialog box or window.
id  Int32
The identifier of the control.
path  String
A string of maximum length MAX_PATH that contains the path to set in the control.

Remarks

See Also