📄 file.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
/*
File: File.h
Contains: VirtualCE FSD file interface.
Written by: Craig Vinet
Copyright: (c) 2002 Connectix Corporation
*/
#ifndef _FILE_H
#define _FILE_H
// ------------------------------------------------------------
// Prototypes
// ------------------------------------------------------------
void InitFiles( void );
void CloseFiles( void );
HANDLE VCEFSD_CreateFileW( VolumeState* pVolume,
HANDLE hProc,
LPCWSTR lpFileName,
DWORD dwAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreate,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile );
BOOL VCEFSD_CloseFile( FileData* pFileData );
BOOL VCEFSD_ReadFile( FileData* pFileData,
PBYTE pBuffer,
DWORD cbRead,
PDWORD pNumBytesRead,
LPOVERLAPPED lpOverlapped );
BOOL VCEFSD_WriteFile( FileData* pFileData,
LPCVOID pBuffer,
DWORD cbWrite,
PDWORD pNumBytesWritten,
LPOVERLAPPED lpOverlapped);
DWORD VCEFSD_SetFilePointer( FileData* pFileData,
LONG lDistanceToMove,
PLONG pDistanceToMoveHigh,
DWORD dwMoveMethod );
BOOL VCEFSD_ReadFileWithSeek( FileData* pFileData,
PBYTE pBuffer,
DWORD cbRead,
PDWORD pNumBytesRead,
LPOVERLAPPED lpOverlapped,
DWORD dwLowOffset,
DWORD dwHighOffset );
BOOL VCEFSD_WriteFileWithSeek( FileData* pFileData,
PBYTE pBuffer,
DWORD cbWrite,
PDWORD pNumBytesWritten,
LPOVERLAPPED lpOverlapped,
DWORD dwLowOffset,
DWORD dwHighOffset );
DWORD VCEFSD_GetFileSize( FileData* pFileData,
PDWORD pFileSizeHigh );
BOOL VCEFSD_GetFileInformationByHandle( FileData* pFileData,
PBY_HANDLE_FILE_INFORMATION pFileInfo);
BOOL VCEFSD_FlushFileBuffers( FileData* pFileData );
BOOL VCEFSD_GetFileTime( FileData* pFileData,
PFILETIME pCreation,
PFILETIME pLastAccess,
PFILETIME pLastWrite );
BOOL VCEFSD_SetFileTime( FileData* pFileData,
PFILETIME pCreation,
PFILETIME pLastAccess,
PFILETIME pLastWrite );
BOOL VCEFSD_SetEndOfFile( FileData* pFileData );
#endif // _FILE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -