Source code of Windows XP (NT5)
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.

81 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1993-2001 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. // error.cpp
  13. void __cdecl NonFatalError(_TCHAR *format, ...);
  14. void __cdecl FatalError(HRESULT Error, _TCHAR *format, ...);
  15. void AssertError( _TCHAR *exp, _TCHAR * file, DWORD line );
  16. void __cdecl dprintf(_TCHAR *format, ...);
  17. // log.cpp
  18. void OpenLogFile( _TCHAR *szFileName, BOOL fAppend, BOOL fVisual );
  19. void CloseLogFile( void );
  20. void __cdecl lprintfs(_TCHAR *format, ...);
  21. void __cdecl lprintf(DWORD dwFormatId, ...);
  22. void MakeLogFileName( _TCHAR *szName );
  23. _TCHAR * GetLogFileData( LPDWORD dwLogFileDataSize );
  24. // debug.cpp
  25. DWORD DispatchDebugEventThread( PDEBUGPACKET dp );
  26. DWORD TerminationThread( PDEBUGPACKET dp );
  27. // registry.cpp
  28. BOOL RegInitialize( POPTIONS o );
  29. BOOL RegSave( POPTIONS o );
  30. DWORD RegGetNumCrashes( void );
  31. void RegSetNumCrashes( DWORD dwNumCrashes );
  32. void RegLogCurrentVersion( void );
  33. BOOLEAN RegInstallDrWatson( BOOL fQuiet );
  34. void RegLogProcessorType( void );
  35. void DeleteCrashDump();
  36. // eventlog.cpp
  37. BOOL ElSaveCrash( PCRASHES crash, DWORD dwNumCrashes );
  38. BOOL ElEnumCrashes( PCRASHINFO crashInfo, CRASHESENUMPROC lpEnumFunc );
  39. BOOL ElClearAllEvents( void );
  40. // process.cpp
  41. void GetTaskName( ULONG pid, _TCHAR *szTaskName, LPDWORD pdwSize );
  42. // browse.cpp
  43. BOOL BrowseForDirectory(HWND hwnd, _TCHAR *szCurrDir );
  44. BOOL GetWaveFileName(HWND hwnd, _TCHAR *szWaveName );
  45. BOOL GetDumpFileName(HWND hwnd, _TCHAR *szDumpName );
  46. // notify.cpp
  47. void NotifyWinMain ( void );
  48. BOOLEAN GetCommandLineArgs( LPDWORD dwPidToDebug, LPHANDLE hEventToSignal );
  49. void __cdecl GetNotifyBuf( LPTSTR buf, DWORD bufsize, DWORD dwFormatId, ...);
  50. // ui.cpp
  51. void DrWatsonWinMain ( void );
  52. // util.cpp
  53. void GetAppName( _TCHAR *pszAppName, DWORD len );
  54. void GetWinHelpFileName( _TCHAR *pszHelpFileName, DWORD len );
  55. void GetHtmlHelpFileName( _TCHAR *pszHelpFileName, DWORD len );
  56. _TCHAR * LoadRcString( UINT wId );
  57. PTSTR ExpandPath(PTSTR lpPath);
  58. // controls.cpp
  59. BOOL SubclassControls( HWND hwnd );
  60. void SetFocusToCurrentControl( void );