![]() |
|
![]() 高级会员
|
Retrieves file information for the specified file. BOOL WINAPI GetFileInformationByHandleEx( __in HANDLE hFile, __in FILE_INFO_BY_HANDLE_CLASS FileInformationClass, __out LPVOID lpFileInformation, __in DWORD dwBufferSize ); Parameters hFile A handle to the file. This handle should not be a pipe handle. The GetFileInformationByHandleEx function does not work with pipe handles. FileInformationClass The type of information to be returned to the calling application. For a list of values, see FILE_INFO_BY_HANDLE_CLASS. lpFileInformation A pointer to the buffer that receives the requested file information. The structure that is returned corresponds to the class that is specified by FileInformationClass. FileInformationClass FileInformation structure returned FileBasicInfo FILE_BASIC_INFO FileStandardInfo FILE_STANDARD_INFO FileNameInfo FILE_NAME_INFO FileStreamInfo FILE_STREAM_INFO FileCompressionInfo FILE_COMPRESSION_INFO FileAttributeTagInfo FILE_ATTRIBUTE_TAG_INFO FileIdBothDirectoryInfo FILE_ID_BOTH_DIR_INFO FileIdBothDirectoryRestartInfo FILE_ID_BOTH_DIR_INFO dwBufferSize The size of the lpFileInformation buffer, in bytes. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. Remarks If FileInformationClass is FileStreamInfo and the calls succeed but no streams are returned, the error that is returned by GetLastError is ERROR_HANDLE_EOF. Certain file information classes behave slightly differently on different operating system releases. These classes are supported by the underlying drivers, and any information they return is subject to change between operating system releases. This function is declared in Fileextd.h and implemented in Fileextd.lib; both are available for download at MSDN on the Win32 FileID API Library page. Transacted Operations If there is a transaction bound to the thread at the time of the call, then the function returns the compressed file size of the isolated file view. Requirements 这个函数貌似可以返回。。 只是我感觉你的SDK 里面没有的可能性极大。
|
||
|
![]() |
| 书签 |
![]() |
该主题: "【求助】如何通过文件句柄得到文件路径?" 因在一年内没有任何回复而自动关闭。 如果您还对该主题感兴趣或者想参与对此主题的讨论,请您重新发表一篇相关的新主题。 |
| 主题工具 | |
| 显示模式 | |
|
|
|||||
相似的主题
|
||||
| 主题 | 主题作者 | 版面 | 回复 | 最后发表 |
| 【求助】已知TEdit、TComboBox类控件句柄如何进行控件通讯?采用SDK的C方式 | mycaipeng | 『安全编程论坛』 | 3 | 2007-12-17 22:29:58 |
| 【求助】如何得到其他程序的窗口句柄 | Troy | 『求助问答区』 | 1 | 2007-09-14 09:47:01 |
| 【求助】如何通过VC编程卸载其它进程的DLL模块? | HSXiaogang | 『安全编程论坛』 | 6 | 2007-08-27 16:34:32 |
| 【求助】如何通过堆栈逆向寻找关键 | HaiNaby | 『软件调试论坛』 | 10 | 2007-07-09 12:48:04 |
| 【求助】HOOK NTCreateProcess后得到EXE文件名 | langouster | 『软件调试论坛』 | 10 | 2007-05-26 02:45:14 |