- Timestamp:
- Feb 11, 2002, 2:48:43 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r7801 r7866 1 # $Id: Makefile,v 1. 99 2002-02-05 17:58:58sandervl Exp $1 # $Id: Makefile,v 1.100 2002-02-11 13:48:39 sandervl Exp $ 2 2 3 3 # … … 11 11 # Compiler, tools, and interference rules. 12 12 # 13 !if "$(DEBUG)" == "1" 14 DEFFILE = user32dbg.def 15 ORGDEFFILE = user32.def 16 !endif 17 13 18 WRC_PREFIX_RESOURCE=1 14 19 !include ../../makefile.inc … … 103 108 $(OBJDIR)\user32rsrc.obj \ 104 109 $(OBJDIR)\oslibprf.obj \ 110 !ifdef DEBUG 111 $(OBJDIR)\dbgwrap.obj \ 112 !endif 105 113 $(OBJDIR)\stats.obj 106 114 -
trunk/src/user32/dbglocal.cpp
r7801 r7866 1 /* $Id: dbglocal.cpp,v 1. 8 2002-02-05 17:58:58sandervl Exp $ */1 /* $Id: dbglocal.cpp,v 1.9 2002-02-11 13:48:40 sandervl Exp $ */ 2 2 3 3 /* … … 89 89 "win32wbaseprop", 90 90 "dcrgn", 91 "message" 91 "message", 92 "trace" 92 93 }; 93 94 //****************************************************************************** -
trunk/src/user32/dbglocal.h
r7801 r7866 1 /* $Id: dbglocal.h,v 1. 7 2002-02-05 17:58:59sandervl Exp $ */1 /* $Id: dbglocal.h,v 1.8 2002-02-11 13:48:40 sandervl Exp $ */ 2 2 3 3 /* … … 89 89 #define DBG_dcrgn 67 90 90 #define DBG_message 68 91 #define DBG_MAXFILES 69 91 #define DBG_trace 69 92 #define DBG_MAXFILES 70 92 93 93 94 extern USHORT DbgEnabledUSER32[DBG_MAXFILES]; -
trunk/src/user32/dde.cpp
r6517 r7866 1 /* $Id: dde.cpp,v 1.1 4 2001-08-11 12:03:35sandervl Exp $ */1 /* $Id: dde.cpp,v 1.15 2002-02-11 13:48:40 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 //****************************************************************************** 34 34 //****************************************************************************** 35 HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, PVOIDarg2, DWORD arg3, DWORD arg4)35 HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD arg4) 36 36 { 37 37 dprintf(("USER32: DdeAddData %x %x %x %x", arg1, arg2, arg3, arg4)); 38 return O32_DdeAddData(arg1, arg2, arg3, arg4);39 } 40 //****************************************************************************** 41 //****************************************************************************** 42 HDDEDATA WIN32API DdeClientTransaction( PVOIDarg1, DWORD arg2, HCONV arg3,38 return O32_DdeAddData(arg1, (PVOID)arg2, arg3, arg4); 39 } 40 //****************************************************************************** 41 //****************************************************************************** 42 HDDEDATA WIN32API DdeClientTransaction(LPBYTE arg1, DWORD arg2, HCONV arg3, 43 43 HSZ arg4, UINT arg5, UINT arg6, DWORD arg7, 44 PDWORDarg8)44 LPDWORD arg8) 45 45 { 46 46 dprintf(("USER32: DdeClientTransaction %x %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); 47 47 48 return O32_DdeClientTransaction( arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);48 return O32_DdeClientTransaction((PVOID)arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); 49 49 } 50 50 //****************************************************************************** … … 78 78 //****************************************************************************** 79 79 //****************************************************************************** 80 HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, PVOIDarg2, DWORD arg3, DWORD arg4,80 HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, LPBYTE arg2, DWORD arg3, DWORD arg4, 81 81 HSZ arg5, UINT arg6, UINT arg7) 82 82 { 83 83 dprintf(("USER32: DdeCreateDataHandle %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7)); 84 return O32_DdeCreateDataHandle(arg1, arg2, arg3, arg4, arg5, arg6, arg7);84 return O32_DdeCreateDataHandle(arg1, (PVOID)arg2, arg3, arg4, arg5, arg6, arg7); 85 85 } 86 86 //****************************************************************************** … … 148 148 //****************************************************************************** 149 149 //****************************************************************************** 150 DWORD WIN32API DdeGetData( HDDEDATA arg1, PVOIDarg2, DWORD arg3, DWORD arg4)150 DWORD WIN32API DdeGetData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD arg4) 151 151 { 152 152 dprintf(("USER32: DdeGetData %x %x %x %x", arg1, arg2, arg3, arg4)); 153 153 154 return O32_DdeGetData(arg1, arg2, arg3, arg4);154 return O32_DdeGetData(arg1, (PVOID)arg2, arg3, arg4); 155 155 } 156 156 //****************************************************************************** … … 324 324 //****************************************************************************** 325 325 //****************************************************************************** 326 UINT WIN32API ReuseDDElParam( UINTarg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5)326 UINT WIN32API ReuseDDElParam(LPARAM arg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5) 327 327 { 328 328 dprintf(("USER32: ReuseDDElParam\n")); … … 332 332 //****************************************************************************** 333 333 //****************************************************************************** 334 BOOL WIN32API UnpackDDElParam(UINT arg1, UINT arg2, LPUINT arg3, LPUINTarg4)334 BOOL WIN32API UnpackDDElParam(UINT arg1, LPARAM arg2, PUINT arg3, PUINT arg4) 335 335 { 336 336 dprintf(("USER32: UnpackDDElParam\n")); -
trunk/src/user32/oslibmsgtranslate.cpp
r7837 r7866 1 /* $Id: oslibmsgtranslate.cpp,v 1.8 0 2002-02-08 09:58:42sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.81 2002-02-11 13:48:40 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 667 667 winMsg->lParam |= WIN_KEY_PREVSTATE; // bit 30, previous state, always 1 for a WM_KEYUP message 668 668 winMsg->lParam |= 1 << 31; // bit 31, transition state, always 1 for WM_KEYUP 669 669 } 670 else 671 { // send WM_KEYDOWN message 672 winMsg->message = WINWM_KEYDOWN; 673 if (keyWasPressed) 674 winMsg->lParam |= WIN_KEY_PREVSTATE; // bit 30, previous state, 1 means key was pressed 675 670 676 //Shift-Enter and possibly others need to have special handling 671 672 677 if (flags & KC_SHIFT) 678 { 673 679 if(fMsgRemoved && !(teb->o.odin.fTranslated)) 674 680 { … … 680 686 681 687 extramsg.message = WINWM_CHAR; 682 extramsg.lParam |= 1 << 31; // bit 31, transition state, always 1 for WM_KEYUP683 688 684 689 // insert message into the queue 685 690 setThreadQueueExtraCharMessage(teb, &extramsg); 686 687 winMsg->message = WINWM_KEYDOWN;688 691 winMsg->lParam &= 0x3FFFFFFF; 689 692 } 690 693 } // else ??? 691 694 } // KC_SHIFT 692 } 693 else 694 { 695 // send WM_KEYDOWN message 696 winMsg->message = WINWM_KEYDOWN; 697 if (keyWasPressed) 698 winMsg->lParam |= WIN_KEY_PREVSTATE; // bit 30, previous state, 1 means key was pressed 695 else 696 { 697 // in case we handle Enter directly through PMKBDHOOK 698 if ((os2Msg->msg == WM_CHAR_SPECIAL) && (winMsg->wParam == VK_RETURN_W) 699 && (fMsgRemoved && !(teb->o.odin.fTranslated))) 700 { 701 MSG extramsg; 702 memcpy(&extramsg, winMsg, sizeof(MSG)); 703 704 extramsg.message = WINWM_CHAR; 705 706 // insert message into the queue 707 setThreadQueueExtraCharMessage(teb, &extramsg); 708 } 709 } 699 710 } 700 711 } -
trunk/src/user32/oslibwin.cpp
r7780 r7866 1 /* $Id: oslibwin.cpp,v 1.11 3 2002-01-20 15:26:20sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.114 2002-02-11 13:48:41 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 1035 1035 swctrl.bProgType = PROG_PM; 1036 1036 if(title) { 1037 strncpy(swctrl.szSwtitle, title, MAXNAMEL+4); 1037 // strncpy(swctrl.szSwtitle, title, MAXNAMEL+4); 1038 CharToOemBuffA( title, swctrl.szSwtitle, MAXNAMEL+4 ); 1038 1039 swctrl.szSwtitle[MAXNAMEL+4-1] = 0; 1039 1040 } … … 1060 1061 swctrl.bProgType = PROG_PM; 1061 1062 if(title) { 1062 strncpy(swctrl.szSwtitle, title, MAXNAMEL+4); 1063 // strncpy(swctrl.szSwtitle, title, MAXNAMEL+4); 1064 CharToOemBuffA( title, swctrl.szSwtitle, MAXNAMEL+4 ); 1063 1065 swctrl.szSwtitle[MAXNAMEL+4-1] = 0; 1064 1066 } -
trunk/src/user32/user32.cpp
r7801 r7866 1 /* $Id: user32.cpp,v 1.1 19 2002-02-05 17:58:59sandervl Exp $ */1 /* $Id: user32.cpp,v 1.120 2002-02-11 13:48:41 sandervl Exp $ */ 2 2 3 3 /* … … 2058 2058 * Author : Patrick Haller [Wed, 1998/06/16 11:55] 2059 2059 *****************************************************************************/ 2060 BOOL WIN32API EndTask(DWORD x1, 2061 DWORD x2, 2062 DWORD x3) 2060 BOOL WIN32API EndTask(DWORD x1, DWORD x2, DWORD x3) 2063 2061 { 2064 2062 dprintf(("USER32: EndTask(%08xh,%08xh,%08xh) not implemented.\n", … … 2080 2078 * Author : Patrick Haller [Wed, 1998/06/16 11:55] 2081 2079 *****************************************************************************/ 2082 BOOL WIN32API GetNextQueueWindow(DWORD x1, 2083 DWORD x2) 2080 BOOL WIN32API GetNextQueueWindow(DWORD x1, DWORD x2) 2084 2081 { 2085 2082 dprintf(("USER32: GetNextQueueWindow(%08xh,%08xh) not implemented.\n", … … 2178 2175 DWORD x4) 2179 2176 { 2180 dprintf(("USER32: SysErrorBox(%08xh,%08xh,%08xh,%08xh) not implemented.\n",2177 dprintf(("USER32: UserSignalProc(%08xh,%08xh,%08xh,%08xh) not implemented.\n", 2181 2178 x1, 2182 2179 x2, -
trunk/src/user32/win32wmdiclient.cpp
r6762 r7866 1 /* $Id: win32wmdiclient.cpp,v 1. 39 2001-09-19 15:39:51sandervl Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.40 2002-02-11 13:48:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 99 99 * Author : Patrick Haller [Wed, 1998/06/16 11:55] 100 100 *****************************************************************************/ 101 BOOL WIN32API CascadeChildWindows(DWORD x1, 102 DWORD x2) 101 BOOL WIN32API CascadeChildWindows(HWND x1, DWORD x2) 103 102 { 104 103 dprintf(("USER32: CascadeChildWindows(%08xh,%08xh) not implemented.\n", … … 120 119 * Author : Patrick Haller [Wed, 1998/06/16 11:55] 121 120 *****************************************************************************/ 122 BOOL WIN32API TileChildWindows(DWORD x1, 123 DWORD x2) 121 BOOL WIN32API TileChildWindows(HWND x1, DWORD x2) 124 122 { 125 123 dprintf(("USER32: TileChildWindows(%08xh,%08xh) not implemented.\n", -
trunk/src/user32/window.cpp
r7808 r7866 1 /* $Id: window.cpp,v 1.11 6 2002-02-06 16:31:48sandervl Exp $ */1 /* $Id: window.cpp,v 1.117 2002-02-11 13:48:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 593 593 * Author : Patrick Haller [Thu, 1998/02/26 11:55] 594 594 *****************************************************************************/ 595 ODINFUNCTION2(BOOL, ShowWindowAsync, 596 HWND, hwnd, 597 int, nCmdShow) 595 BOOL WIN32API ShowWindowAsync(HWND hwnd, int nCmdShow) 598 596 { 599 597 dprintf(("USER32:ShowWindowAsync (%08xh,%08x) not correctly implemented.\n", -
trunk/src/user32/winevent.cpp
r6618 r7866 1 /* $Id: winevent.cpp,v 1. 1 2001-08-31 20:31:03 phallerExp $ */1 /* $Id: winevent.cpp,v 1.2 2002-02-11 13:48:42 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 *****************************************************************************/ 63 63 64 ODINPROCEDURE4(NotifyWinEvent, 65 DWORD, event, 66 HWND, hwnd, 67 LONG, idObjectType, 68 LONG, idObject) 64 void WIN32API NotifyWinEvent(DWORD event, HWND hwnd, LONG idObjectType, LONG idObject) 69 65 { 70 66 /* -
trunk/src/user32/winkeyboard.cpp
r7722 r7866 1 /* $Id: winkeyboard.cpp,v 1. 29 2002-01-02 18:37:09sandervl Exp $ */1 /* $Id: winkeyboard.cpp,v 1.30 2002-02-11 13:48:43 sandervl Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 1772 1772 * Author : Patrick Haller [Thu, 1998/02/26 11:55] 1773 1773 *****************************************************************************/ 1774 ODINFUNCTION1(BOOL, UnloadKeyboardLayout, 1775 HKL, hkl) 1774 BOOL WIN32API UnloadKeyboardLayout(HKL hkl) 1776 1775 { 1777 1776 dprintf(("not implemented.\n"));
Note:
See TracChangeset
for help on using the changeset viewer.