Source code of Windows XP (NT5)
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.

49 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: U H U T I L . H
  7. //
  8. // Contents: Common routines and constants for UPnP Device Host
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 6 Sep 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "UString.h"
  16. #include "uhcommon.h"
  17. // Registry locations
  18. extern const wchar_t c_szRegistryMicrosoft[];
  19. extern const wchar_t c_szUPnPDeviceHost[];
  20. extern const wchar_t c_szMicrosoft[];
  21. HRESULT HrRegQueryString(HKEY hKey, const wchar_t * szValueName, CUString & str);
  22. HRESULT HrCreateOrOpenDeviceHostKey(HKEY * phKeyDeviceHost);
  23. HRESULT HrCreateAndReferenceContainedObject(
  24. const wchar_t * szContainer,
  25. REFCLSID clsid,
  26. REFIID riid,
  27. void ** ppv);
  28. HRESULT HrCreateAndReferenceContainedObjectByProgId(
  29. const wchar_t * szContainer,
  30. const wchar_t * szProgId,
  31. REFIID riid,
  32. void ** ppv);
  33. HRESULT HrDereferenceContainer(
  34. const wchar_t * szContainer);
  35. HRESULT HrPhysicalDeviceIdentifierToString(const GUID & pdi, CUString & str);
  36. HRESULT HrStringToPhysicalDeviceIdentifier(const wchar_t * szStrPdi, GUID & pdi);
  37. HRESULT HrGUIDToUDNString(const UUID & uuid, CUString & strUUID);
  38. HRESULT HrMakeFullPath(
  39. const wchar_t * szPath,
  40. const wchar_t * szFile,
  41. CUString & strFullPath);
  42. HRESULT HrEnsurePathBackslash(CUString & strPath);
  43. HRESULT HrAddDirectoryToPath(CUString & strPath, const wchar_t * szDir);
  44. HRESULT HrGetUPnPHostPath(CUString & strPath);
  45. HRESULT HrMakeIsapiExtensionDirectory();