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.

73 lines
2.9 KiB

  1. /****************************************************************************/
  2. // anmint.h
  3. //
  4. // RDP Network Manager internal header
  5. //
  6. // Copyright (C) 1997-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. #ifndef _H_ANMINT
  9. #define _H_ANMINT
  10. #include <anmapi.h>
  11. #include <mcsioctl.h>
  12. #include <nwdwapi.h>
  13. /****************************************************************************/
  14. /* Values for connectStatus field in NM Handle (note these are flags, hence */
  15. /* discrete bits not contiguous values) */
  16. /****************************************************************************/
  17. #define NM_CONNECT_NONE 0
  18. #define NM_CONNECT_ATTACH 0x01
  19. #define NM_CONNECT_JOIN_USER 0x02
  20. #define NM_CONNECT_JOIN_BROADCAST 0x04
  21. typedef struct tagNM_HANDLE_DATA
  22. {
  23. /************************************************************************/
  24. /* pSMHandle MUST be first here to allow SM_MCSSendDataCallback() to */
  25. /* get its context pointer through double-indirection. */
  26. /************************************************************************/
  27. PVOID pSMHandle;
  28. PTSHARE_WD pWDHandle;
  29. PSDCONTEXT pContext;
  30. UserHandle hUser;
  31. ChannelID channelID;
  32. ChannelHandle hChannel;
  33. DomainHandle hDomain;
  34. UINT32 connectStatus;
  35. UINT32 userID;
  36. UINT32 maxPDUSize;
  37. BOOL dead;
  38. /************************************************************************/
  39. /* Virtual channel information */
  40. /* - channelCount - number of channels in this session */
  41. /* - channelArrayCount - number of entries in the array */
  42. /* - channelData - information held for each channel */
  43. /* */
  44. /* Channel 7 is used by RDPDD. I want to use the virtual channel ID as */
  45. /* an index into channelData, hence entry 7 is left blank. If there are */
  46. /* more than 7 channels, channelArrayCount will be channelCount + 1. */
  47. /************************************************************************/
  48. UINT channelCount;
  49. UINT channelArrayCount;
  50. NM_CHANNEL_DATA channelData[VIRTUAL_MAXIMUM];
  51. } NM_HANDLE_DATA, *PNM_HANDLE_DATA;
  52. /****************************************************************************/
  53. /* Functions */
  54. /****************************************************************************/
  55. BOOL RDPCALL NMDetachUserReq(PNM_HANDLE_DATA);
  56. void RDPCALL NMAbortConnect(PNM_HANDLE_DATA);
  57. void RDPCALL NMDetachUserInd(PNM_HANDLE_DATA, MCSReason, UserID);
  58. #endif /* _H_ANMINT */