Changeset 6375 for trunk/src/user32
- Timestamp:
- Jul 20, 2001, 5:42:38 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r6254 r6375 1 # $Id: Makefile,v 1.8 7 2001-07-08 15:51:41sandervl Exp $1 # $Id: Makefile,v 1.88 2001-07-20 15:34:15 sandervl Exp $ 2 2 3 3 # … … 40 40 $(OBJDIR)\char.obj \ 41 41 $(OBJDIR)\initterm.obj \ 42 $(OBJDIR)\inituser32.obj \ 42 43 $(OBJDIR)\uitools.obj \ 43 44 $(OBJDIR)\unknown.obj \ -
trunk/src/user32/USER32.DEF
r6149 r6375 1 ; $Id: USER32.DEF,v 1.6 0 2001-07-03 13:23:31sandervl Exp $1 ; $Id: USER32.DEF,v 1.61 2001-07-20 15:34:15 sandervl Exp $ 2 2 3 3 LIBRARY USER32 INITINSTANCE TERMINSTANCE … … 671 671 672 672 _wvsnprintfA@16 @2010 NONAME 673 ;Export for MSACM32 674 _wsnprintfA @2100 NONAME 673 675 674 676 _KEYBOARD_Enable@4 @2011 NONAME -
trunk/src/user32/dbglocal.cpp
r3679 r6375 1 /* $Id: dbglocal.cpp,v 1. 6 2000-06-08 18:10:09sandervl Exp $ */1 /* $Id: dbglocal.cpp,v 1.7 2001-07-20 15:34:15 sandervl Exp $ */ 2 2 3 3 /* … … 16 16 #ifdef DEBUG 17 17 18 USHORT DbgEnabled [DBG_MAXFILES] = {0};19 USHORT DbgEnabledLvl2 [DBG_MAXFILES] = {0};18 USHORT DbgEnabledUSER32[DBG_MAXFILES] = {0}; 19 USHORT DbgEnabledLvl2USER32[DBG_MAXFILES] = {0}; 20 20 21 char *DbgFileNames[DBG_MAXFILES] =21 static char *DbgFileNames[DBG_MAXFILES] = 22 22 { 23 23 "user32", … … 92 92 //****************************************************************************** 93 93 //****************************************************************************** 94 void ParseLogStatus ()94 void ParseLogStatusUSER32() 95 95 { 96 96 char *envvar = getenv(DBG_ENVNAME); … … 100 100 101 101 for(i=0;i<DBG_MAXFILES;i++) { 102 DbgEnabled [i] = 1;102 DbgEnabledUSER32[i] = 1; 103 103 } 104 104 … … 108 108 if(*(dbgvar-1) == '-') { 109 109 for(i=0;i<DBG_MAXFILES;i++) { 110 DbgEnabled [i] = 0;110 DbgEnabledUSER32[i] = 0; 111 111 } 112 112 } … … 116 116 if(dbgvar) { 117 117 if(*(dbgvar-1) == '-') { 118 DbgEnabled [i] = 0;118 DbgEnabledUSER32[i] = 0; 119 119 } 120 120 else 121 121 if(*(dbgvar-1) == '+') { 122 DbgEnabled [i] = 1;122 DbgEnabledUSER32[i] = 1; 123 123 } 124 124 } … … 130 130 if(*(dbgvar-1) == '+') { 131 131 for(i=0;i<DBG_MAXFILES;i++) { 132 DbgEnabledLvl2 [i] = 1;132 DbgEnabledLvl2USER32[i] = 1; 133 133 } 134 134 } … … 138 138 if(dbgvar) { 139 139 if(*(dbgvar-1) == '-') { 140 DbgEnabledLvl2 [i] = 0;140 DbgEnabledLvl2USER32[i] = 0; 141 141 } 142 142 else 143 143 if(*(dbgvar-1) == '+') { 144 DbgEnabledLvl2 [i] = 1;144 DbgEnabledLvl2USER32[i] = 1; 145 145 } 146 146 } -
trunk/src/user32/dbglocal.h
r3679 r6375 1 /* $Id: dbglocal.h,v 1. 5 2000-06-08 18:10:09sandervl Exp $ */1 /* $Id: dbglocal.h,v 1.6 2001-07-20 15:34:15 sandervl Exp $ */ 2 2 3 3 /* … … 15 15 #ifdef DEBUG 16 16 //Parses environment variable for selective enabling/disabling of logging 17 void ParseLogStatus ();17 void ParseLogStatusUSER32(); 18 18 19 19 #define DBG_ENVNAME "dbg_user32" … … 90 90 #define DBG_MAXFILES 68 91 91 92 extern USHORT DbgEnabled [DBG_MAXFILES];93 extern USHORT DbgEnabledLvl2 [DBG_MAXFILES];92 extern USHORT DbgEnabledUSER32[DBG_MAXFILES]; 93 extern USHORT DbgEnabledLvl2USER32[DBG_MAXFILES]; 94 94 95 95 #ifdef dprintf … … 97 97 #endif 98 98 99 #define dprintf(a) if(DbgEnabled [DBG_LOCALLOG] == 1) WriteLog a99 #define dprintf(a) if(DbgEnabledUSER32[DBG_LOCALLOG] == 1) WriteLog a 100 100 101 101 #ifdef dprintf2 … … 103 103 #endif 104 104 105 #define dprintf2(a) if(DbgEnabledLvl2 [DBG_LOCALLOG] == 1) WriteLog a105 #define dprintf2(a) if(DbgEnabledLvl2USER32[DBG_LOCALLOG] == 1) WriteLog a 106 106 107 107 #else 108 108 109 #define ParseLogStatus ()109 #define ParseLogStatusUSER32() 110 110 111 111 #endif //DEBUG -
trunk/src/user32/dc.cpp
r5935 r6375 1 /* $Id: dc.cpp,v 1.1 09 2001-06-09 14:50:16 sandervl Exp $ */1 /* $Id: dc.cpp,v 1.110 2001-07-20 15:34:16 sandervl Exp $ */ 2 2 3 3 /* … … 76 76 77 77 #ifdef DEBUG 78 #define dprintfRegion(a,b,c) if(DbgEnabledLvl2 [DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c)78 #define dprintfRegion(a,b,c) if(DbgEnabledLvl2USER32[DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c) 79 79 80 80 void dprintfRegion1(HPS hps, HWND hWnd, HRGN hrgnClip) -
trunk/src/user32/gen_object.cpp
r5964 r6375 1 /* $Id: gen_object.cpp,v 1.1 1 2001-06-11 14:37:46 sandervl Exp $ */1 /* $Id: gen_object.cpp,v 1.12 2001-07-20 15:34:16 sandervl Exp $ */ 2 2 /* 3 3 * Generic Object Class for OS/2 … … 91 91 LONG GenericObject::addRef() 92 92 { 93 dprintf2(("addRef %x -> refcount %x", this, refCount+1));93 //// dprintf2(("addRef %x -> refcount %x", this, refCount+1)); 94 94 return InterlockedIncrement(&refCount); 95 95 } … … 99 99 LONG GenericObject::release() 100 100 { 101 dprintf2(("release %x -> refcount %x", this, refCount-1));101 //// dprintf2(("release %x -> refcount %x", this, refCount-1)); 102 102 #ifdef DEBUG 103 103 if(refCount-1 < 0) { -
trunk/src/user32/initterm.cpp
r6339 r6375 37 37 #include <winconst.h> 38 38 #include <odinlx.h> 39 #include <spy.h>40 #include <monitor.h>41 #include "pmwindow.h"42 #include "win32wdesktop.h"43 #include "syscolor.h"44 39 #include "initterm.h" 45 40 #include <exitlist.h> … … 57 52 static void APIENTRY cleanup(ULONG reason); 58 53 59 extern "C" {60 //Win32 resource table (produced by wrc)61 extern DWORD _Resource_PEResTab;62 }63 DWORD hInstanceUser32 = 0;64 54 BOOL fVersionWarp3 = FALSE; 65 55 … … 87 77 case 0 : 88 78 ctordtorInit(); 89 ParseLogStatus();90 91 79 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 92 93 hInstanceUser32 = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab,94 USER32_MAJORIMAGE_VERSION, USER32_MINORIMAGE_VERSION,95 IMAGE_SUBSYSTEM_WINDOWS_GUI);96 if(hInstanceUser32 == 0)97 return 0UL;98 99 dprintf(("user32 init %s %s (%x)", __DATE__, __TIME__, DLLENTRYPOINT_NAME));100 80 101 81 rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version)); … … 115 95 return 0UL; 116 96 117 //SvL: Try to start communication with our message spy queue server 118 InitSpyQueue(); 119 120 //SvL: Init win32 PM classes 121 if(InitPM() == FALSE) { 122 return 0UL; 123 } 124 125 //SvL: 18-7-'98, Register system window classes (button, listbox etc etc) 126 //CB: register internal classes 127 RegisterSystemClasses(hModule); 128 129 //CB: initialize PM monitor driver 130 MONITOR_Initialize(&MONITOR_PrimaryMonitor); 131 97 rc = inittermUser32(hModule, ulFlag); 132 98 break; 133 99 case 1 : 134 if(hInstanceUser32) { 135 UnregisterLxDll(hInstanceUser32); 136 } 100 rc = inittermUser32(hModule, ulFlag); 137 101 break; 138 102 default : … … 148 112 static void APIENTRY cleanup(ULONG ulReason) 149 113 { 150 dprintf(("user32 exit\n")); 151 //SvL: Causes PM hangs on some (a lot?) machines. Reason unknown. 152 //// RestoreCursor(); 153 DestroyDesktopWindow(); 154 Win32BaseWindow::DestroyAll(); 155 UnregisterSystemClasses(); 156 Win32WndClass::DestroyAll(); 157 MONITOR_Finalize(&MONITOR_PrimaryMonitor); 158 SYSCOLOR_Save(); 159 CloseSpyQueue(); 114 cleanupUser32(ulReason); 160 115 ctordtorTerm(); 161 dprintf(("user32 exit done\n"));162 116 163 117 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/user32/msgbox.c
r3153 r6375 1 /* $Id: msgbox.c,v 1. 3 2000-03-18 16:13:37 cbratschiExp $ */1 /* $Id: msgbox.c,v 1.4 2001-07-20 15:34:16 sandervl Exp $ */ 2 2 /* 3 3 * Message boxes (based on Wine code) … … 366 366 } 367 367 368 #ifndef __WIN32OS2__ 368 369 /************************************************************************** 369 370 * FatalAppExit32A (KERNEL32.108) … … 386 387 ExitProcess(0); 387 388 } 389 #endif 388 390 389 391 /***************************************************************************** -
trunk/src/user32/win32wbase.cpp
r6317 r6375 1 /* $Id: win32wbase.cpp,v 1.27 6 2001-07-13 14:31:15sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.277 2001-07-20 15:34:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 3837 3837 // else return hwnd; //OS/2 window handle 3838 3838 } 3839 #ifdef DEBUG 3840 LONG Win32BaseWindow::addRef() 3841 { 3842 dprintf2(("addRef %x %d", getWindowHandle(), getRefCount()+1)); 3843 return GenericObject::addRef(); 3844 } 3845 //****************************************************************************** 3846 //****************************************************************************** 3847 LONG Win32BaseWindow::release(char *function, int line) 3848 { 3849 dprintf2(("release %s %d %x %d", function, line, getWindowHandle(), getRefCount()-1)); 3850 return GenericObject::release(); 3851 } 3852 #endif 3839 3853 //****************************************************************************** 3840 3854 //****************************************************************************** -
trunk/src/user32/win32wbase.h
r6169 r6375 1 /* $Id: win32wbase.h,v 1.12 3 2001-07-04 17:46:05sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.124 2001-07-20 15:34:18 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 36 36 #define CheckMagicDword(a) (a==WIN32PM_MAGIC) 37 37 38 #ifdef DEBUG 39 #define RELEASE_WNDOBJ(a) { a->release(__FUNCTION__, __LINE__); a = NULL; } 40 #else 38 41 #define RELEASE_WNDOBJ(a) { a->release(); a = NULL; } 42 #endif 39 43 40 44 typedef struct { … … 328 332 INT enumPropsExW(PROPENUMPROCEXW func, LPARAM lParam); 329 333 334 #ifdef DEBUG 335 LONG addRef(); 336 LONG release(char *function = __FUNCTION__, int line = __LINE__ ); 337 #endif 338 330 339 //Locates window in linked list and increases reference count (if found) 331 340 //Window object must be unreferenced after usage -
trunk/src/user32/wsprintf.cpp
r5271 r6375 645 645 return ( res == -1 ) ? 1024 : res; 646 646 } 647 648 /*********************************************************************** 649 * wsnprintfA (Not a Windows API) 650 */ 651 INT WINAPIV wsnprintfA( LPSTR buffer, UINT maxlen, LPCSTR spec, ... ) 652 { 653 va_list valist; 654 INT res; 655 656 va_start( valist, spec ); 657 res = wvsnprintfA( buffer, maxlen, spec, valist ); 658 va_end( valist ); 659 return res; 660 } 661 662 /*********************************************************************** 663 * wsnprintfW (Not a Windows API) 664 */ 665 INT WINAPIV wsnprintfW( LPWSTR buffer, UINT maxlen, LPCWSTR spec, ... ) 666 { 667 va_list valist; 668 INT res; 669 670 va_start( valist, spec ); 671 res = wvsnprintfW( buffer, maxlen, spec, valist ); 672 va_end( valist ); 673 return res; 674 }
Note:
See TracChangeset
for help on using the changeset viewer.