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.

100 lines
2.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. lmocnfg.hxx
  7. Class declarations for the CONFIG class.
  8. This file contains the class declarations for the CONFIG class.
  9. The CONFIG class is used for reading & writing a remote server's
  10. LANMAN.INI configuration file.
  11. FILE HISTORY:
  12. KeithMo 21-Jul-1991 Created for the Server Manager.
  13. */
  14. #ifndef _LMOCNFG_HXX
  15. #define _LMOCNFG_HXX
  16. /*************************************************************************
  17. NAME: LM_CONFIG
  18. SYNOPSIS: This class is used to read & write a remote server's
  19. LANMAN.INI configuration file.
  20. INTERFACE: LM_CONFIG - Class constructor. Takes a
  21. const TCHAR * as the server name.
  22. ~CONFIG - Class destructor.
  23. QueryValue - Reads a single entry from the
  24. configuration file. The user
  25. can supply a default value to
  26. be used if the entry does not
  27. exist.
  28. SetValue - Writes a single entry to the
  29. configuration file.
  30. PARENT: BASE
  31. USES: NLS_STR
  32. HISTORY:
  33. KeithMo 21-Jul-1991 Created for the Server Manager.
  34. KeithMo 21-Aug-1991 Changed const TCHAR * to NLS_STR.
  35. KeithMo 22-Aug-1991 Removed funky LoadModule stuff.
  36. **************************************************************************/
  37. DLL_CLASS LM_CONFIG : public BASE
  38. {
  39. private:
  40. //
  41. // The target server name.
  42. //
  43. NLS_STR _nlsServerName;
  44. //
  45. // The section & key names for this LANMAN.INI parameter.
  46. //
  47. NLS_STR _nlsSectionName;
  48. NLS_STR _nlsKeyName;
  49. public:
  50. //
  51. // Usual constructor/destructor goodies.
  52. //
  53. LM_CONFIG( const TCHAR * pszServerName,
  54. const TCHAR * pszSectionName,
  55. const TCHAR * pszKeyName );
  56. ~LM_CONFIG();
  57. //
  58. // Read a single LANMAN.INI entry.
  59. //
  60. APIERR QueryValue( NLS_STR * pnlsValue,
  61. const TCHAR * pszDefaultValue = NULL );
  62. //
  63. // Write a single LANMAN.INI entry.
  64. //
  65. APIERR SetValue( NLS_STR * pnlsNewValue );
  66. }; // class LM_CONFIG
  67. #endif // _LMOCNFG_HXX