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.

64 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. smb.h
  5. Abstract:
  6. This file contains request and response structure definitions
  7. for the specific parameters of each SMB command, as well as codes
  8. for SMB commands and errors.
  9. Author:
  10. Chuck Lenzmeier (chuckl) 10-Dec-1993
  11. Revision History:
  12. --*/
  13. #ifndef _SMBIPX_
  14. #define _SMBIPX_
  15. #define SMB_IPX_SERVER_SOCKET 0x5005 // 0x0550 in high-low format
  16. #define SMB_IPX_NAME_SOCKET 0x5105 // 0x0551 in high-low format
  17. #define SMB_IPX_REDIR_SOCKET 0x5205 // 0x0552 in high-low format
  18. #define SMB_IPX_MAILSLOT_SOCKET 0x5305 // 0x0553 in high-low format
  19. #define SMB_IPX_MESSENGER_SOCKET 0x5405 // 0x0554 in high-low format
  20. #define SMB_ERR_BAD_SID 0x10
  21. #define SMB_ERR_WORKING 0x11
  22. #define SMB_ERR_NOT_ME 0x12
  23. #define SMB_IPX_NAME_LENGTH 16
  24. typedef struct _SMB_IPX_NAME_PACKET {
  25. UCHAR Route[32];
  26. UCHAR Operation;
  27. UCHAR NameType;
  28. USHORT MessageId;
  29. UCHAR Name[SMB_IPX_NAME_LENGTH];
  30. UCHAR SourceName[SMB_IPX_NAME_LENGTH];
  31. } SMB_IPX_NAME_PACKET;
  32. typedef SMB_IPX_NAME_PACKET SMB_UNALIGNED *PSMB_IPX_NAME_PACKET;
  33. #define SMB_IPX_NAME_CLAIM 0xf1
  34. #define SMB_IPX_NAME_DELETE 0xf2
  35. #define SMB_IPX_NAME_QUERY 0xf3
  36. #define SMB_IPX_NAME_FOUND 0xf4
  37. #define SMB_IPX_MESSENGER_HANGUP 0xf5
  38. #define SMB_IPX_MAILSLOT_SEND 0xfc
  39. #define SMB_IPX_MAILSLOT_FIND 0xfd
  40. #define SMB_IPX_MAILSLOT_FOUND 0xfe
  41. #define SMB_IPX_NAME_TYPE_MACHINE 0x01
  42. #define SMB_IPX_NAME_TYPE_WORKKGROUP 0x02
  43. #define SMB_IPX_NAME_TYPE_BROWSER 0x03
  44. #endif // _SMBIPX_