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.

132 lines
2.8 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991-1999 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. Environment:
  9. User Mode - Win32
  10. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  11. Requires ANSI C extensions: slash-slash comments, long external names.
  12. --*/
  13. #ifndef _LMREMUTL_
  14. #define _LMREMUTL_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. //
  22. // Type Definitions
  23. //
  24. #ifndef DESC_CHAR_UNICODE
  25. typedef CHAR DESC_CHAR;
  26. #else // DESC_CHAR_UNICODE is defined
  27. typedef WCHAR DESC_CHAR;
  28. #endif // DESC_CHAR_UNICODE is defined
  29. typedef DESC_CHAR * LPDESC;
  30. //
  31. // Function Prototypes
  32. //
  33. NET_API_STATUS NET_API_FUNCTION
  34. NetRemoteTOD (
  35. IN LPCWSTR UncServerName,
  36. OUT LPBYTE *BufferPtr
  37. );
  38. NET_API_STATUS NET_API_FUNCTION
  39. NetRemoteComputerSupports(
  40. IN LPCWSTR UncServerName OPTIONAL, // Must start with "\\".
  41. IN DWORD OptionsWanted, // Set SUPPORTS_ bits wanted.
  42. OUT LPDWORD OptionsSupported // Supported features, masked.
  43. );
  44. NET_API_STATUS
  45. __cdecl
  46. RxRemoteApi(
  47. IN DWORD ApiNumber,
  48. IN LPCWSTR UncServerName, // Required, with \\name.
  49. IN LPDESC ParmDescString,
  50. IN LPDESC DataDesc16 OPTIONAL,
  51. IN LPDESC DataDesc32 OPTIONAL,
  52. IN LPDESC DataDescSmb OPTIONAL,
  53. IN LPDESC AuxDesc16 OPTIONAL,
  54. IN LPDESC AuxDesc32 OPTIONAL,
  55. IN LPDESC AuxDescSmb OPTIONAL,
  56. IN DWORD Flags,
  57. ... // rest of API's arguments
  58. );
  59. //
  60. // Data Structures
  61. //
  62. typedef struct _TIME_OF_DAY_INFO {
  63. DWORD tod_elapsedt;
  64. DWORD tod_msecs;
  65. DWORD tod_hours;
  66. DWORD tod_mins;
  67. DWORD tod_secs;
  68. DWORD tod_hunds;
  69. LONG tod_timezone;
  70. DWORD tod_tinterval;
  71. DWORD tod_day;
  72. DWORD tod_month;
  73. DWORD tod_year;
  74. DWORD tod_weekday;
  75. } TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO;
  76. //
  77. // Special Values and Constants
  78. //
  79. //
  80. // Mask bits for use with NetRemoteComputerSupports:
  81. //
  82. #define SUPPORTS_REMOTE_ADMIN_PROTOCOL 0x00000002L
  83. #define SUPPORTS_RPC 0x00000004L
  84. #define SUPPORTS_SAM_PROTOCOL 0x00000008L
  85. #define SUPPORTS_UNICODE 0x00000010L
  86. #define SUPPORTS_LOCAL 0x00000020L
  87. #define SUPPORTS_ANY 0xFFFFFFFFL
  88. //
  89. // Flag bits for RxRemoteApi:
  90. //
  91. #define NO_PERMISSION_REQUIRED 0x00000001 // set if use NULL session
  92. #define ALLOCATE_RESPONSE 0x00000002 // set if RxRemoteApi allocates response buffer
  93. #define USE_SPECIFIC_TRANSPORT 0x80000000
  94. #ifdef __cplusplus
  95. }
  96. #endif
  97. #endif //_LMREMUTL_