private _InstallEventHandler ( |
||
eventTargetRef | ||
handlerProc | ||
numtypes | int | |
typeList | ||
userData | ||
handlerRef | ||
return | OSStatus |
internal static void InstallApplicationEventHandler(IntPtr uppHandlerProc, EventTypeSpec[] eventTypes, IntPtr userData, IntPtr handlerRef) { OSStatus errorCode = API._InstallEventHandler(API.GetApplicationEventTarget(), uppHandlerProc, eventTypes.Length, eventTypes, userData, handlerRef); if (errorCode != OSStatus.NoError) { throw new MacOSException(errorCode); } }