FindFirstFileTransacted() private méthode

private FindFirstFileTransacted ( [ lpDirSpec, [ fInfoLevelId, [ lpFindFileData, [ fSearchOp, [ lpSearchFilter, [ dwAdditionalFlags, [ hTransaction ) : SafeFileHandle
lpDirSpec [
fInfoLevelId [
lpFindFileData [
fSearchOp [
lpSearchFilter [
dwAdditionalFlags [
hTransaction [
Résultat Microsoft.Win32.SafeHandles.SafeFileHandle
        private static SafeFileHandle FindFirstFileTransacted(string dirSpec, KtmTransactionHandle ktmTx, out NativeMethods.WIN32_FIND_DATA findFileData)
        {
            SafeFileHandle hFile = NativeMethods.FindFirstFileTransacted(
                dirSpec,
                NativeMethods.FINDEX_INFO_LEVELS.FindExInfoStandard,
                out findFileData,
                NativeMethods.FINDEX_SEARCH_OPS.FindExSearchNameMatch,
                IntPtr.Zero,
                0,
                ktmTx);

            if (hFile.IsInvalid)
            {
                NativeMethods.HandleCOMError(Marshal.GetLastWin32Error());
            }

            return(hFile);
        }