首页 / WINDOWS / windows api 梳理
windows api 梳理
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了windows api 梳理,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3649字,纯文字阅读大概需要6分钟。
内容图文
![windows api 梳理](/upload/InfoBanner/zyjiaocheng/961/3543a559c7e5444f9860c7f9e5d56c0f.jpg)
PathMatchSpec Function
Searches a string using a Microsoft MS-DOS wild card match type.
Syntax
BOOL PathMatchSpec( LPCTSTR pszFileParam, LPCTSTR pszSpec );
Parameters
- pszFileParam
- [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the path to be searched.
- pszSpec
- [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the file type for which to search. For example, to test whether or not pszFileParam is a DOC file, pszSpec should be set to "*.doc".
Return Value
Returns TRUE if the string matches, or FALSE otherwise.?
Function Information
==================================================================================================================================
Minimum DLL Version shlwapi.dll version 4.71 or later Custom Implementation No Header shlwapi.h Import library shlwapi.lib Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0 Unicode Implemented as ANSI and Unicode versions.
GetCompressedFileSize
The getcompressedfilesize function retrieves the actual number of bytes of disk storage used to store a specified file. If the file is located on a volume that supports compression and the file is compressed, the value obtained is the compressed size of the specified file. If the file is located on a volume that supports sparse files and the file is a sparse file, the value obtained is the sparse size of the specified file.
DWORD GetCompressedFileSize( LPCTSTR lpFileName, LPDWORD lpFileSizeHigh );?
Parameters
- lpFileName
- [in] Pointer to a null-terminated string that specifies the name of the file.
Do not specify the name of a file on a nonseeking device, such as a pipe or a communications device, as its file size has no meaning.
- lpFileSizeHigh
- [out] Pointer to a variable that receives the high-order DWORD of the compressed file size. The function's return value is the low-order DWORD of the compressed file size.
This parameter can be NULL if the high-order DWORD of the compressed file size is not needed. Files less than 4 gigabytes in size do not need the high-orderDWORD.
Return Values
If the function succeeds, the return value is the low-order DWORD of the actual number of bytes of disk storage used to store the specified file, and iflpFileSizeHigh is non-NULL, the function puts the high-order DWORD of that actual value into theDWORD pointed to by that parameter. This is the compressed file size for compressed files, the actual file size for noncompressed files.
If the function fails, and lpFileSizeHigh is NULL, the return value is INVALID_FILE_SIZE. To get extended error information, callGetLastError.
If the return value is INVALID_FILE_SIZE and lpFileSizeHigh is non-NULL, an application must callGetLastError to determine whether the function has succeeded (value is NO_ERROR) or failed (value is other than NO_ERROR).
Requirements
Client | Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation. |
---|---|
Server | Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server. |
Header |
Declared in Winbase.h; include Windows.h. |
Library |
Link to Kernel32.lib. |
DLL | Requires Kernel32.dll. |
Unicode |
Implemented as GetCompressedFileSizeW (Unicode) and GetCompressedFileSizeA (ANSI). |
转载于:https://www.cnblogs.com/riasky/p/3473135.html
内容总结
以上是互联网集市为您收集整理的windows api 梳理全部内容,希望文章能够帮你解决windows api 梳理所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。