次の方法で共有


FILTERHOOK (Compact 2013)

3/26/2014

This structure contains function pointers to file system filter functions.

Syntax

typedef struct tagFILTERHOOK {
  DWORD cbSize;
  DWORD hVolume;
  PCLOSEVOLUME pCloseVolume;
  PCREATEDIRECTORYW pCreateDirectoryW; 
  PREMOVEDIRECTORYW pRemoveDirectoryW;
  PGETFILEATTRIBUTESW pGetFileAttributesW;
  PSETFILEATTRIBUTESW pSetFileAttributesW;
  PDELETEFILEW pDeleteFileW;
  PMOVEFILEW pMoveFileW;
  PDELETEANDRENAMEFILEW pDeleteAndRenameFileW;
  PGETDISKFREESPACEW pGetDiskFreeSpaceW;
  PNOTIFY pNotify;
  PREGISTERFILESYSTEMFUNCTION pRegisterFileSystemFunction;
  PFINDFIRSTFILEW pFindFirstFileW;
  PFINDNEXTFILEW pFindNextFileW;
  PFINDCLOSE pFindClose;
  PCREATEFILEW pCreateFileW;
  PREADFILE pReadFile;
  PREADFILEWITHSEEK pReadFileWithSeek;
  PWRITEFILE pWriteFile;
  PWRITEFILEWITHSEEK pWriteFileWithSeek;
  PSETFILEPOINTER pSetFilePointer;
  PGETFILESIZE pGetFileSize;
  PGETFILEINFORMATIONBYHANDLE pGetFileInformationByHandle;
  PFLUSHFILEBUFFERS pFlushFileBuffers;
  PGETFILETIME pGetFileTime;
  PSETFILETIME pSetFileTime;
  PSETENDOFFILE pSetEndOfFile;
  PDEVICEIOCONTROL pDeviceIoControl;
  PCLOSEFILE pCloseFile;
  PREFRESHVOLUME pRefreshVolume;
} FILTERHOOK, *PFILTERHOOK; 

Members

  • cbSize
    Set to sizeof(FILTERHOOK).
  • hVolume
    Handle to the volume.
  • pNotify
    Pointer to the MyFSD_Notify function.
  • pRefreshVolume
    Pointer to the MyFSD_RefreshVolume function.

Requirements

Header

fsdmgr.h

See Also

Reference

FSD Structures
FSD_HookVolume
FSD_UnhookVolume
MyFSD_CloseVolume
MyFSD_CreateDirectoryW
MyFSD_RemoveDirectoryW
MyFSD_GetFileAttributesW
MyFSD_SetFileAttributesW
MyFSD_DeleteFileW
MyFSD_MoveFileW
MyFSD_DeleteAndRenameFileW
MyFSD_GetDiskFreeSpaceW
MyFSD_FindFirstFileW
MyFSD_FindNextFileW
MyFSD_FindClose
MyFSD_CreateFileW
MyFSD_ReadFile
MyFSD_ReadFileWithSeek
MyFSD_WriteFile
MyFSD_WriteFileWithSeek
MyFSD_SetFilePointer
MyFSD_GetFileSize
MyFSD_GetFileInformationByHandle
MyFSD_FlushFileBuffers
MyFSD_GetFileTime
MyFSD_SetFileTime
MyFSD_SetEndOfFile
MyFSD_DeviceIoControl
MyFSD_CloseFile