Source code of Windows XP (NT5)
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.

149 lines
3.4 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. lmremutl.h
  5. Abstract:
  6. This file contains structures, function prototypes, and definitions
  7. for the NetRemote API.
  8. Author:
  9. Dan Lafferty (danl) 10-Mar-1991
  10. Environment:
  11. User Mode - Win32
  12. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Revision History:
  15. 10-Mar-1991 danl
  16. Created from LM2.0 header files and NT-LAN API Spec.
  17. 14-Mar-1991 JohnRo
  18. Delete password case-sensitivity bit.
  19. Change time of day structure to be NT style names.
  20. 22-Mar-1991 JohnRo
  21. Changed tod_timezone to be signed. Got rid of tabs in file.
  22. 06-May-1991 JohnRo
  23. Implement UNICODE.
  24. 31-Oct-1991 JohnRo
  25. RAID 3414: allow explicit local server name. Also allow use of
  26. NetRemoteComputerSupports() for local computer.
  27. 06-May-1993 JohnRo
  28. RAID 8849: Export RxRemoteApi for general use.
  29. --*/
  30. #ifndef _LMREMUTL_
  31. #define _LMREMUTL_
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. //
  36. // Type Definitions
  37. //
  38. #ifndef DESC_CHAR_UNICODE
  39. typedef CHAR DESC_CHAR;
  40. #else // DESC_CHAR_UNICODE is defined
  41. typedef WCHAR DESC_CHAR;
  42. #endif // DESC_CHAR_UNICODE is defined
  43. typedef DESC_CHAR * LPDESC;
  44. //
  45. // Function Prototypes
  46. //
  47. NET_API_STATUS NET_API_FUNCTION
  48. NetRemoteTOD (
  49. IN LPTSTR UncServerName,
  50. OUT LPBYTE *BufferPtr
  51. );
  52. NET_API_STATUS NET_API_FUNCTION
  53. NetRemoteComputerSupports(
  54. IN LPTSTR UncServerName OPTIONAL, // Must start with "\\".
  55. IN DWORD OptionsWanted, // Set SUPPORTS_ bits wanted.
  56. OUT LPDWORD OptionsSupported // Supported features, masked.
  57. );
  58. NET_API_STATUS
  59. RxRemoteApi(
  60. IN DWORD ApiNumber,
  61. IN LPTSTR UncServerName, // Required, with \\name.
  62. IN LPDESC ParmDescString,
  63. IN LPDESC DataDesc16 OPTIONAL,
  64. IN LPDESC DataDesc32 OPTIONAL,
  65. IN LPDESC DataDescSmb OPTIONAL,
  66. IN LPDESC AuxDesc16 OPTIONAL,
  67. IN LPDESC AuxDesc32 OPTIONAL,
  68. IN LPDESC AuxDescSmb OPTIONAL,
  69. IN DWORD Flags,
  70. ... // rest of API's arguments
  71. );
  72. //
  73. // Data Structures
  74. //
  75. typedef struct _TIME_OF_DAY_INFO {
  76. DWORD tod_elapsedt;
  77. DWORD tod_msecs;
  78. DWORD tod_hours;
  79. DWORD tod_mins;
  80. DWORD tod_secs;
  81. DWORD tod_hunds;
  82. LONG tod_timezone;
  83. DWORD tod_tinterval;
  84. DWORD tod_day;
  85. DWORD tod_month;
  86. DWORD tod_year;
  87. DWORD tod_weekday;
  88. } TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO;
  89. //
  90. // Special Values and Constants
  91. //
  92. //
  93. // Mask bits for use with NetRemoteComputerSupports:
  94. //
  95. #define SUPPORTS_REMOTE_ADMIN_PROTOCOL 0x00000002L
  96. #define SUPPORTS_RPC 0x00000004L
  97. #define SUPPORTS_SAM_PROTOCOL 0x00000008L
  98. #define SUPPORTS_UNICODE 0x00000010L
  99. #define SUPPORTS_LOCAL 0x00000020L
  100. #define SUPPORTS_ANY 0xFFFFFFFFL
  101. //
  102. // Flag bits for RxRemoteApi:
  103. //
  104. #define NO_PERMISSION_REQUIRED 0x00000001 // set if use NULL session
  105. #define ALLOCATE_RESPONSE 0x00000002 // set if RxRemoteApi allocates response buffer
  106. #define USE_SPECIFIC_TRANSPORT 0x80000000
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110. #endif //_LMREMUTL_