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); } }
public static extern int PropertySheet(ref PROPSHEETHEADER psh);