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.

32 lines
966 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 2000
  5. //
  6. // File: N E T U T I L . H
  7. //
  8. // Contents:
  9. //
  10. // Notes:
  11. //
  12. // Author:
  13. //
  14. // History: billi 07 03 2001 Added HrFromWin32Error and HrFromLastWin32Error
  15. //
  16. //----------------------------------------------------------------------------
  17. #pragma once
  18. BOOL IsComputerNameValid(LPCTSTR pszName);
  19. BOOL GetWorkgroupName(LPTSTR pszBuffer, int cchBuffer);
  20. BOOL SetWorkgroupName(LPCTSTR pszWorkgroup);
  21. BOOL DoComputerNamesMatch(LPCTSTR pszName1, LPCTSTR pszName2);
  22. void MakeComputerNamePretty(LPCTSTR pszUgly, LPTSTR pszPretty, int cchPretty);
  23. LPTSTR FormatShareNameAlloc(LPCTSTR pszComputerName, LPCTSTR pszShareName);
  24. LPTSTR FormatShareNameAlloc(LPCTSTR pszComputerAndShare);
  25. #define MAX_WORKGROUPNAME_LENGTH MAX_COMPUTERNAME_LENGTH