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.

57 lines
1.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /**********************************************************************/
  5. /*
  6. * History
  7. * chuckc 12/7/90 Created
  8. * chuckc 3/1/91 coderev changes from 2/28/91
  9. * (chuckc, rustanl, johnl, annmc, jonshu)
  10. * terryk 9/19/91 Change parent class from LM_OBJ to
  11. * LOC_LM_OBJ
  12. */
  13. #ifndef _LMOCOMP_HXX_
  14. #define _LMOCOMP_HXX_
  15. #include "lmobj.hxx"
  16. /**********************************************************\
  17. NAME: COMPUTER
  18. WORKBOOK:
  19. SYNOPSIS: computer class
  20. INTERFACE:
  21. QueryName() - query name
  22. SetName() - set the computer name
  23. PARENT: LOC_LM_OBJ
  24. HISTORY:
  25. chuckc 12/7/90 Created
  26. \**********************************************************/
  27. DLL_CLASS COMPUTER : public LOC_LM_OBJ
  28. {
  29. public:
  30. const TCHAR * QueryName() const
  31. { return _nlsName.QueryPch(); }
  32. APIERR SetName( const TCHAR * pszName )
  33. { _nlsName = pszName ; return _nlsName.QueryError(); }
  34. protected:
  35. COMPUTER(const TCHAR * pszName) ;
  36. ~COMPUTER() ;
  37. private:
  38. APIERR ValidateName( const TCHAR * pszName ) ;
  39. NLS_STR _nlsName;
  40. } ;
  41. #endif // _LMOCOMP_HXX_