Click or drag to resize
ImDiskAPINotifyShellDriveLetter Method
Notify Explorer and other shell components that a new drive letter has been created. Called automatically by device creation after creating a drive letter. If no drive letter was created by a device creation routine or if API flags was set to turn off shell notification during device creation, this function can be called manually later. Note that calling this function has no effect if API flags are set to turn off shell notifications, or if supplied drive letter path does not specify an A-Z drive letter. This function returns TRUE if successful, FALSE otherwise. If FALSE is returned, GetLastError could be used to get actual error code.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static void NotifyShellDriveLetter(
	IntPtr WindowHandle,
	string DriveLetterPath
)

Parameters

WindowHandle
Type: SystemIntPtr
Window handle to use as parent handle for any message boxes. If this parameter is NULL, no message boxes are displayed.
DriveLetterPath
Type: SystemString
Drive letter path in one of formats A:\ or A:.
See Also