home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / lmremutl.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  129 lines

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