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.

80 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-1992 Microsoft Corporation
  3. Module Name:
  4. XsConst.h
  5. Abstract:
  6. Constant manifests for XACTSRV.
  7. Author:
  8. David Treadwell (davidtr) 09-Jan-1991
  9. Shanku Niyogi (w-shanku)
  10. Revision History:
  11. --*/
  12. #ifndef _XSCONST_
  13. #define _XSCONST_
  14. //
  15. // The server device name. XACTSRV will open this name to send the
  16. // "connect to XACTSRV" FSCTL to the server.
  17. //
  18. #define XS_SERVER_DEVICE_NAME_W L"\\Device\\LanmanServer"
  19. //
  20. // The name of the LPC port XACTSRV creates and uses for communication
  21. // with the server. This name is included in the connect FSCTL sent to
  22. // the server so that the server knows what port to connect to.
  23. //
  24. #define XS_PORT_NAME_W L"\\XactSrvLpcPort"
  25. #define XS_PORT_NAME_A "\\XactSrvLpcPort"
  26. //
  27. // The maximum size of a message that can be sent over the port.
  28. //
  29. #define XS_PORT_MAX_MESSAGE_LENGTH \
  30. ( sizeof(XACTSRV_REQUEST_MESSAGE) > sizeof(XACTSRV_REPLY_MESSAGE) ? \
  31. sizeof(XACTSRV_REQUEST_MESSAGE) : sizeof(XACTSRV_REPLY_MESSAGE) )
  32. #define XS_PORT_TIMEOUT_MILLISECS 5000
  33. //
  34. // The minimum gap before variable-length data is moved up in a response
  35. // data buffer. If the variable-length data is moved, the converted word
  36. // is set appropriately.
  37. //
  38. #define MAXIMUM_ALLOWABLE_DATA_GAP 100
  39. //
  40. // A scaling function for approximating the maximum required buffer size
  41. // for native Enumeration calls. This value should preferably be 3, because
  42. // at least a factor of 2 is required to convert all 16-bit client words to
  43. // 32-bit native dwords, while character arrays require a factor of more
  44. // than two, to account for Unicode conversion plus a four-byte pointer
  45. // to the converted string.
  46. //
  47. // To specify a minimum value for the buffer size, specify the scaling
  48. // function in form min + s, where min is the minimum and s is the scale.
  49. // DO NOT USE PARENTHESES IN THIS EXPRESSION.
  50. //
  51. #define XS_BUFFER_SCALE 1024 + 3
  52. //
  53. // Parameter descriptor for unsupported APIs.
  54. //
  55. #define REMSmb_NetUnsupportedApi_P NULL
  56. #endif // ndef _XSCONST_