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.

56 lines
1.8 KiB

  1. /****************************************************************************
  2. *
  3. * File: musinfo.h
  4. * Project: DxDiag (DirectX Diagnostic Tool)
  5. * Author: Mike Anderson (manders@microsoft.com)
  6. * Purpose: Gather information about DirectMusic
  7. *
  8. * (C) Copyright 1998 Microsoft Corp. All rights reserved.
  9. *
  10. ****************************************************************************/
  11. #ifndef MUSINFO_H
  12. #define MUSINFO_H
  13. // DXD_IN_DM_VALUE is the name of a value stored under the registry key
  14. // HKLM\DXD_IN_DM_KEY that indicates that DxDiag is using
  15. // DirectMusic. If DxDiag starts up and this value exists, DxDiag
  16. // probably crashed in DirectMusic and DxDiag should offer to run without
  17. // using DirectMusic.
  18. #define DXD_IN_DM_KEY TEXT("Software\\Microsoft\\DirectX Diagnostic Tool")
  19. #define DXD_IN_DM_VALUE TEXT("DxDiag In DirectMusic")
  20. struct MusicPort
  21. {
  22. GUID m_guid;
  23. BOOL m_bSoftware;
  24. BOOL m_bKernelMode;
  25. BOOL m_bUsesDLS;
  26. BOOL m_bExternal;
  27. DWORD m_dwMaxAudioChannels;
  28. DWORD m_dwMaxChannelGroups;
  29. BOOL m_bDefaultPort;
  30. BOOL m_bOutputPort;
  31. TCHAR m_szDescription[300];
  32. MusicPort* m_pMusicPortNext;
  33. };
  34. struct MusicInfo
  35. {
  36. BOOL m_bDMusicInstalled;
  37. MusicPort* m_pMusicPortFirst;
  38. TCHAR m_szGMFilePath[MAX_PATH];
  39. TCHAR m_szGMFileVersion[100];
  40. GUID m_guidMusicPortTest; // This holds the GUID of the music port selected for testing
  41. BOOL m_bAccelerationEnabled;
  42. BOOL m_bAccelerationExists;
  43. RegError* m_pRegErrorFirst;
  44. TestResult m_testResult; // This is filled in by testmus.cpp
  45. };
  46. HRESULT GetBasicMusicInfo(MusicInfo** ppMusicInfo);
  47. HRESULT GetExtraMusicInfo(MusicInfo* pMusicInfo);
  48. VOID DestroyMusicInfo(MusicInfo* pMusicInfo);
  49. VOID DiagnoseMusic(SysInfo* pSysInfo, MusicInfo* pMusicInfo);
  50. #endif // DISPINFO_H