网站首页  词典首页

请输入您要查询的函数:

 

术语 findfirstfilenamew
释义 FindFirstFileNameW
语法:
C++
HANDLE WINAPI FindFirstFileNameW(
__in LPCWSTR lpFileName,
__in DWORD dwFlags,
__inout LPDWORD StringLength,
__inout PWCHAR LinkName
);
FindFirstFileNameW功能
创建一个所有指定文件的硬链接枚举。该FindFirstFileNameW函数返回的句柄可以到FindNextFileNameW后续调用函数使用枚举。
作为一个要执行此操作的事务操作,请使用FindFirstFileNameTransactedW功能。
参数
lpFileName [in]
该文件的名称。
dwFlags [in]
版权所有;指定零(0)。
StringLength [ in , out ]
该LinkName参数的大小,以字符。如果此调用将失败和错误是ERROR_MORE_DATA,即是此参数返回的值是大小LinkName必须包含的所有数据。
LinkName [ in , out ]
一个缓冲区指针存储链接名称的第一个找到lpFileName。
返回值
如果函数成功,返回值指定一个文件句柄。
如果函数失败,返回值是INVALID_HANDLE_VALUE。为了获得更多错误信息,调用GetLastError函数。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
文件管理函数
FindClose
FindFirstFileNameTransactedW
FindNextFileNameW
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==FindFirstFileNameW Function
Creates an enumeration of all the hard links to the specified file. The FindFirstFileNameW function returns a handle to the enumeration that can be used on subsequent calls to the FindNextFileNameW function.
To perform this operation as a transacted operation, use the FindFirstFileNameTransactedW function.
Syntax
C++
HANDLE WINAPI FindFirstFileNameW(
__in LPCWSTR lpFileName,
__in DWORD dwFlags,
__inout LPDWORD StringLength,
__inout PWCHAR LinkName
);
Parameters
lpFileName [in]
The name of the file.
dwFlags [in]
Reserved; specify zero (0).
StringLength [in, out]
The size of the LinkName parameter, in characters. If this call fails and the error is ERROR_MORE_DATA, the value that is returned by this parameter is the size that LinkName must be to contain all the data.
LinkName [in, out]
A pointer to a buffer to store the first link name found for lpFileName.
Return Value
If the function succeeds, the return value specifies a file handle.
If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call the GetLastError function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
File Management Functions
FindClose
FindFirstFileNameTransactedW
FindNextFileNameW
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364421(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:22:40