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
1.5 KiB

  1. /*++
  2. Copyright (C) 1992-2001 Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. rsniffclnt.h
  5. Abstract:
  6. Forward definitions for rsniffclnt.cpp
  7. Author:
  8. Anthony Leibovitz (tonyle) 03-24-2001
  9. Revision History:
  10. --*/
  11. #ifndef _RSNIFFCLNT_H_
  12. #define _RSNIFFCLNT_H_
  13. #define TCP_SERV_PORT 2222
  14. typedef struct _tagSOCKCB {
  15. SOCKET s;
  16. } *PSOCKCB, SOCKCB;
  17. #define RSNIFF_OPT1_DOSNIFF 0x00000001
  18. #define RSNIFF_OPT1_GETSRVROUTINGINFO 0x00000002
  19. typedef struct _REMOTECAPTURE_V6 {
  20. DWORD dwVer;
  21. WCHAR szMachine[MAX_COMPUTERNAME_LENGTH+1];
  22. } *PREMOTECAPTURE_V6,REMOTECAPTURE_V6;
  23. typedef struct _REMOTECAPTURE {
  24. DWORD dwVer;
  25. WCHAR szMachine[MAX_COMPUTERNAME_LENGTH+1];
  26. DWORD dwOpt1;
  27. DWORD dwOpt2;
  28. } *PREMOTECAPTURE,REMOTECAPTURE;
  29. typedef struct _REMOTECAPTURE_V5 {
  30. DWORD dwVer;
  31. CHAR szMachine[MAX_COMPUTERNAME_LENGTH+1];
  32. } *PREMOTECAPTURE_V5,REMOTECAPTURE_V5;
  33. BOOL
  34. DoRemoteSniff(PSOCKCB *ppSockCb, WCHAR *szAddr, DWORD dwOptions);
  35. BOOL
  36. SendStartSniffPacket(PSOCKCB pSock, DWORD dwOptions);
  37. PSOCKCB
  38. CreateSocket(int Af, int Type, int Proto);
  39. BOOL
  40. ConnectSock(PSOCKCB pSock, SOCKADDR* pDstAddr, int size);
  41. PSOCKCB
  42. TcpConnectRoutine(WCHAR *pAddr);
  43. BOOL
  44. InitWinsock(void);
  45. BOOL
  46. SendBuffer(SOCKET s, LPBYTE pBuffer, ULONG uSize);
  47. BOOL
  48. RecvBuffer(SOCKET s, LPBYTE pBuffer, ULONG uSize);
  49. #endif // _RSNIFFCLNT_H_