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.

71 lines
1.2 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. //
  3. // Net utility functions
  4. //
  5. // 11-4-1999 sburns
  6. #ifndef NETUTIL_HPP_INCLUDED
  7. #define NETUTIL_HPP_INCLUDED
  8. // Returns true if some form of networking support is installed on the
  9. // machine, false if not.
  10. bool
  11. IsNetworkingInstalled();
  12. // Returns true if tcp/ip protocol is installed and bound to at least 1
  13. // adapter.
  14. bool
  15. IsTcpIpInstalled();
  16. HRESULT
  17. MyNetJoinDomain(
  18. const String& domain,
  19. const String& username,
  20. const EncryptedString& password,
  21. ULONG flags);
  22. HRESULT
  23. MyNetRenameMachineInDomain(
  24. const String& newNetbiosName,
  25. const String& username,
  26. const EncryptedString& password,
  27. DWORD flags);
  28. HRESULT
  29. MyNetUnjoinDomain(
  30. const String& username,
  31. const EncryptedString& password,
  32. DWORD flags);
  33. HRESULT
  34. MyNetValidateName(
  35. const String& name,
  36. NETSETUP_NAME_TYPE nameType);
  37. // Caller must delete info with NetApiBufferFree.
  38. HRESULT
  39. MyNetWkstaGetInfo(const String& serverName, WKSTA_INFO_100*& info);
  40. #endif // NETUTIL_HPP_INCLUDED