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.

151 lines
7.3 KiB

  1. /*****************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /*****************************************************************/
  5. /*** apistruc.h
  6. *
  7. * This file contains the structure definitions used to pass parameters
  8. * to the loadable APIs in the REDIR 1.5 project
  9. *
  10. * CONTENTS tr_packet
  11. * NetWkstaSetUIDStruc
  12. * NetWkstaLogonStruc
  13. * NetWkstaReLogonStruc
  14. * NetSpecialSMBStruc
  15. * NetRemoteCopyStruc
  16. * NetMessageBufferSendStruc
  17. * NetMessageNameGetInfoStruc
  18. * NetServiceControlStruc
  19. * NetUseGetInfoStruc
  20. */
  21. struct tr_packet {
  22. char FAR * tr_name; /* UNC Machine/Transaction name */
  23. char FAR * tr_passwd; /* password */
  24. char FAR * tr_spbuf; /* Send parameter buffer address */
  25. char FAR * tr_sdbuf; /* Send data buffer address */
  26. char FAR * tr_rsbuf; /* Receive set up buffer address */
  27. char FAR * tr_rpbuf; /* Receive parameter buffer address */
  28. char FAR * tr_rdbuf; /* Receive data buffer address */
  29. unsigned short tr_splen; /* Number of send parameter bytes */
  30. unsigned short tr_sdlen; /* Number of send data bytes */
  31. unsigned short tr_rplen; /* Number of receive parameter bytes */
  32. unsigned short tr_rdlen; /* Number of receive data bytes */
  33. unsigned short tr_rslen; /* Number of receive set up bytes */
  34. unsigned short tr_flags; /* Flags */
  35. unsigned long tr_timeout; /* Timeout */
  36. unsigned short tr_resvd; /* RESERVED (MBZ) */
  37. unsigned short tr_sslen; /* Number of send set up bytes */
  38. };/* tr_packet */
  39. /* data structure to simulate Transaction2 SMB.
  40. */
  41. struct tr2_packet {
  42. char FAR * tr2_name; /* UNC Machine/Transaction name */
  43. char FAR * tr2_passwd; /* password */
  44. char FAR * tr2_spbuf; /* Send parameter buffer address */
  45. char FAR * tr2_sdbuf; /* Send data buffer address */
  46. char FAR * tr2_rsbuf; /* Receive set up buffer address */
  47. char FAR * tr2_rpbuf; /* Receive parameter buffer address */
  48. char FAR * tr2_rdbuf; /* Receive data buffer address */
  49. unsigned short tr2_splen; /* Number of send parameter bytes */
  50. unsigned short tr2_sdlen; /* Number of send data bytes */
  51. unsigned short tr2_rplen; /* Number of receive parameter bytes */
  52. unsigned short tr2_rdlen; /* Number of receive data bytes */
  53. unsigned short tr2_rslen; /* Number of receive set up bytes */
  54. unsigned short tr2_flags; /* Flags */
  55. unsigned long tr2_timeout; /* Timeout */
  56. unsigned short tr2_resvd; /* RESERVED (MBZ) */
  57. unsigned short tr2_sslen; /* Number of send set up bytes */
  58. unsigned short tr2_trancode; /* Transaction code for T2 SMB */
  59. };/* tr2_packet */
  60. struct NetWkstaSetUIDStruc {
  61. const char FAR * su_username; /* username to log on/off */
  62. const char FAR * su_password; /* password */
  63. const char FAR * su_parms; /* OEM-specific parameter string */
  64. };/* NetWkstaSetUIDStruc */
  65. struct NetWkstaLogonStruc {
  66. char FAR * ln_username; /* new user name */
  67. char FAR * ln_password; /* new password */
  68. char FAR * ln_parms; /* OEM-specific parameter string */
  69. long FAR * ln_uid; /* UID returned here */
  70. char FAR * ln_buffer; /* buffer for passkey */
  71. unsigned short ln_buflen; /* length of passkey buffer */
  72. };/* NetWkstaLogonStruc */
  73. struct NetWkstaReLogonStruc {
  74. char FAR * rl_username; /* user name to re-log on */
  75. char FAR * rl_password; /* password to use in re-log on */
  76. char FAR * rl_parms; /* OEM-specific parameters */
  77. char FAR * rl_buffer; /* passkey buffer */
  78. unsigned short rl_buflen; /* length of passkey */
  79. };/* NetWkstaReLogonStruc */
  80. struct NetSpecialSMBStruc {
  81. char FAR * sp_uncname; /* UNC session name for SMB */
  82. char FAR * sp_reqbuf; /* Send SMB request buffer */
  83. unsigned short sp_reqlen; /* Length of send buffer */
  84. char FAR * sp_rspbuf; /* Receive SMB response buffer */
  85. unsigned short sp_rsplen; /* Length of receive buffer */
  86. };/* NetSpecialSMBStruc */
  87. struct NetRemoteCopyStruc {
  88. char FAR * sourcepath; /* ASCIIZ fully specified source path */
  89. char FAR * destpath; /* ASCIIZ fully specified dest path */
  90. char FAR * sourcepass; /* password for source path (NULL for default) */
  91. char FAR * destpass; /* password for dest path (NULL for default) */
  92. unsigned short openflags; /* flags for open of destpath */
  93. unsigned short copyflags; /* flags to control the copy */
  94. char FAR * buf; /* buffer to return error text in */
  95. unsigned short buflen; /* size of buffer on call */
  96. };/* NetRemoteCopyStruc */
  97. struct NetMessageBufferSendStruc {
  98. char FAR * NMBSS_NetName; /* asciz net name. */
  99. char FAR * NMBSS_Buffer; /* pointer to buffer. */
  100. unsigned int NMBSS_BufSize; /* size of buffer. */
  101. }; /* NetMessageBufferSendStruc */
  102. struct NetMessageNameGetInfoStruc {
  103. const char FAR * NMNGIS_NetName; /* ASCIZ net name */
  104. char FAR * NMNGIS_Buffer; /* Pointer to buffer */
  105. unsigned int NMNGIS_BufSize; /* Buffer size */
  106. }; /* NetMessageNameGetInfoStruc */
  107. struct NetServiceControlStruc {
  108. char FAR * NSCS_Service; /* Service name */
  109. unsigned short NSCS_BufLen; /* Buffer length */
  110. char FAR * NSCS_BufferAddr;/* Buffer address */
  111. }; /* NetServiceControlStruc */
  112. struct NetUseGetInfoStruc {
  113. const char FAR* NUGI_usename; /* ASCIZ redirected device name */
  114. short NUGI_level; /* level of info */
  115. char FAR* NUGI_buffer; /* buffer for returned info */
  116. unsigned short NUGI_buflen; /* size of buffer */
  117. }; /* NetUseGetInfoStruc */
  118. struct DosWriteMailslotStruct {
  119. unsigned long DWMS_Timeout; /* Timeout value of search */
  120. const char FAR *DWMS_Buffer; /* Buffer address for mailslot write*/
  121. }; /* DosWriteMailslotStruct */
  122. struct NetServerEnum2Struct {
  123. short NSE_level; /* level of information to be returned */
  124. char FAR *NSE_buf; /* buffer to contain returned info */
  125. unsigned short NSE_buflen; /* number of bytes available in buffer */
  126. unsigned long NSE_type; /* bitmask of types to find */
  127. char FAR *NSE_domain; /* return servers in this domain */
  128. }; /* NetServerEnum2Struct */
  129. struct I_CDNames {
  130. char FAR *CDN_pszComputer;
  131. char FAR *CDN_pszPrimaryDomain;
  132. char FAR *CDN_pszLogonDomain;
  133. }; /* I_CDNames */