Пример #1
0
 internal static extern SafeFileHandle CreateFileW(
     [In(), MarshalAs(UnmanagedType.LPWStr)] string lpFileName,
     [In()] uint dwDesiredAccess,
     [In()] NativeEnums.FileShare dwShareMode,
     [In()] IntPtr lpSecurityAttributes,
     [In()] NativeEnums.CreationDisposition dwCreationDisposition,
     [In()] uint dwFlagsAndAttributes,
     [In()] IntPtr hTemplateFile);
Пример #2
0
 internal static extern SafeProfileHandle OpenColorProfileW(
     [In()] ref NativeStructs.Mscms.PROFILE profile,
     [In()] NativeEnums.Mscms.ProfileAccess desiredAccess,
     [In()] NativeEnums.FileShare shareMode,
     [In()] NativeEnums.CreationDisposition creationMode
     );