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.

27 lines
1.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: diagnos.h
  6. * Content: Utility functions to write out diagnostic files when registry key is set.
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 07/13/00 rodtoll Created (Bug #31468 - Add diagnostic spew to logfile to show what is failing
  12. * 02/28/2002 rodtoll Fix for regression caused by TCHAR conversion (Post DirectX 8.1 work)
  13. * - Source was updated to retrieve device information from DirectSound w/Unicode
  14. * but routines which wanted the information needed Unicode.
  15. *
  16. ***************************************************************************/
  17. #ifndef __DIAGNOS_H
  18. #define __DIAGNOS_H
  19. void Diagnostics_WriteDeviceInfo( DWORD dwLevel, const char *szDeviceName, PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA pData );
  20. HRESULT Diagnostics_DeviceInfo( const GUID *pguidPlayback, const GUID *pguidCapture );
  21. HRESULT Diagnostics_Begin( BOOL fEnabled, const char *szFileName );
  22. void Diagnostics_End();
  23. void Diagnostics_Write( DWORD dwLevel, const char *szFormat, ... );
  24. void Diagnostics_WriteGUID( DWORD dwLevel, GUID &guid );
  25. void Diagnositcs_WriteWAVEFORMATEX( DWORD dwLevel, PWAVEFORMATEX lpwfxFormat );
  26. #endif