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.

50 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1997
  6. //
  7. // File: bnreg.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //
  11. // BNREG.H: Belief Network Registry Access
  12. //
  13. #include "basics.h"
  14. #include "regkey.h"
  15. //
  16. // HKEY_LOCAL_MACHINE\Software\Microsoft\DTAS\BeliefNetworks
  17. // HKEY_LOCAL_MACHINE\Software\Microsoft\DTAS\BeliefNetworks\PropertyTypes
  18. //
  19. class MBNET;
  20. class GOBJPROPTYPE;
  21. class BNREG
  22. {
  23. public:
  24. BNREG ();
  25. ~ BNREG ();
  26. // Store the property types from this network into the Registry
  27. void StorePropertyTypes ( MBNET & mbnet, bool bStandard = false );
  28. // Load the property types from the Registry into this network
  29. void LoadPropertyTypes ( MBNET & mbnet, bool bStandard );
  30. // Load a single property type from the Registry into the network
  31. void LoadPropertyType ( MBNET & mbnet, SZC szcPropTypeName );
  32. // Remove all property types from the Registry
  33. void DeleteAllPropertyTypes ();
  34. // Return the flags from a Registry-based property type or -1 if not found
  35. LONG FPropType ( SZC szcPropType );
  36. protected:
  37. REGKEY _rkBn;
  38. void OpenOrCreate ( HKEY hk, REGKEY & rk, SZC szcKeyName );
  39. void CreatePropType ( REGKEY & rkParent,
  40. SZC szcPropType,
  41. GOBJPROPTYPE & bnpt,
  42. bool bStandard = false );
  43. };