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