6 #define DEBUG_DEFINE_VARIABLES
10 #define DDE_PROC2WIN(proc_idx) ( (HWND) ~( (proc_idx)+1) )
11 #define DDE_WIN2PROC(win) ( (int) ~(short) ((win)+1) )
12 #define DDE_IsRemoteWindow(win) ( (win)<0xffff && (win)>=(0xffff-DDE_PROCS))
15 char *MessageTypeNames
[0x400]={NULL
};
16 char *dummy_store_for_debug_msg_name
;
18 ldt_copy_entry ldt_copy
[LDT_SIZE
];
20 int LDT_GetEntry( int entry
, ldt_entry
*content
)
25 int LDT_SetEntry( int entry
, ldt_entry
const *content
)
30 void dummy_usage_of_debug_msg_name()
32 dummy_store_for_debug_msg_name
=debug_msg_name
[0];
36 HWND32
GetDesktopWindow32()
38 printf("GetDesktopWindow\n");
43 LONG
SendMessage(HWND a
,WORD b
,WORD c
,LONG d
)
46 printf("SendMessage(%04x,%04x,%04x,%04lx)\n",a
,b
,c
,d
);
47 if (DDE_IsRemoteWindow(a
) || a
==(HWND
)-1)
49 if (b
!=WM_DDE_INITIATE
)
52 msg
.message
= WM_DDE_ACK
;
55 return DDE_SendMessage(&msg
);
58 BOOL
PostMessage(HWND a
,WORD b
,WORD c
,LONG d
)
60 printf("PostMessage(%04x,%04x,%04x,%04lx)\n",a
,b
,c
,d
);
64 HWND
GetTopWindow(HWND a
)
66 printf("GetTopWindow(%04x)\n",a
);
70 WORD
FreeSelector(WORD a
)
72 printf("FreeSelector(%04x)\n",a
);
76 /* stub that partially emulates the true GLOBAL_CreateBlock function */
77 HGLOBAL16
GLOBAL_CreateBlock( WORD flags
, void *ptr
, DWORD size
,
78 HGLOBAL16 hOwner
, BOOL isCode
,
79 BOOL is32Bit
, BOOL isReadOnly
,
83 printf("GLOBAL_CreateBlock(flags=0x%x,ptr=0x%08lx, size=0x%x,hOwner=0x%x\n",
84 (int)flags
, (long)ptr
, (int)size
, (int)hOwner
);
85 printf("isCode=%d, is32Bit=%d, isReadOnly=%d, \n", isCode
, is32Bit
,
87 printf("*shmdata={handle=0x%x,sel=0x%x, shmid=%d})\n",
88 shmdata
->handle
, shmdata
->sel
, shmdata
->shmid
);
93 WND
*WIN_FindWndPtr(HWND hwnd
)
96 printf("WIN_FindWndPtr(%d)\n",hwnd
);
100 win
.dwStyle
=WS_POPUP
;
106 WORD
GetCurrentPDB(void)
108 printf("GetCurrentPDB()\n");