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.

34 lines
1.3 KiB

  1. // mediautil.h: media bar utility routines that need to be shared between shdocvw & browseui
  2. #ifndef _MEDIAUTIL_H_
  3. #define _MEDIAUTIL_H_
  4. //+----------------------------------------------------------------------------------------
  5. // CMediaBarUtil
  6. //-----------------------------------------------------------------------------------------
  7. class CMediaBarUtil
  8. {
  9. public:
  10. CMediaBarUtil() {}
  11. ~CMediaBarUtil() {}
  12. // Reg helpers
  13. static HRESULT SetMediaRegValue(LPWSTR pstrName, DWORD dwRegDataType, void *pvData, DWORD cbData, BOOL fMime = FALSE);
  14. static HUSKEY GetMediaRegKey();
  15. static HUSKEY GetMimeRegKey();
  16. static HUSKEY OpenRegKey(TCHAR * pchName);
  17. static HRESULT CloseRegKey(HUSKEY hUSKey);
  18. static HRESULT IsRegValueTrue(HUSKEY hUSKey, TCHAR * pchName, BOOL * pfValue);
  19. static BOOL GetImplicitMediaRegValue(TCHAR * pchName);
  20. static BOOL GetAutoplay();
  21. static BOOL GetAutoplayPrompt();
  22. static HRESULT ToggleAutoplay(BOOL fOn);
  23. static HRESULT ToggleAutoplayPrompting(BOOL fOn);
  24. static BOOL IsRecognizedMime(BSTR bstrMime);
  25. static HRESULT ShouldPlay(TCHAR * szMime, BOOL * pfShouldPlay);
  26. static BOOL IsWMP7OrGreaterCapable();
  27. static BOOL IsWMP7OrGreaterInstalled();
  28. };
  29. #endif // _MEDIAUTIL_H_