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.

76 lines
1.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // iastrace.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the API into the IAS trace facility.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 08/18/1998 Original version.
  16. // 10/06/1998 Trace is always on.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _IASTRACE_H_
  20. #define _IASTRACE_H_
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. DWORD
  28. WINAPI
  29. IASFormatSysErr(
  30. IN DWORD dwError,
  31. IN PSTR lpBuffer,
  32. IN DWORD nSize
  33. );
  34. VOID
  35. WINAPIV
  36. IASTracePrintf(
  37. IN PCSTR szFormat,
  38. ...
  39. );
  40. VOID
  41. WINAPI
  42. IASTraceString(
  43. IN PCSTR szString
  44. );
  45. VOID
  46. WINAPI
  47. IASTraceBinary(
  48. IN CONST BYTE* lpbBytes,
  49. IN DWORD dwByteCount
  50. );
  51. VOID
  52. WINAPI
  53. IASTraceFailure(
  54. IN PCSTR szFunction,
  55. IN DWORD dwError
  56. );
  57. //////////
  58. // This can only be called from inside a C++ catch block. If you call it
  59. // anywhere else you will probably crash the process.
  60. //////////
  61. VOID
  62. WINAPI
  63. IASTraceExcept( VOID );
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif // _IASTRACE_H_