6 #define DEBUG_DEFINE_VARIABLES
11 #define DDE_PROC2WIN(proc_idx) ( (HWND) ~( (proc_idx)+1) )
12 #define DDE_WIN2PROC(win) ( (int) ~(short) ((win)+1) )
13 #define DDE_IsRemoteWindow(win) ( (win)<0xffff && (win)>=(0xffff-DDE_PROCS))
16 char *MessageTypeNames[0x400]={NULL};
17 char *dummy_store_for_debug_msg_name;
19 ldt_copy_entry ldt_copy[LDT_SIZE];
21 int LDT_GetEntry( int entry, ldt_entry *content )
26 int LDT_SetEntry( int entry, ldt_entry *content )
31 void dummy_usage_of_debug_msg_name()
33 dummy_store_for_debug_msg_name=debug_msg_name[0];
37 HWND GetDesktopWindow()
39 printf("GetDesktopWindow\n");
44 LONG SendMessage(HWND a,WORD b,WORD c,LONG d)
47 printf("SendMessage(%04x,%04x,%04x,%04lx)\n",a,b,c,d);
48 if (DDE_IsRemoteWindow(a) || a==(HWND)-1)
50 if (b!=WM_DDE_INITIATE)
53 msg.message= WM_DDE_ACK;
56 return DDE_SendMessage(&msg);
59 BOOL PostMessage(HWND a,WORD b,WORD c,LONG d)
61 printf("PostMessage(%04x,%04x,%04x,%04lx)\n",a,b,c,d);
65 HWND GetTopWindow(HWND a)
67 printf("GetTopWindow(%04x)\n",a);
71 WORD FreeSelector(WORD a)
73 printf("FreeSelector(%04x)\n",a);
77 /* stub that partially emulates the true GLOBAL_CreateBlock function */
78 HGLOBAL GLOBAL_CreateBlock( WORD flags, void *ptr, DWORD size,
79 HGLOBAL hOwner, BOOL isCode,
80 BOOL is32Bit, BOOL isReadOnly,
84 printf("GLOBAL_CreateBlock(flags=0x%x,ptr=0x%08lx, size=0x%x,hOwner=0x%x\n",
85 (int)flags, (long)ptr, (int)size, (int)hOwner);
86 printf("isCode=%d, is32Bit=%d, isReadOnly=%d, \n", isCode, is32Bit,
88 printf("*shmdata={handle=0x%x,sel=0x%x, shmid=%d})\n",
89 shmdata->handle, shmdata->sel, shmdata->shmid);
94 WND *WIN_FindWndPtr(HWND hwnd)
97 printf("WIN_FindWndPtr(%d)\n",hwnd);
101 win.dwStyle=WS_POPUP;
107 WORD GetCurrentPDB(void)
109 printf("GetCurrentPDB()\n");