网站首页  词典首页

请输入您要查询的函数:

 

术语 findfirststreamw
释义 FindFirstStreamW
语法:
C++
HANDLE WINAPI FindFirstStreamW(
__in LPCWSTR lpFileName,
__in STREAM_INFO_LEVELS InfoLevel,
__out LPVOID lpFindStreamData,
__reserved DWORD dwFlags
);
FindFirstStreamW功能
在指定的文件或目录枚举第一流。
作为一个要执行此操作的事务操作,请使用FindFirstStreamTransactedW功能。
参数
lpFileName [in]
完全限定文件名。
InfoLevel [in]
返回的数据信息的Level。此参数是在STREAM_INFO_LEVELS枚举类型的值之一。
lpFindStreamData [out]
阿一个缓冲区,它接收文件数据的指针。这一数据格式取决于InfoLevel价值。
dwFlags
保留供将来使用。此参数必须为零。
返回值
如果函数成功,返回值是一个搜索句柄可以在函数的FindNextStreamW随后调用。
如果函数失败,返回值是INVALID_HANDLE_VALUE。为了获得更多错误信息,调用GetLastError。
备注
该FindFirstStreamW函数打开一个搜索,并返回处理有关在指定的文件或目录第一流信息。对于文件,这始终是默认的数据流,::$数据。搜索后,建立了处理,请在FindNextStreamW它的功能在指定的文件或目录的其他流搜索。当搜索句柄不再需要,应该用FindClose关闭功能。
要编译的应用程序使用此函数,定义为0x0501或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
文件管理函数
FindClose
FindFirstStreamTransactedW
FindNextStreamW
STREAM_INFO_LEVELS
WIN32_FIND_STREAM_DATA
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==FindFirstStreamW Function
Enumerates the first stream in the specified file or directory.
To perform this operation as a transacted operation, use the FindFirstStreamTransactedW function.
Syntax
C++
HANDLE WINAPI FindFirstStreamW(
__in LPCWSTR lpFileName,
__in STREAM_INFO_LEVELS InfoLevel,
__out LPVOID lpFindStreamData,
__reserved DWORD dwFlags
);
Parameters
lpFileName [in]
The fully-qualified file name.
InfoLevel [in]
The information level of the returned data. This parameter is one of the values in the STREAM_INFO_LEVELS enumeration type.
lpFindStreamData [out]
A pointer to a buffer that receives the file data. The format of this data depends on the value of InfoLevel.
dwFlags
Reserved for future use. This parameter must be zero.
Return Value
If the function succeeds, the return value is a search handle that can be used in subsequent calls to the FindNextStreamW function.
If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call GetLastError .
Remarks
The FindFirstStreamW function opens a search handle and returns information about the first stream in the specified file or directory. For files, this is always the default data stream, ::$DATA. After the search handle has been established, use it in the FindNextStreamW function to search for other streams in the specified file or directory. When the search handle is no longer needed, it should be closed using the FindClose function.
To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0501 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
File Management Functions
FindClose
FindFirstStreamTransactedW
FindNextStreamW
STREAM_INFO_LEVELS
WIN32_FIND_STREAM_DATA
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364424(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:28:48