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.

43 lines
1.5 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. //
  6. //
  7. //
  8. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  9. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  10. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  11. // PURPOSE.
  12. //
  13. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  14. //
  15. //
  16. //
  17. //==============================================================;
  18. #ifndef __Registry_H__
  19. #define __Registry_H__
  20. #include <tchar.h>
  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. // This function will unregister a component. Components
  27. // call this function from their DllUnregisterServer function.
  28. HRESULT UnregisterServer(const CLSID& clsid) ;
  29. // This function will register a Snap-In component. Components
  30. // call this function from their DllRegisterServer function.
  31. HRESULT RegisterSnapin(const CLSID& clsid, // Class ID
  32. const _TCHAR* szNameString, // NameString
  33. const CLSID& clsidAbout, // Class Id for About Class
  34. const BOOL fSupportExtensions = FALSE);
  35. HRESULT UnregisterSnapin(const CLSID& clsid); // Class ID
  36. #endif