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.

67 lines
2.2 KiB

  1. /****************************************************************************
  2. *
  3. * File: sndinfo.h
  4. * Project: DxDiag (DirectX Diagnostic Tool)
  5. * Author: Mike Anderson (manders@microsoft.com)
  6. * Purpose: Gather information about sound devices on this machine
  7. *
  8. * (C) Copyright 1998 Microsoft Corp. All rights reserved.
  9. *
  10. ****************************************************************************/
  11. #ifndef SNDINFO_H
  12. #define SNDINFO_H
  13. // DXD_IN_DS_VALUE is the name of a value stored under the registry key
  14. // HKLM\DXD_IN_DS_KEY that indicates that DxDiag is using
  15. // DirectSound. If DxDiag starts up and this value exists, DxDiag
  16. // probably crashed in DirectSound and DxDiag should offer to run without
  17. // using DirectSound.
  18. #define DXD_IN_DS_KEY TEXT("Software\\Microsoft\\DirectX Diagnostic Tool")
  19. #define DXD_IN_DS_VALUE TEXT("DxDiag In DirectSound")
  20. struct SoundInfo
  21. {
  22. GUID m_guid;
  23. DWORD m_dwDevnode;
  24. TCHAR m_szDeviceID[200];
  25. TCHAR m_szRegKey[200];
  26. TCHAR m_szManufacturerID[100];
  27. TCHAR m_szProductID[100];
  28. TCHAR m_szDescription[200];
  29. TCHAR m_szDriverName[200];
  30. TCHAR m_szDriverPath[500];
  31. TCHAR m_szDriverVersion[100];
  32. TCHAR m_szDriverLanguage[100];
  33. TCHAR m_szDriverLanguageLocal[100];
  34. TCHAR m_szDriverAttributes[100];
  35. TCHAR m_szDriverDate[60];
  36. TCHAR m_szDriverDateLocal[60];
  37. TCHAR m_szOtherDrivers[200];
  38. TCHAR m_szProvider[200];
  39. TCHAR m_szType[100]; // Emulated / vxd / wdm
  40. LONG m_numBytes;
  41. BOOL m_bDriverBeta;
  42. BOOL m_bDriverDebug;
  43. BOOL m_bDriverSigned;
  44. BOOL m_bDriverSignedValid;
  45. LONG m_lwAccelerationLevel;
  46. RegError* m_pRegErrorFirst;
  47. TCHAR m_szNotes[3000];
  48. TCHAR m_szNotesEnglish[3000];
  49. TestResult m_testResultSnd; // This is filled in by testsnd.cpp
  50. SoundInfo* m_pSoundInfoNext;
  51. };
  52. HRESULT GetBasicSoundInfo(SoundInfo** ppSoundInfoFirst);
  53. HRESULT GetExtraSoundInfo(SoundInfo* pSoundInfoFirst);
  54. HRESULT GetDSSoundInfo(SoundInfo* pSoundInfoFirst);
  55. VOID DestroySoundInfo(SoundInfo* pSoundInfoFirst);
  56. HRESULT ChangeAccelerationLevel(SoundInfo* pSoundInfo, LONG lwLevel);
  57. VOID DiagnoseSound(SoundInfo* pSoundInfoFirst);
  58. #endif // DISPINFO_H