| 1 | /* $Id: winevent.cpp,v 1.2 2002-02-11 13:48:42 sandervl Exp $ */
|
|---|
| 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>
|
|---|
| 35 | //#include <oslibwin.h>
|
|---|
| 36 | #include <win32wnd.h>
|
|---|
| 37 | #include <winuser.h>
|
|---|
| 38 | #include "initterm.h"
|
|---|
| 39 |
|
|---|
| 40 | #define DBG_LOCALLOG DBG_user32
|
|---|
| 41 | #include "dbglocal.h"
|
|---|
| 42 |
|
|---|
| 43 | ODINDEBUGCHANNEL(USER32-WINEVENT)
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | /*****************************************************************************
|
|---|
| 47 | * Name : NotifyWinEvent
|
|---|
| 48 | * Purpose : The NotifyWinEvent function signalsthe system that a specific
|
|---|
| 49 | * predefined event occured. If any client applications have
|
|---|
| 50 | * registered a hook function for the event, the system calls
|
|---|
| 51 | * the client's hook function
|
|---|
| 52 | * Parameters: DWORD event
|
|---|
| 53 | * HWND hwnd
|
|---|
| 54 | * LONG idObjectType
|
|---|
| 55 | * LONG idObject
|
|---|
| 56 | * Variables :
|
|---|
| 57 | * Result : void
|
|---|
| 58 | * Remark :
|
|---|
| 59 | * Status : UNTESTED
|
|---|
| 60 | *
|
|---|
| 61 | * Author : Patrick Haller [2001-08-31]
|
|---|
| 62 | *****************************************************************************/
|
|---|
| 63 |
|
|---|
| 64 | void WIN32API NotifyWinEvent(DWORD event, HWND hwnd, LONG idObjectType, LONG idObject)
|
|---|
| 65 | {
|
|---|
| 66 | /*
|
|---|
| 67 | dprintf(("USER32::NotifyWinEvent not implemented"));
|
|---|
| 68 |
|
|---|
| 69 | switch(event)
|
|---|
| 70 | {
|
|---|
| 71 | // case EVENT_SYSTEM_xxx:
|
|---|
| 72 | // @@@PH call the WinEventProc
|
|---|
| 73 | // break;
|
|---|
| 74 | }
|
|---|
| 75 | */
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
| 78 | DWORD WIN32API UnhookWinEvent(DWORD arg1)
|
|---|
| 79 | {
|
|---|
| 80 | dprintf(("USER32: UnhookWinEvent %x - empty stub!!", arg1));
|
|---|
| 81 |
|
|---|
| 82 | return 0;
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | DWORD WIN32API SetWinEventHook(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7)
|
|---|
| 86 | {
|
|---|
| 87 | dprintf(("USER32: SetWinEventHook %x %x %x %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4, arg5, arg6, arg7));
|
|---|
| 88 |
|
|---|
| 89 | return 0;
|
|---|
| 90 | }
|
|---|