[7866] | 1 | /* $Id: winevent.cpp,v 1.2 2002-02-11 13:48:42 sandervl Exp $ */
|
---|
[6618] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Win32 windows special event handling
|
---|
| 5 | *
|
---|
| 6 | * Copyright 2001 Patrick Haller
|
---|
| 7 | *
|
---|
| 8 | *
|
---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 10 | *
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | //Attention: many functions belong to other subsystems, move them to their
|
---|
| 14 | // right place!
|
---|
| 15 |
|
---|
| 16 | #include <odin.h>
|
---|
| 17 | #include <odinwrap.h>
|
---|
| 18 | #include <os2sel.h>
|
---|
| 19 |
|
---|
| 20 | #include <os2win.h>
|
---|
| 21 | #include <misc.h>
|
---|
| 22 | #include <winuser32.h>
|
---|
| 23 |
|
---|
| 24 | #include "user32.h"
|
---|
| 25 | #include <winicon.h>
|
---|
| 26 | #include "syscolor.h"
|
---|
| 27 | #include "pmwindow.h"
|
---|
| 28 | #include "oslibgdi.h"
|
---|
| 29 | #include "oslibwin.h"
|
---|
| 30 | #include "oslibprf.h"
|
---|
| 31 |
|
---|
| 32 | #include <wchar.h>
|
---|
| 33 | #include <stdlib.h>
|
---|
| 34 | #include <string.h>
|
---|
[21916] | 35 | //#include "oslibwin.h"
|
---|
[6618] | 36 | #include <winuser.h>
|
---|
[21916] | 37 | #include "win32wnd.h"
|
---|
[6618] | 38 | #include "initterm.h"
|
---|
| 39 |
|
---|
| 40 | #define DBG_LOCALLOG DBG_user32
|
---|
| 41 | #include "dbglocal.h"
|
---|
| 42 |
|
---|
| 43 | ODINDEBUGCHANNEL(USER32-WINEVENT)
|
---|
| 44 |
|
---|
[21916] | 45 | extern "C" {
|
---|
[6618] | 46 |
|
---|
| 47 | /*****************************************************************************
|
---|
| 48 | * Name : NotifyWinEvent
|
---|
| 49 | * Purpose : The NotifyWinEvent function signalsthe system that a specific
|
---|
| 50 | * predefined event occured. If any client applications have
|
---|
| 51 | * registered a hook function for the event, the system calls
|
---|
| 52 | * the client's hook function
|
---|
| 53 | * Parameters: DWORD event
|
---|
| 54 | * HWND hwnd
|
---|
| 55 | * LONG idObjectType
|
---|
| 56 | * LONG idObject
|
---|
| 57 | * Variables :
|
---|
| 58 | * Result : void
|
---|
| 59 | * Remark :
|
---|
| 60 | * Status : UNTESTED
|
---|
| 61 | *
|
---|
| 62 | * Author : Patrick Haller [2001-08-31]
|
---|
| 63 | *****************************************************************************/
|
---|
| 64 |
|
---|
[7866] | 65 | void WIN32API NotifyWinEvent(DWORD event, HWND hwnd, LONG idObjectType, LONG idObject)
|
---|
[6618] | 66 | {
|
---|
| 67 | /*
|
---|
| 68 | dprintf(("USER32::NotifyWinEvent not implemented"));
|
---|
| 69 |
|
---|
| 70 | switch(event)
|
---|
| 71 | {
|
---|
| 72 | // case EVENT_SYSTEM_xxx:
|
---|
| 73 | // @@@PH call the WinEventProc
|
---|
| 74 | // break;
|
---|
| 75 | }
|
---|
| 76 | */
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 | DWORD WIN32API UnhookWinEvent(DWORD arg1)
|
---|
| 80 | {
|
---|
| 81 | dprintf(("USER32: UnhookWinEvent %x - empty stub!!", arg1));
|
---|
| 82 |
|
---|
| 83 | return 0;
|
---|
| 84 | }
|
---|
| 85 |
|
---|
| 86 | DWORD WIN32API SetWinEventHook(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7)
|
---|
| 87 | {
|
---|
| 88 | dprintf(("USER32: SetWinEventHook %x %x %x %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4, arg5, arg6, arg7));
|
---|
| 89 |
|
---|
| 90 | return 0;
|
---|
| 91 | }
|
---|
[21916] | 92 |
|
---|
| 93 | } // extern "C"
|
---|