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.

93 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. Names.h
  5. Abstract:
  6. This module contains routines for dealing with network-related names.
  7. Author:
  8. John Rogers (JohnRo) 15-Feb-1991
  9. Revision History:
  10. 19-Aug-1991 JohnRo
  11. Allow UNICODE use.
  12. Got rid of tabs in source file.
  13. 20-Oct-1992 JohnRo
  14. RAID 9020: setup: PortUas fails ("prompt on conflicts" version).
  15. 26-Jan-1993 JohnRo
  16. RAID 8683: PortUAS should set primary group from Mac parms.
  17. 15-Apr-1993 JohnRo
  18. RAID 6167: avoid access violation or assert with WFW print server.
  19. --*/
  20. #ifndef _NAMES_
  21. #define _NAMES_
  22. #include <windef.h> // BOOL, IN, LPTSTR, OUT, etc.
  23. NET_API_STATUS
  24. NetpGetPrimaryGroupFromMacField(
  25. IN LPCTSTR MacPrimaryField, // name in "mGroup:" format.
  26. OUT LPCTSTR * GroupNamePtr // alloc and set ptr.
  27. );
  28. // This checks for "server" format (not "\\server").
  29. BOOL
  30. NetpIsComputerNameValid(
  31. IN LPTSTR ComputerName
  32. );
  33. BOOL
  34. NetpIsDomainNameValid(
  35. IN LPWSTR DomainName
  36. );
  37. BOOL
  38. NetpIsShareNameValid(
  39. IN LPTSTR ShareName
  40. );
  41. BOOL
  42. NetpIsGroupNameValid(
  43. IN LPTSTR GroupName
  44. );
  45. // This checks for "mGroup:" format.
  46. BOOL
  47. NetpIsMacPrimaryGroupFieldValid(
  48. IN LPCTSTR MacPrimaryField
  49. );
  50. BOOL
  51. NetpIsPrintQueueNameValid(
  52. IN LPCTSTR QueueName
  53. );
  54. // This checks for "\\server\share" format.
  55. BOOL
  56. NetpIsRemoteNameValid(
  57. IN LPTSTR RemoteName
  58. );
  59. // This checks for "\\server" format.
  60. BOOL
  61. NetpIsUncComputerNameValid(
  62. IN LPTSTR ComputerName
  63. );
  64. BOOL
  65. NetpIsUserNameValid(
  66. IN LPTSTR UserName
  67. );
  68. #endif // ndef _NAMES_