ImDiskRemoveMountPoint does not dismount the volume. It only removes the drive letter (or the directory "reparse point").
The API to use is ImDiskRemoveDevice. This function is used by ProxyCrypt when it has to dismount a volume.
Before ImDiskRemoveDevice, you may have to use ImDiskSetAPIFlags with IMDISK_API_FORCE_DISMOUNT. If it is called in a system shutdown, it would take to much time to send notifications to all applications; this can be avoided with the flag IMDISK_API_NO_BROADCAST_NOTIFY.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I unmount a volume with
ImDisk -D -m x:
RamDyn.exe process release.
But when I use ImDiskRemoveMountPoint API
volume unmout but process non release.
It work with ImDiskRemoveDevice.
Closed.
ImDiskRemoveMountPoint does not dismount the volume. It only removes the drive letter (or the directory "reparse point").
The API to use is ImDiskRemoveDevice. This function is used by ProxyCrypt when it has to dismount a volume.
Before ImDiskRemoveDevice, you may have to use ImDiskSetAPIFlags with IMDISK_API_FORCE_DISMOUNT. If it is called in a system shutdown, it would take to much time to send notifications to all applications; this can be avoided with the flag IMDISK_API_NO_BROADCAST_NOTIFY.
Ty.