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.

53 lines
1.4 KiB

  1. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Microsoft Windows, Copyright (C) Microsoft Corporation, 2000
  3. File: Debug.h
  4. Content: Global debug facilities.
  5. History: 11-15-99 dsie created
  6. ------------------------------------------------------------------------------*/
  7. #ifndef _INCLUDE_DEBUG_H
  8. #define _INCLUDE_DEBUG_H
  9. #ifdef CAPICOM_USE_PRINTF_FOR_DEBUG_TRACE
  10. #define DebugTrace printf
  11. #else
  12. #define DebugTrace ATLTRACE
  13. #endif
  14. #ifdef _DEBUG
  15. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  16. Function : DumpToFile
  17. Synopsis : Dump data to file for debug analysis.
  18. Parameter: char * szFileName - File name (just the file name without any
  19. directory path).
  20. BYTE * pbData - Pointer to data.
  21. DWORD cbData - Size of data.
  22. Remark : No action is taken if the environment variable, "CAPICOM_DUMP_DIR"
  23. is not defined. If defined, the value should be the directory
  24. where the file would be created (i.e. C:\Test).
  25. ------------------------------------------------------------------------------*/
  26. void DumpToFile (char * szFileName,
  27. BYTE * pbData,
  28. DWORD cbData);
  29. #else
  30. #define DumpToFile(f,p,c)
  31. #endif // _DEBUG
  32. #endif // __INCLUDE_DEBUG_H