FSDMGR Helper Functions for FSD Developers
来源:互联网 发布:act网络课程 编辑:程序博客网 时间:2024/06/01 07:18
FSDMGR provides many helper functions to make developing an FSD easier. In particular, registry helper functions provide a simple mechanism for configuring an FSD for a particular storage device and I/O helper functions provide a media-independent mechanism for communicating with a block/disk driver. These functions are defined in public/common/sdk/inc/fsdmgr.h.
FSDMGR_GetVolumeName
Used by an FSD to retrieve the name of the volume that was registered (the name of the folder where it is mounted, e.g. /Storage Card). Typically, the only reason an FSD would need to know the name of its volume is for posting callback file notifications.
FSDMGR_GetRegistryValue
FSDMGR_GetRegistryString
FSDMGR_GetRegistryFlag
A set of registry helper functions that allow an FSD to read registry settings without being aware of the registry key from which it was loaded. It is advised that all FSDs use these registry helper functions to load run-time settings. All three helper functions search the profile file system key and the base file system key (in that order).
; profile file system key:
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/MyProfile/MyFSD]
"RegistryValue1"=dword:1
; base file system key:
[HKEY_LOCAL_MACHINE/System/StorageManager/MyFSD]
"RegistryString1"="test string"
Because of the profile key search, it is possible for an FSD to have multiple sets of configurations. These unique configurations can be targeted at different storage devices advertising different storage profile names.
FSDMGR_RegisterVolume
Invoked by an FSD when it is mounted (from FSD_MountDisk), this function associates an instance of an FSD (volume) with a partition on a disk. See more details in the section “Interacting with FSDMGR” below.
FSDMGR_DeregisterVolume
Invoked by an FSD when it is ummounted (from FSD_UnmountDisk), this function disassociates an instance of an FSD (volume) with a partition on a disk. See more details in the section “Interacting with FSDMGR” below.
FSDMGR_CreateSearchHandle
FSDMGR_CreateFileHandle
Helper functions used by an FSD in functions that return a HANDLE value: FSD_FindFirstFileW and FSD_CreateFileW. These functions convert the FSD’s handle context object into a search or file handle that can be returned to the caller. See more details in the section “Interacting with FSDMGR” below.
FSDMGR_GetDiskInfo
Used by an FSD to retrieve geometry for the underlying disk partition. This function is typically used to retrieve the sector size for the media, which is required information for performing subsequent disk I/O operations. Also provided is the total number of sectors in the partition. The FSD has access to all of these sectors.
FSDMGR_ReadDisk
A simple disk-read function; reads a number of contiguous sectors and returns them to the FSD.
FSDMGR_WriteDisk
A simple disk-write function; writes FSD-provided data to a number of contiguous sectors.
FSDMGR_ReadDiskEx
A more advanced disk-read function; reads a number of contiguous sectors into multiple FSD-provided buffers.
FSDMGR_WriteDiskEx
A more advanced disk-write function; writes data from a number of FSD-provided buffers to contiguous sectors.
FSDMGR_DiskIoControl
A generic disk I/O function for performing storage-driver specific operations. Any disk control code can be passed to this function (IOCTL_DISK_xxx).
- FSDMGR Helper Functions for FSD Developers
- 第九章 Helper functions and types for Libevent
- IP Helper Functions
- Registry Configuration for an FSD
- How to use iPhone with File I/O Functions: A Tutorial for Software Developers
- How to use iPhone with File I/O Functions: A Tutorial for Software Developers
- fsd
- fsd
- fsd
- fsd
- fsd
- CKEditor Helper for CodeIgniter
- Mvc Helper for Edit
- C# for Delphi developers
- Books for Developers
- AI for Game Developers
- Talk: Google for developers
- Cryptography for Developers
- 潘爱民::介绍一本关于ATL的书《ATL Internals》 ----转
- 异常记录:org.springframework.orm.hibernate3.HibernateQueryException:PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested ex
- 动软代码生成器 修改源码 (2010-3-13 更新 修改了DAL 层生成插件和BLL层代码生成插件 )
- Tomcat虚拟目录设置
- 编写NT服务程序
- FSDMGR Helper Functions for FSD Developers
- 硬盘安装RHEL方法
- DX步步为营(一)——D3D初始化步骤
- 09年上半年软考上午题第17/18题笔记
- 励志改变人生-励志日志
- 失败就是进步
- 回归激情
- VC下判断文件是否存在的方法
- MapX从数据库读取数据形成新图层(C#)