网站首页  词典首页

请输入您要查询的函数:

 

术语 checknamelegaldos8dot3
释义 CheckNameLegalDOS8Dot3
语法:
C++
BOOL WINAPI CheckNameLegalDOS8Dot3(
__in LPCTSTR lpName,
__out_opt LPSTR lpOemName,
__in DWORD OemNameSize,
__out_opt PBOOL pbNameContainsSpaces,
__out PBOOL pbNameLegal
);
CheckNameLegalDOS8Dot3功能
确定指定的名称可以用来创建一个FAT文件系统的文件。
参数
lpName [in]
文件名,在8.3格式。
lpOemName [指出,可选]
阿一个缓冲区,它接收的OEM字符串对应名称的指针。此参数可以为NULL。
OemNameSize [in]
该lpOemName缓冲区的大小,以字符。如果lpOemName为NULL,这个参数必须是0(零)。
pbNameContainsSpaces [指出,可选]
指示是否包含空格的名称。此参数可以为NULL。如果名称是不是有效的8.3 FAT文件系统的名称,这个参数是不确定的。
pbNameLegal [out]
如果函数成功,此参数表示文件名是否是一个有效的8.3 FAT文件名时,当前的OEM代码页是应用到文件的名称。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值为0(零)。为了获得更多错误信息,调用GetLastError。
备注
此功能可用于确定是否文件名可以被传递给一个16位基于Windows的应用程序或MS - DOS的应用程序。
要求:
最低支持clientWindows SP1的Vista中,Windows XP的
最低支持serverWindows服务器2003
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesCheckNameLegalDOS8Dot3W(Unicode)和CheckNameLegalDOS8Dot3A(ANSI)的
参见
文件管理函数
GetOEMCP
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==CheckNameLegalDOS8Dot3 Function
Determines whether the specified name can be used to create a file on a FAT file system.
Syntax
C++
BOOL WINAPI CheckNameLegalDOS8Dot3(
__in LPCTSTR lpName,
__out_opt LPSTR lpOemName,
__in DWORD OemNameSize,
__out_opt PBOOL pbNameContainsSpaces,
__out PBOOL pbNameLegal
);
Parameters
lpName [in]
The file name, in 8.3 format.
lpOemName [out, optional]
A pointer to a buffer that receives the OEM string that corresponds to Name. This parameter can be NULL.
OemNameSize [in]
The size of the lpOemName buffer, in characters. If lpOemName is NULL, this parameter must be 0 (zero).
pbNameContainsSpaces [out, optional]
Indicates whether or not a name contains spaces. This parameter can be NULL. If the name is not a valid 8.3 FAT file system name, this parameter is undefined.
pbNameLegal [out]
If the function succeeds, this parameter indicates whether a file name is a valid 8.3 FAT file name when the current OEM code page is applied to the file name.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError .
Remarks
This function can be used to determine whether or not a file name can be passed to a 16-bit Windows-based application or an MS-DOS-based application.
Requirements
Minimum supported clientWindows Vista, Windows XP with SP1
Minimum supported serverWindows Server 2003
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesCheckNameLegalDOS8Dot3W (Unicode) and CheckNameLegalDOS8Dot3A (ANSI)
See Also
File Management Functions
GetOEMCP
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363807(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:26:10