Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1993-2002 Microsoft Corporation
  3. Module Name:
  4. proto.h
  5. Abstract:
  6. Prototypes for drwatson.
  7. Author:
  8. Wesley Witt (wesw) 1-May-1993
  9. Environment:
  10. User Mode
  11. --*/
  12. #define _tsizeof(sz) (sizeof(sz) / sizeof(TCHAR))
  13. // error.cpp
  14. void __cdecl NonFatalError(_TCHAR *format, ...);
  15. void __cdecl FatalError(HRESULT Error, _TCHAR *format, ...);
  16. void AssertError( _TCHAR *exp, _TCHAR * file, DWORD line );
  17. void __cdecl dprintf(_TCHAR *format, ...);
  18. // log.cpp
  19. void OpenLogFile( _TCHAR *szFileName, BOOL fAppend, BOOL fVisual );
  20. void CloseLogFile( void );
  21. void __cdecl lprintfs(_TCHAR *format, ...);
  22. void __cdecl lprintf(DWORD dwFormatId, ...);
  23. void MakeLogFileName( _TCHAR *szName );
  24. _TCHAR * GetLogFileData( LPDWORD dwLogFileDataSize );
  25. // debug.cpp
  26. DWORD DispatchDebugEventThread( PDEBUGPACKET dp );
  27. DWORD TerminationThread( PDEBUGPACKET dp );
  28. // registry.cpp
  29. BOOL RegInitialize( POPTIONS o );
  30. BOOL RegSave( POPTIONS o );
  31. DWORD RegGetNumCrashes( void );
  32. void RegSetNumCrashes( DWORD dwNumCrashes );
  33. void RegLogCurrentVersion( void );
  34. BOOLEAN RegInstallDrWatson( BOOL fQuiet );
  35. void RegLogProcessorType( void );
  36. void DeleteCrashDump();
  37. // eventlog.cpp
  38. BOOL ElSaveCrash( PCRASHES crash, DWORD dwNumCrashes );
  39. BOOL ElEnumCrashes( PCRASHINFO crashInfo, CRASHESENUMPROC lpEnumFunc );
  40. BOOL ElClearAllEvents( void );
  41. // process.cpp
  42. void GetTaskName( ULONG pid, _TCHAR *szTaskName, LPDWORD pdwSize );
  43. // browse.cpp
  44. BOOL BrowseForDirectory(HWND hwnd, _TCHAR *szCurrDir, DWORD len );
  45. BOOL GetWaveFileName(HWND hwnd, _TCHAR *szWaveName, DWORD len );
  46. BOOL GetDumpFileName(HWND hwnd, _TCHAR *szDumpName, DWORD len );
  47. // notify.cpp
  48. void NotifyWinMain ( void );
  49. BOOLEAN GetCommandLineArgs( LPDWORD dwPidToDebug, LPHANDLE hEventToSignal );
  50. void __cdecl GetNotifyBuf( LPTSTR buf, DWORD bufsize, DWORD dwFormatId, ...);
  51. // ui.cpp
  52. void DrWatsonWinMain ( void );
  53. // util.cpp
  54. void GetAppName( _TCHAR *pszAppName, DWORD len );
  55. void GetWinHelpFileName( _TCHAR *pszHelpFileName, DWORD len );
  56. void GetHtmlHelpFileName( _TCHAR *pszHelpFileName, DWORD len );
  57. _TCHAR * LoadRcString( UINT wId );
  58. void LoadRcStringBuf( UINT wId, _TCHAR* pszBuf, DWORD len );
  59. PTSTR ExpandPath(PTSTR lpPath);
  60. // controls.cpp
  61. BOOL SubclassControls( HWND hwnd );
  62. void SetFocusToCurrentControl( void );