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.

37 lines
1.2 KiB

  1. /****************************************************************************
  2. *
  3. * REGISTRY.h
  4. *
  5. * Microsoft Confidential
  6. * Copyright (c) Microsoft Corporation 1992-1997
  7. * All rights reserved
  8. *
  9. * The code comes almost verbatim from Chapter 7 of Dale Rogerson's
  10. * "Inside COM", and thus is minimally commented.
  11. *
  12. * 4/24/97 jmazner Created
  13. *
  14. ***************************************************************************/
  15. #ifndef __Registry_H__
  16. #define __Registry_H__
  17. //
  18. // Registry.h
  19. // - Helper functions registering and unregistering a component.
  20. //
  21. // This function will register a component in the Registry.
  22. // The component calls this function from its DllRegisterServer function.
  23. HRESULT RegisterServer(HMODULE hModule,
  24. const CLSID& clsid,
  25. const TCHAR* szFriendlyName,
  26. const TCHAR* szVerIndProgID,
  27. const TCHAR* szProgID) ;
  28. // This function will unregister a component. Components
  29. // call this function from their DllUnregisterServer function.
  30. HRESULT UnregisterServer(const CLSID& clsid,
  31. const TCHAR* szVerIndProgID,
  32. const TCHAR* szProgID) ;
  33. #endif