GetWindowEventTarget() private method

private GetWindowEventTarget ( IntPtr window ) : IntPtr
window System.IntPtr
return System.IntPtr
Exemplo n.º 1
0
        internal static void InstallWindowEventHandler(IntPtr windowRef, IntPtr uppHandlerProc, EventTypeSpec[] eventTypes, IntPtr userData, IntPtr handlerRef)
        {
            OSStatus errorCode = API._InstallEventHandler(API.GetWindowEventTarget(windowRef), uppHandlerProc, eventTypes.Length, eventTypes, userData, handlerRef);

            if (errorCode != OSStatus.NoError)
            {
                throw new MacOSException(errorCode);
            }
        }