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.

88 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-92 Microsoft Corporation
  3. Module Name:
  4. NetLibNT.h
  5. Abstract:
  6. This header file declares various common routines for use in the
  7. NT networking code.
  8. Author:
  9. John Rogers (JohnRo) 02-Apr-1991
  10. Environment:
  11. Only runs under NT; has an NT-specific interface (with Win32 types).
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Notes:
  14. You must include <nt.h> and <lmcons.h> before this file.
  15. Revision History:
  16. 02-Apr-1991 JohnRo
  17. Created.
  18. 16-Apr-1991 JohnRo
  19. Avoid conflicts with MIDL-generated files.
  20. 06-May-1991 JohnRo
  21. Implement UNICODE. Avoid NET_API_FUNCTION for non-APIs.
  22. 06-Sep-1991 CliffV
  23. Added NetpApiStatusToNtStatus.
  24. 27-Nov-1991 JohnRo
  25. Added NetpAllocTStrFromString() for local NetConfig APIs.
  26. 03-Jan-1992 JohnRo
  27. Added NetpCopyStringToTStr() for FAKE_PER_PROCESS_RW_CONFIG handling.
  28. 13-Mar-1992 JohnRo
  29. Added NetpAllocStringFromTStr() for NetpGetDomainId().
  30. 22-Sep-1992 JohnRo
  31. RAID 6739: Browser too slow when not logged into browsed domain.
  32. 01-Dec-1992 JohnRo
  33. RAID 3844: remote NetReplSetInfo uses local machine type. (Added
  34. NetpGetProductType and NetpIsProductTypeValid.)
  35. 13-Feb-1995 FloydR
  36. Deleted NetpAllocStringFromTStr() - unused
  37. --*/
  38. #ifndef _NETLIBNT_
  39. #define _NETLIBNT_
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. NET_API_STATUS
  44. NetpNtStatusToApiStatus(
  45. IN NTSTATUS NtStatus
  46. );
  47. NTSTATUS
  48. NetpApiStatusToNtStatus(
  49. NET_API_STATUS NetStatus
  50. );
  51. NET_API_STATUS
  52. NetpRdrFsControlTree(
  53. IN LPTSTR TreeName,
  54. IN LPTSTR TransportName OPTIONAL,
  55. IN ULONG ConnectionType,
  56. IN DWORD FsControlCode,
  57. IN LPVOID SecurityDescriptor OPTIONAL,
  58. IN LPVOID InputBuffer OPTIONAL,
  59. IN DWORD InputBufferSize,
  60. OUT LPVOID OutputBuffer OPTIONAL,
  61. IN DWORD OutputBufferSize,
  62. IN BOOL NoPermissionRequired
  63. );
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif // ndef _NETLIBNT_