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.

72 lines
1.8 KiB

  1. /************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name :
  4. registry.h
  5. Abstract :
  6. GUIDS
  7. Author :
  8. Revision History :
  9. ***********************************************************************/
  10. #ifndef __Registry_H__
  11. #define __Registry_H__
  12. #include <tchar.h>
  13. struct EXTENSION_NODE
  14. {
  15. GUID GUID;
  16. _TCHAR szDescription[256];
  17. };
  18. enum EXTENSION_TYPE
  19. {
  20. NameSpaceExtension,
  21. ContextMenuExtension,
  22. ToolBarExtension,
  23. PropertySheetExtension,
  24. TaskExtension,
  25. DynamicExtension,
  26. DummyExtension
  27. };
  28. struct EXTENDER_NODE
  29. {
  30. EXTENSION_TYPE eType;
  31. GUID guidNode;
  32. GUID guidExtension;
  33. _TCHAR szDescription[256];
  34. };
  35. // This function will register a component in the Registry.
  36. // The component calls this function from its DllRegisterServer function.
  37. HRESULT RegisterServer(HMODULE hModule,
  38. const CLSID& clsid,
  39. const _TCHAR* szFriendlyName,
  40. const _TCHAR* szThreadingModel = _T("Apartment"),
  41. bool Remoteable = false,
  42. const _TCHAR* SecurityString = NULL ) ;
  43. // This function will unregister a component. Components
  44. // call this function from their DllUnregisterServer function.
  45. HRESULT UnregisterServer(const CLSID& clsid) ;
  46. // This function will register a Snap-In component. Components
  47. // call this function from their DllRegisterServer function.
  48. HRESULT RegisterSnapin(const CLSID& clsid, // Class ID
  49. const _TCHAR* szNameString, // NameString
  50. const CLSID& clsidAbout); // Class Id for About Class
  51. HRESULT UnregisterSnapin(const CLSID& clsid); // Class ID
  52. #endif