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.

40 lines
1.3 KiB

  1. //------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000
  5. //
  6. // File: DllRegHelper.h
  7. //
  8. // Contents: helper classes to register COM components in DLLs
  9. //
  10. //------------------------------------------------------------------------
  11. #ifndef _DLL_REG_HELPER_H
  12. #define _DLL_REG_HELPER_H
  13. #include <comcat.h>
  14. //------------------------------------------------------------------------
  15. enum DRH_REG_MODE
  16. {
  17. CCR_REG = 1,
  18. CCR_UNREG = 0,
  19. CCR_UNREGIMP = -1
  20. };
  21. //------------------------------------------------------------------------
  22. //*** RegisterOneCategory -- [un]register ComCat implementor(s) and category
  23. // ENTRY/EXIT
  24. // eRegister CCR_REG, CCR_UNREG, CCR_UNREGIMP
  25. // CCR_REG, UNREG reg/unreg implementor(s) and category
  26. // CCR_UNREGIMP unreg implementor(s) only
  27. // pcatidCat e.g. CATID_DeskBand
  28. // idResCat e.g. IDS_CATDESKBAND
  29. // pcatidImpl e.g. c_DeskBandClasses
  30. HRESULT DRH_RegisterOneCategory(const CATID *pcatidCat, UINT idResCat, const CATID * const *pcatidImpl, enum DRH_REG_MODE eRegister);
  31. // Calls the ADVPACK entry-point which executes an inf file section.
  32. HRESULT DRH_CallRegInstall(LPSTR pszSection, BOOL bUninstall);
  33. #endif // _DLL_REG_HELPER_H