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.

141 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. dbgcap.cxx
  6. Abstract:
  7. Debug Capture class header
  8. Author:
  9. Steve Kiraly (SteveKi) 18-Jun-1998
  10. Revision History:
  11. --*/
  12. #ifndef _DBGCAP_HXX_
  13. #define _DBGCAP_HXX_
  14. #if DBG
  15. #define DBG_CAPTURE_HANDLE( hHandle )\
  16. HANDLE hHandle = NULL
  17. #define DBG_CAPTURE_OPEN( hHandle, pszConfig1, uDevice, pszConfig2 )\
  18. do { \
  19. hHandle = TDebugCapture_Create( (pszConfig1), (uDevice), (pszConfig2) );\
  20. }while(0)
  21. #ifdef __cplusplus
  22. #define DBG_CAPTURE( hHandle, uFlags, Msg )\
  23. TDebugCapture_Capture( (hHandle), (uFlags), _T(__FILE__), __LINE__, TDebugCapture_pszFmt Msg )
  24. #else // not __cplusplus
  25. #define DBG_CAPTUREW( hHandle, uFlags, Msg )\
  26. TDebugCapture_Capture( (hHandle), (uFlags), _T(__FILE__), __LINE__, TDebugCapture_pszFmtW Msg )
  27. #define DBG_CAPTUREA( hHandle, uFlags, Msg )\
  28. TDebugCapture_Capture( (hHandle), (uFlags), _T(__FILE__), __LINE__, TDebugCapture_pszFmtA Msg )
  29. #ifdef UNICODE
  30. #define DBG_CAPTURE DBG_CAPTUREW
  31. #else
  32. #define DBG_CAPTURE DBG_CAPTUREA
  33. #endif // UNICODE
  34. #endif // __cplusplus
  35. #define DBG_CAPTURE_CLOSE( hHandle )\
  36. hHandle = TDebugCapture_Destroy( hHandle )
  37. #else // not DBG
  38. #define DBG_CAPTURE_HANDLE( hHandle ) // Empty
  39. #define DBG_CAPTURE_OPEN( hHandle, pszConfig1, uDevice, pszConfig2 ) // Empty
  40. #define DBG_CAPTURE_CLOSE( hHandle ) // Empty
  41. #define DBG_CAPTURE( hHandle, uFlags, Msg ) // Empty
  42. #define DBG_CAPTUREA( hHandle, uFlags, Msg ) // Empty
  43. #define DBG_CAPTUREW( hHandle, uFlags, Msg ) // Empty
  44. #endif // DBG
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. HANDLE
  49. TDebugCapture_Create(
  50. IN LPCTSTR pszCaptureDeviceConfiguration,
  51. IN UINT uOutputDeviceType,
  52. IN LPCTSTR pszOutputDeviceConfiguration
  53. );
  54. HANDLE
  55. TDebugCapture_Destroy(
  56. IN HANDLE hHandle
  57. );
  58. VOID
  59. TDebugCapture_Capture(
  60. IN HANDLE hHandle,
  61. IN UINT uFlags,
  62. IN LPCTSTR pszFile,
  63. IN UINT uLine,
  64. IN LPTSTR pVoid
  65. );
  66. LPTSTR
  67. WINAPIV
  68. TDebugCapture_pszFmtA(
  69. IN LPCSTR pszFmt,
  70. IN ...
  71. );
  72. LPTSTR
  73. WINAPIV
  74. TDebugCapture_pszFmtW(
  75. IN LPCWSTR pszFmt,
  76. IN ...
  77. );
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #ifdef __cplusplus
  82. LPTSTR
  83. WINAPIV
  84. TDebugCapture_pszFmt(
  85. IN LPCSTR pszFmt,
  86. IN ...
  87. );
  88. LPTSTR
  89. WINAPIV
  90. TDebugCapture_pszFmt(
  91. IN LPCWSTR pszFmt,
  92. IN ...
  93. );
  94. LPTSTR
  95. TDebugCapture_pszFmt_Helper(
  96. IN const VOID *pszFmt,
  97. IN va_list pArgs,
  98. IN BOOL bUnicode
  99. );
  100. #endif // __cplusplus
  101. #endif // DBGCAP_HXX