示例#1
0
 internal void CreatePropertySheet(ref PROPSHEETHEADER psh)
 {
     //  Try and cast the proc, then call it.
     var procAddress = Kernel32.GetProcAddress(libraryHandle, "CreatePropertySheet");
     try
     {
         var proc = (CreatePropertySheetDelegate)Marshal.GetDelegateForFunctionPointer(
             procAddress, typeof(CreatePropertySheetDelegate));
         proc(ref psh);
     }
     catch (Exception exception)
     {
         //  DebugLog the exception and fail.
         Logging.DebugError(
             "NativeBridge: Failed to either load the proc (address is '" + procAddress.ToString("x8") +
             "'), marshal it or call it.", exception);
     }
 }
示例#2
0
 public static extern IntPtr PropertySheet(ref PROPSHEETHEADER psh);