| 1 | /* $Id: relaywin.h,v 1.1 1999-12-01 01:12:54 phaller Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | *
|
|---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 6 | *
|
|---|
| 7 | * Win32 SOCK32 for OS/2
|
|---|
| 8 | *
|
|---|
| 9 | * Copyright (C) 1999 Patrick Haller <phaller@gmx.net>
|
|---|
| 10 | *
|
|---|
| 11 | */
|
|---|
| 12 |
|
|---|
| 13 | /* Remark:
|
|---|
| 14 | * - this is an object window that acts as "relay", this is
|
|---|
| 15 | * it receives WSAAsyncSelect()'s messages and redirects
|
|---|
| 16 | * them to the appropriate PostMessageA function of USER32.
|
|---|
| 17 | */
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | #ifndef _RELAYWIN_H_
|
|---|
| 21 | #define _RELAYWIN_H_
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | /*****************************************************************************
|
|---|
| 25 | * Includes *
|
|---|
| 26 | *****************************************************************************/
|
|---|
| 27 |
|
|---|
| 28 | /* object.c: the object window procedure on thread 2 */
|
|---|
| 29 | // os2 includes
|
|---|
| 30 | #define INCL_DOSPROCESS
|
|---|
| 31 | #define INCL_WIN
|
|---|
| 32 | #include <os2.h>
|
|---|
| 33 |
|
|---|
| 34 | /*****************************************************************************
|
|---|
| 35 | * Structures *
|
|---|
| 36 | *****************************************************************************/
|
|---|
| 37 |
|
|---|
| 38 | typedef struct tagHwndMsgPair
|
|---|
| 39 | {
|
|---|
| 40 | HWND hwnd; /* target window */
|
|---|
| 41 | ULONG ulMsg; /* the message code to send */
|
|---|
| 42 | } HWNDMSGPAIR, *PHWNDMSGPAIR;
|
|---|
| 43 |
|
|---|
| 44 | /*****************************************************************************
|
|---|
| 45 | * Prototypes *
|
|---|
| 46 | *****************************************************************************/
|
|---|
| 47 |
|
|---|
| 48 | ULONG RelayAlloc (HWND hwnd, ULONG ulMsg);
|
|---|
| 49 | ULONG RelayFree (ULONG ulID);
|
|---|
| 50 | ULONG RelayFreeByHwnd(HWND hwnd);
|
|---|
| 51 | PHWNDMSGPAIR RelayQuery (ULONG ulID);
|
|---|
| 52 | MRESULT RelayWindowProc(HWND hwnd, ULONG ulMsg, MPARAM mp1, MPARAM mp2);
|
|---|
| 53 | HWND RelayInitialize(HWND hwndPost);
|
|---|
| 54 | BOOL RelayTerminate (HWND hwndRelay);
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | #endif /* _RELAYWIN_H_ */
|
|---|
| 58 |
|
|---|