public static IntPtr OpenColorProfile( ref Profile profile, ProfileAccess desiredAccess = ProfileAccess.Read, FileShareMode shareMode = FileShareMode.Read, CreatationMode creationMode = CreatationMode.OpenExisting) { var hProfile = _OpenColorProfile(ref profile, desiredAccess, shareMode, creationMode); if (hProfile == IntPtr.Zero) { throw new Win32Exception(Marshal.GetLastWin32Error()); } return(hProfile); }
private static extern IntPtr _OpenColorProfile( [In] ref Profile pProfile, [In] ProfileAccess dwDesiredAccess, [In] FileShareMode dwShareMode, [In] CreatationMode dwCreationMode);