Compartilhar via


FSDMGR_DeviceHandleToHDSK (Compact 2013)

3/26/2014

This function converts a true device handle into an HDSK for use in subsequent calls to the FSDMGR helper functions.

Syntax

HDSK FSDMGR_DeviceHandleToHDSK(
  HANDLE hDisk
);

Parameters

  • hDisk
    [in] Handle of a disk device, passed to the partition driver in PD_OpenStore.

Return Value

A non-NULL value indicates success. NULL indicates failure.

Remarks

This function gives partition drivers access to the FSDMGR helper functions normally used by file system drivers (FSDs). The HDSK value returned by this function can be used in calls to the FSDMGR_GetRegistryValue, the FSDMGR_GetRegistryString, and the FSDMGR_GetRegistryFlag functions to read values from the registry associated with a partition driver. The HDSK value can also be used to perform disk I/O using the FSDMGR_DiskIoControl function.

Requirements

Header

fsdmgr.h

Library

Fsdmgr.lib

See Also

Reference

FSDMGR Functions
FSD Functions
PD_OpenStore
FSDMGR_GetRegistryValue
FSDMGR_GetRegistryString
FSDMGR_GetRegistryFlag
FSDMGR_DiskIoControl