InitDiskErrorHandler (Compact 2013)
3/26/2014
This function (optional) is called by FSDMGR when a disk volume is mounted, and is typically used for an error handler to distinguish between the same file system mounted on different partitions and disks.
Syntax
BOOL InitDiskErrorHandler(
HDSK hDsk,
LPCWSTR pszVolumeName,
DWORD dwMountFlags
);
Parameters
- hDsk
[in] Handle to the disk.
- pszVolumeName
[in] Name of the volume to be mounted.
dwMountFlags
[in] Mount flags that indicate how the volume is mounted.The following table shows the possible values for dwMountFlags.
Value
Description
AFS_FLAG_HIDDEN
Mount as a hidden file system.
AFS_FLAG_BOOTABLE
Mount as a bootable file system.
AFS_FLAG_ROOTFS
Mount as root of file system.
AFS_FLAG_MOUNTROM
Mount the new file system as an additional ROM file system.
AFS_FLAG_SYSTEM
Mount as a system volume, which untrusted processes cannot access.
AFS_FLAG_PERMANENT
Mount as a permanent volume that cannot be unmounted.
AFS_FLAG_NETWORK
Mount as the UNC handler file system.
AFS_FLAG_KMODE
Mount as a volume that can only be directly accessed only by the kernel.
AFS_FLAG_DEBUGFS
Mount as the debug file system.
Return Value
Returns TRUE if successful; otherwise, returns FALSE and the error handler is unloaded.
Requirements
Header |
Fsderr.h |