OPERATING SYSTEM EDITION FOR WINDOWS
Forcefully unmounts the mounted storage
long _stdcall StorageForceUnmount(PWideChar FileName);
static void ForceUnmount( unsigned short* fileName);
static void ForceUnmount( String* fileName);
static void ForceUnmount( string fileName)
Shared Sub ForceUnmount( ByVal fileName As String)
0 if the function succeeded or one of Error codes if the function failed.
Use this function to forcefully unmount the mounted storage. This can be necessary if the previous instance of the application crashed without unmounting the storage. Only the processes, which have access to the storage, may forcefully unmount it.