Leaked source code of windows server 2003
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.

50 lines
1.5 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1987-1992 **/
  4. /********************************************************************/
  5. /*++
  6. Revision History:
  7. 16-Jan-1992 JohnRo
  8. The redirector always expects UNICODE for the transact parm name.
  9. --*/
  10. #ifndef _APIWORKE_
  11. #define _APIWORKE_
  12. /*
  13. * apiworke.h - General defines used by the API worker.
  14. */
  15. #define REM_MAX_PARMS 360
  16. #define BUF_INC 200
  17. #define REM_NO_SRV_RESOURCE 55
  18. #define REM_NO_ADMIN_RIGHTS 44
  19. #define REM_API_TIMEOUT 5000 /* 5 second timeout */
  20. /* The REM_API_TXT is the text string that is copied into the parmater
  21. * packet of the redirector transaction IOCTl following "\\SERVERNAME".
  22. * The additional \0 is so that the password field is terminated.
  23. * APIEXTR is the length of this field.
  24. */
  25. #define REM_APITXT L"\\PIPE\\LANMAN\0"
  26. #define APIEXTR (sizeof(REM_APITXT))
  27. /* The pointer identifiers in the descriptor stings are all lower case so
  28. * thet a quick check can be made for a pointer type. The IS_POINTER macro
  29. * just checks for > 'Z' for maximum speed.
  30. */
  31. #define IS_POINTER(x) ((x) > 'Z')
  32. #define RANGE_F(x,y,z) (((unsigned long)x >= (unsigned long)y) && \
  33. ((unsigned long)x < ((unsigned long)y + z)))
  34. #endif // ndef _APIWORKE_