FindFirstStream function kernel32
Win32Result<HANDLE>
FindFirstStream(
- PCWSTR lpFileName,
- STREAM_INFO_LEVELS infoLevel,
- Pointer<
NativeType> lpFindStreamData
Enumerates the first stream with a ::$DATA stream type in the specified file or directory.
To learn more, see learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-findfirststreamw.
Implementation
Win32Result<HANDLE> FindFirstStream(
PCWSTR lpFileName,
STREAM_INFO_LEVELS infoLevel,
Pointer lpFindStreamData,
) {
final result_ = FindFirstStreamW_Wrapper(
lpFileName,
infoLevel,
lpFindStreamData,
NULL,
);
return .new(value: .new(result_.value.ptr), error: result_.error);
}