Exemplo n.º 1
0
        internal static bool GetFileAttributesEx(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation)
        {
            string?nameWithExtendedPrefix = PathInternal.EnsureExtendedPrefixIfNeeded(name);

            Debug.Assert(nameWithExtendedPrefix != null, "null not expected when non-null is passed"); // TODO-NULLABLE: https://github.com/dotnet/roslyn/issues/26761
            return(GetFileAttributesExPrivate(nameWithExtendedPrefix, fileInfoLevel, ref lpFileInformation));
        }
Exemplo n.º 2
0
 private static extern bool GetFileAttributesEx(string lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, out WIN32_FIND_DATA fileData);
Exemplo n.º 3
0
 public static extern int GetFileAttributesExW([NativeTypeName("LPCWSTR")] ushort *lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, [NativeTypeName("LPVOID")] void *lpFileInformation);
Exemplo n.º 4
0
 public static extern bool GetFileAttributesEx(string lpFileName,
    GET_FILEEX_INFO_LEVELS fInfoLevelId, IntPtr lpFileInformation);
Exemplo n.º 5
0
        internal static bool GetFileAttributesEx(string?name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation)
        {
            name = PathInternal.EnsureExtendedPrefixIfNeeded(name);

            return(GetFileAttributesExPrivate(name, fileInfoLevel, ref lpFileInformation));
        }
Exemplo n.º 6
0
 public static extern bool GetFileAttributesEx(
     [In] [MarshalAs(UnmanagedType.LPTStr)] string lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, IntPtr lpFileInformation);
 internal static bool GetFileAttributesEx(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation)
 {
     name = PathInternal.EnsureExtendedPrefixOverMaxPath(name);
     return GetFileAttributesExPrivate(name, fileInfoLevel, ref lpFileInformation);
 }
Exemplo n.º 8
0
 internal static bool GetFileAttributesEx(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation)
 {
     name = PathInternal.EnsureExtendedPrefixIfNeeded(name) !; // TODO-NULLABLE: Remove ! when [NotNullIfNotNull] respected
     return(GetFileAttributesExPrivate(name, fileInfoLevel, ref lpFileInformation));
 }
Exemplo n.º 9
0
 public static extern BOOL GetFileAttributesExA([NativeTypeName("LPCSTR")] sbyte *lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, [NativeTypeName("LPVOID")] void *lpFileInformation);
Exemplo n.º 10
0
 public extern static int GetFileAttributesTransactedW(
     [System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] string lpFileName,
     GET_FILEEX_INFO_LEVELS fInfoLevelId,
     out WIN32_FILE_ATTRIBUTE_DATA lpFileInformation,
     System.IntPtr hTransaction);
 internal static extern bool GetFileAttributesEx(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 12
0
 static extern bool GetFileAttributesExW([MarshalAs(UnmanagedType.LPWStr)] string lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, out WIN32_FILE_ATTRIBUTE_DATA fileData);
Exemplo n.º 13
0
 public static extern bool GetFileAttributesEx(string path, GET_FILEEX_INFO_LEVELS level, out WIN32_FILE_ATTRIBUTE_DATA data);
Exemplo n.º 14
0
 internal static extern Boolean GetFileAttributesExW(
     string lpFileName,
     GET_FILEEX_INFO_LEVELS fInfoLevelId,
     out WIN32_FILE_ATTRIBUTE_DATA fileData
     );
Exemplo n.º 15
0
 internal static extern bool GetFileAttributesTransacted(
     [In] string lpFileName
     , [In] GET_FILEEX_INFO_LEVELS fInfoLevelId
     , [Out] out WIN32_FILE_ATTRIBUTE_DATA attributes
     , [In] KtmTransactionHandle hTransaction);
Exemplo n.º 16
0
 static extern bool GetFileAttributesEx(string lpFileName,
                                        GET_FILEEX_INFO_LEVELS fInfoLevelId, IntPtr lpFileInformation);
Exemplo n.º 17
0
 static internal extern bool GetFileAttributesExW(string lpFileName, [In, MarshalAs(UnmanagedType.U4)] GET_FILEEX_INFO_LEVELS fInfoLevelId, out WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 18
0
 internal static extern bool GetFileAttributesEx(
     [In] string lpFileName,
     [In] GET_FILEEX_INFO_LEVELS fInfoLevelId,
     [Out] out WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
 private static extern bool GetFileAttributesExPrivate(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 20
0
 public static extern bool GetFileAttributesEx([MarshalAs(UnmanagedType.LPTStr)] string lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, out Microsoft.Win32.WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 21
0
 public static extern bool GetFileAttributesExFromApp(
     string lpFileName,
     GET_FILEEX_INFO_LEVELS fInfoLevelId,
     out WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 22
0
 public static extern bool GetFileAttributesEx(
     string lpFileName,
     GET_FILEEX_INFO_LEVELS fInfoLevelId,
     out WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 23
0
 private static partial bool GetFileAttributesExPrivate(
     string?name,
     GET_FILEEX_INFO_LEVELS fileInfoLevel,
     ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation);
Exemplo n.º 24
0
 private static extern bool GetFileAttributesEx(string lpFileName,
     GET_FILEEX_INFO_LEVELS fInfoLevelId,
     out WIN32_FILE_ATTRIBUTE_DATA fileData);
Exemplo n.º 25
0
 public static extern bool GetFileAttributesEx(string lpFileName,
                                               GET_FILEEX_INFO_LEVELS fInfoLevelId, out WIN32_FILE_ATTRIBUTE_DATA fileData);
Exemplo n.º 26
0
 internal static bool GetFileAttributesEx(string name, GET_FILEEX_INFO_LEVELS fileInfoLevel, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation)
 {
     name = PathInternal.EnsureExtendedPrefixOverMaxPath(name);
     return(GetFileAttributesExFromApp(name, fileInfoLevel, ref lpFileInformation));
 }