Remove the win32 debug channel, misc cleanup of debugging code.

This commit is contained in:
Dimitrie O. Paun 2004-02-26 05:30:54 +00:00 committed by Alexandre Julliard
parent 4683768e01
commit 475cdcba8c
5 changed files with 34 additions and 39 deletions

View File

@ -52,7 +52,7 @@
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(win32); WINE_DEFAULT_DEBUG_CHANNEL(sync);
/* check if current version is NT or Win95 */ /* check if current version is NT or Win95 */
inline static int is_version_nt(void) inline static int is_version_nt(void)

View File

@ -35,7 +35,7 @@
#include "wine/library.h" #include "wine/library.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(win32); WINE_DEFAULT_DEBUG_CHANNEL(syslevel);
static SYSLEVEL Win16Mutex; static SYSLEVEL Win16Mutex;
static CRITICAL_SECTION_DEBUG critsect_debug = static CRITICAL_SECTION_DEBUG critsect_debug =

View File

@ -18,7 +18,7 @@
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(win32); WINE_DEFAULT_DEBUG_CHANNEL(msnet);
/*********************************************************************** /***********************************************************************
* @ (MSNET32.57) * @ (MSNET32.57)

View File

@ -27,7 +27,7 @@
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(win32); WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
/*********************************************************************** /***********************************************************************
* WinVerifyTrust (WINTRUST.@) * WinVerifyTrust (WINTRUST.@)

View File

@ -38,11 +38,7 @@
#include "local.h" #include "local.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DECLARE_DEBUG_CHANNEL(hook); WINE_DEFAULT_DEBUG_CHANNEL(user);
WINE_DECLARE_DEBUG_CHANNEL(local);
WINE_DECLARE_DEBUG_CHANNEL(system);
WINE_DECLARE_DEBUG_CHANNEL(win);
WINE_DECLARE_DEBUG_CHANNEL(win32);
static SYSLEVEL USER_SysLevel; static SYSLEVEL USER_SysLevel;
static CRITICAL_SECTION_DEBUG critsect_debug = static CRITICAL_SECTION_DEBUG critsect_debug =
@ -113,7 +109,7 @@ WORD WINAPI GetFreeSystemResources16( WORD resType )
break; break;
} }
FreeLibrary16( gdi_inst ); FreeLibrary16( gdi_inst );
TRACE_(local)("<- userPercent %d, gdiPercent %d\n", userPercent, gdiPercent); TRACE("<- userPercent %d, gdiPercent %d\n", userPercent, gdiPercent);
return (WORD)min( userPercent, gdiPercent ); return (WORD)min( userPercent, gdiPercent );
} }
@ -271,8 +267,8 @@ void WINAPI FinalUserInit16( void )
WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID, WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
DWORD dwFlags, HMODULE16 hModule ) DWORD dwFlags, HMODULE16 hModule )
{ {
FIXME_(win)("(%04x, %08lx, %04lx, %04x)\n", FIXME("(%04x, %08lx, %04lx, %04x)\n",
uCode, dwThreadOrProcessID, dwFlags, hModule ); uCode, dwThreadOrProcessID, dwFlags, hModule );
/* FIXME: Should chain to GdiSignalProc now. */ /* FIXME: Should chain to GdiSignalProc now. */
return 0; return 0;
} }
@ -291,8 +287,8 @@ BOOL16 WINAPI ExitWindows16( DWORD dwReturnCode, UINT16 wReserved )
*/ */
BOOL16 WINAPI ExitWindowsExec16( LPCSTR lpszExe, LPCSTR lpszParams ) BOOL16 WINAPI ExitWindowsExec16( LPCSTR lpszExe, LPCSTR lpszParams )
{ {
TRACE_(system)("Should run the following in DOS-mode: \"%s %s\"\n", TRACE("Should run the following in DOS-mode: \"%s %s\"\n",
lpszExe, lpszParams); lpszExe, lpszParams);
return ExitWindowsEx( EWX_LOGOFF, 0xffffffff ); return ExitWindowsEx( EWX_LOGOFF, 0xffffffff );
} }
@ -481,7 +477,7 @@ BOOL WINAPI EnumDisplayDevicesA(
) { ) {
if (i) if (i)
return FALSE; return FALSE;
FIXME_(system)("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags); FIXME("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags);
strcpy(lpDisplayDevice->DeviceName,"X11"); strcpy(lpDisplayDevice->DeviceName,"X11");
strcpy(lpDisplayDevice->DeviceString,"X 11 Windowing System"); strcpy(lpDisplayDevice->DeviceString,"X 11 Windowing System");
lpDisplayDevice->StateFlags = lpDisplayDevice->StateFlags =
@ -499,7 +495,7 @@ BOOL WINAPI EnumDisplayDevicesW(
) { ) {
if (i) if (i)
return FALSE; return FALSE;
FIXME_(system)("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags); FIXME("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags);
MultiByteToWideChar( CP_ACP, 0, "X11", -1, lpDisplayDevice->DeviceName, MultiByteToWideChar( CP_ACP, 0, "X11", -1, lpDisplayDevice->DeviceName,
sizeof(lpDisplayDevice->DeviceName)/sizeof(WCHAR) ); sizeof(lpDisplayDevice->DeviceName)/sizeof(WCHAR) );
MultiByteToWideChar( CP_ACP, 0, "X11 Windowing System", -1, lpDisplayDevice->DeviceString, MultiByteToWideChar( CP_ACP, 0, "X11 Windowing System", -1, lpDisplayDevice->DeviceString,
@ -518,7 +514,7 @@ BOOL WINAPI EnumDisplayDevicesW(
*/ */
FARPROC16 WINAPI SetEventHook16(FARPROC16 lpfnEventHook) FARPROC16 WINAPI SetEventHook16(FARPROC16 lpfnEventHook)
{ {
FIXME_(hook)("(lpfnEventHook=%08x): stub\n", (UINT)lpfnEventHook); FIXME("(lpfnEventHook=%08x): stub\n", (UINT)lpfnEventHook);
return NULL; return NULL;
} }
@ -538,10 +534,10 @@ DWORD WINAPI UserSeeUserDo16(WORD wReqType, WORD wParam1, WORD wParam2, WORD wPa
case USUD_LOCALHEAP: case USUD_LOCALHEAP:
return USER_HeapSel; return USER_HeapSel;
case USUD_FIRSTCLASS: case USUD_FIRSTCLASS:
FIXME_(local)("return a pointer to the first window class.\n"); FIXME("return a pointer to the first window class.\n");
return (DWORD)-1; return (DWORD)-1;
default: default:
WARN_(local)("wReqType %04x (unknown)\n", wReqType); WARN("wReqType %04x (unknown)\n", wReqType);
return (DWORD)-1; return (DWORD)-1;
} }
} }
@ -558,7 +554,7 @@ WORD WINAPI GetSystemDebugState16(void)
* RegisterLogonProcess (USER32.@) * RegisterLogonProcess (USER32.@)
*/ */
DWORD WINAPI RegisterLogonProcess(HANDLE hprocess,BOOL x) { DWORD WINAPI RegisterLogonProcess(HANDLE hprocess,BOOL x) {
FIXME_(win32)("(%p,%d),stub!\n",hprocess,x); FIXME("(%p,%d),stub!\n",hprocess,x);
return 1; return 1;
} }
@ -569,7 +565,7 @@ HWINSTA WINAPI CreateWindowStationW(
LPWSTR winstation,DWORD res1,DWORD desiredaccess, LPWSTR winstation,DWORD res1,DWORD desiredaccess,
LPSECURITY_ATTRIBUTES lpsa LPSECURITY_ATTRIBUTES lpsa
) { ) {
FIXME_(win32)("(%s,0x%08lx,0x%08lx,%p),stub!\n",debugstr_w(winstation), FIXME("(%s,0x%08lx,0x%08lx,%p),stub!\n",debugstr_w(winstation),
res1,desiredaccess,lpsa res1,desiredaccess,lpsa
); );
return (HWINSTA)0xdeadcafe; return (HWINSTA)0xdeadcafe;
@ -579,7 +575,7 @@ HWINSTA WINAPI CreateWindowStationW(
* SetProcessWindowStation (USER32.@) * SetProcessWindowStation (USER32.@)
*/ */
BOOL WINAPI SetProcessWindowStation(HWINSTA hWinSta) { BOOL WINAPI SetProcessWindowStation(HWINSTA hWinSta) {
FIXME_(win32)("(%p),stub!\n",hWinSta); FIXME("(%p),stub!\n",hWinSta);
return TRUE; return TRUE;
} }
@ -591,7 +587,7 @@ BOOL WINAPI SetUserObjectSecurity(
PSECURITY_INFORMATION pSIRequested, PSECURITY_INFORMATION pSIRequested,
PSECURITY_DESCRIPTOR pSID PSECURITY_DESCRIPTOR pSID
) { ) {
FIXME_(win32)("(%p,%p,%p),stub!\n",hObj,pSIRequested,pSID); FIXME("(%p,%p,%p),stub!\n",hObj,pSIRequested,pSID);
return TRUE; return TRUE;
} }
@ -602,7 +598,7 @@ HDESK WINAPI CreateDesktopA(
LPSTR lpszDesktop,LPSTR lpszDevice,LPDEVMODEA pDevmode, LPSTR lpszDesktop,LPSTR lpszDevice,LPDEVMODEA pDevmode,
DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa
) { ) {
FIXME_(win32)("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n", FIXME("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n",
lpszDesktop,lpszDevice,pDevmode, lpszDesktop,lpszDevice,pDevmode,
dwFlags,dwDesiredAccess,lpsa dwFlags,dwDesiredAccess,lpsa
); );
@ -616,7 +612,7 @@ HDESK WINAPI CreateDesktopW(
LPWSTR lpszDesktop,LPWSTR lpszDevice,LPDEVMODEW pDevmode, LPWSTR lpszDesktop,LPWSTR lpszDevice,LPDEVMODEW pDevmode,
DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa
) { ) {
FIXME_(win32)("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n", FIXME("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n",
debugstr_w(lpszDesktop),debugstr_w(lpszDevice),pDevmode, debugstr_w(lpszDesktop),debugstr_w(lpszDevice),pDevmode,
dwFlags,dwDesiredAccess,lpsa dwFlags,dwDesiredAccess,lpsa
); );
@ -627,7 +623,7 @@ HDESK WINAPI CreateDesktopW(
* EnumDesktopWindows (USER32.@) * EnumDesktopWindows (USER32.@)
*/ */
BOOL WINAPI EnumDesktopWindows( HDESK hDesktop, WNDENUMPROC lpfn, LPARAM lParam ) { BOOL WINAPI EnumDesktopWindows( HDESK hDesktop, WNDENUMPROC lpfn, LPARAM lParam ) {
FIXME_(win32)("(%p, %p, 0x%08lx), stub!\n", hDesktop, lpfn, lParam ); FIXME("(%p, %p, 0x%08lx), stub!\n", hDesktop, lpfn, lParam );
return TRUE; return TRUE;
} }
@ -637,7 +633,7 @@ BOOL WINAPI EnumDesktopWindows( HDESK hDesktop, WNDENUMPROC lpfn, LPARAM lParam
*/ */
BOOL WINAPI CloseWindowStation(HWINSTA hWinSta) BOOL WINAPI CloseWindowStation(HWINSTA hWinSta)
{ {
FIXME_(win32)("(%p)\n", hWinSta); FIXME("(%p)\n", hWinSta);
return TRUE; return TRUE;
} }
@ -646,7 +642,7 @@ BOOL WINAPI CloseWindowStation(HWINSTA hWinSta)
*/ */
BOOL WINAPI CloseDesktop(HDESK hDesk) BOOL WINAPI CloseDesktop(HDESK hDesk)
{ {
FIXME_(win32)("(%p)\n", hDesk); FIXME("(%p)\n", hDesk);
return TRUE; return TRUE;
} }
@ -654,7 +650,7 @@ BOOL WINAPI CloseDesktop(HDESK hDesk)
* SetWindowStationUser (USER32.@) * SetWindowStationUser (USER32.@)
*/ */
DWORD WINAPI SetWindowStationUser(DWORD x1,DWORD x2) { DWORD WINAPI SetWindowStationUser(DWORD x1,DWORD x2) {
FIXME_(win32)("(0x%08lx,0x%08lx),stub!\n",x1,x2); FIXME("(0x%08lx,0x%08lx),stub!\n",x1,x2);
return 1; return 1;
} }
@ -662,7 +658,7 @@ DWORD WINAPI SetWindowStationUser(DWORD x1,DWORD x2) {
* SetLogonNotifyWindow (USER32.@) * SetLogonNotifyWindow (USER32.@)
*/ */
DWORD WINAPI SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd) { DWORD WINAPI SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd) {
FIXME_(win32)("(%p,%p),stub!\n",hwinsta,hwnd); FIXME("(%p,%p),stub!\n",hwinsta,hwnd);
return 1; return 1;
} }
@ -677,14 +673,14 @@ VOID WINAPI LoadLocalFonts(VOID) {
* GetUserObjectInformationA (USER32.@) * GetUserObjectInformationA (USER32.@)
*/ */
BOOL WINAPI GetUserObjectInformationA( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen ) BOOL WINAPI GetUserObjectInformationA( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen )
{ FIXME_(win32)("(%p %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen ); { FIXME("(%p %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen );
return TRUE; return TRUE;
} }
/*********************************************************************** /***********************************************************************
* GetUserObjectInformationW (USER32.@) * GetUserObjectInformationW (USER32.@)
*/ */
BOOL WINAPI GetUserObjectInformationW( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen ) BOOL WINAPI GetUserObjectInformationW( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen )
{ FIXME_(win32)("(%p %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen ); { FIXME("(%p %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen );
return TRUE; return TRUE;
} }
/*********************************************************************** /***********************************************************************
@ -692,7 +688,7 @@ BOOL WINAPI GetUserObjectInformationW( HANDLE hObj, INT nIndex, LPVOID pvInfo, D
*/ */
BOOL WINAPI GetUserObjectSecurity(HANDLE hObj, PSECURITY_INFORMATION pSIRequested, BOOL WINAPI GetUserObjectSecurity(HANDLE hObj, PSECURITY_INFORMATION pSIRequested,
PSECURITY_DESCRIPTOR pSID, DWORD nLength, LPDWORD lpnLengthNeeded) PSECURITY_DESCRIPTOR pSID, DWORD nLength, LPDWORD lpnLengthNeeded)
{ FIXME_(win32)("(%p %p %p len=%ld %p),stub!\n", hObj, pSIRequested, pSID, nLength, lpnLengthNeeded); { FIXME("(%p %p %p len=%ld %p),stub!\n", hObj, pSIRequested, pSID, nLength, lpnLengthNeeded);
return TRUE; return TRUE;
} }
@ -700,7 +696,7 @@ BOOL WINAPI GetUserObjectSecurity(HANDLE hObj, PSECURITY_INFORMATION pSIRequeste
* SetSystemCursor (USER32.@) * SetSystemCursor (USER32.@)
*/ */
BOOL WINAPI SetSystemCursor(HCURSOR hcur, DWORD id) BOOL WINAPI SetSystemCursor(HCURSOR hcur, DWORD id)
{ FIXME_(win32)("(%p,%08lx),stub!\n", hcur, id); { FIXME("(%p,%08lx),stub!\n", hcur, id);
return TRUE; return TRUE;
} }
@ -709,15 +705,14 @@ BOOL WINAPI SetSystemCursor(HCURSOR hcur, DWORD id)
*/ */
void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved) void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved)
{ {
FIXME_(win32)("(%08lx, %08lx)\n", flags, reserved); FIXME("(%08lx, %08lx)\n", flags, reserved);
} }
/*********************************************************************** /***********************************************************************
* RegisterDeviceNotificationA (USER32.@) * RegisterDeviceNotificationA (USER32.@)
*/ */
HDEVNOTIFY WINAPI RegisterDeviceNotificationA( HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE hnd, LPVOID notifyfilter, DWORD flags)
HANDLE hnd, LPVOID notifyfilter, DWORD flags {
) { FIXME("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hnd,notifyfilter,flags );
FIXME_(win32)("(hwnd=%p, filter=%p,flags=0x%08lx), STUB!\n", hnd,notifyfilter,flags );
return 0; return 0;
} }