_InstallEventHandler() private method

private _InstallEventHandler ( IntPtr eventTargetRef, IntPtr handlerProc, int numtypes, EventTypeSpec typeList, IntPtr userData, IntPtr handlerRef ) : OSStatus
eventTargetRef System.IntPtr
handlerProc System.IntPtr
numtypes int
typeList EventTypeSpec
userData System.IntPtr
handlerRef System.IntPtr
return OSStatus
Ejemplo n.º 1
0
        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);
            }
        }