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.

59 lines
2.0 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // REGISTRY.H - Header for implementation of functions to register components.
  7. //
  8. // HISTORY:
  9. //
  10. // 1/27/99 a-jaswed Created.
  11. //
  12. // functions to register components.
  13. #ifndef __Registry_H__
  14. #define __Registry_H__
  15. ////////////////////////////////////////////////////////
  16. // Constants
  17. ////////////////////////////////////////////////////////
  18. // Size of a CLSID as a string
  19. const int CLSID_STRING_SIZE = 39 ;
  20. ////////////////////////////////////////////////////////
  21. // Function Prototypes
  22. ////////////////////////////////////////////////////////
  23. // This function will register a component in the Registry.
  24. // The component calls this function from its DllRegisterServer function.
  25. HRESULT RegisterServer( HMODULE hModule,
  26. const CLSID& clsid,
  27. const WCHAR* szFriendlyName,
  28. const WCHAR* szVerIndProgID,
  29. const WCHAR* szProgID);
  30. // This function will unregister a component. Components
  31. // call this function from their DllUnregisterServer function.
  32. HRESULT UnregisterServer( const CLSID& clsid,
  33. const WCHAR* szVerIndProgID,
  34. const WCHAR* szProgID);
  35. // Converts a CLSID into a char string.
  36. void CLSIDtochar( const CLSID& clsid,
  37. WCHAR* szCLSID,
  38. int length) ;
  39. BOOL setKeyAndValue(const WCHAR* szKey,
  40. const WCHAR* szSubkey,
  41. const WCHAR* szValue,
  42. const WCHAR* szName);
  43. CONST UINT GETKEYANDVALUEBUFFSIZE = 1024;
  44. // value must be at least 1024 in size;
  45. BOOL getKeyAndValue(const WCHAR* szKey,
  46. const WCHAR* szSubkey,
  47. const WCHAR* szValue,
  48. const WCHAR* szName);
  49. #endif