commnet.h
Upload User: jinandeyu
Upload Date: 2007-01-05
Package Size: 620k
Code Size: 2k
Category:

Remote Control

Development Platform:

WINDOWS

  1. /*  Back Orifice 2000 - Remote Administration Suite
  2.     Copyright (C) 1999, Cult Of The Dead Cow
  3.     This file is free software, and not subject to GNU Public License
  4. restrictions; you can redistribute it and/or modify it in any way 
  5. you see fit. This file is suitable for inclusion in a derivative
  6. work, regardless of license on the work or availability of source code
  7. to the work. If you redistribute this file, you must leave this
  8. header intact.
  9.     
  10. This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
  13. The author of this program may be contacted at dildog@l0pht.com. */
  14. #ifndef __INC_COMMNET_H
  15. #define __INC_COMMNET_H
  16. #include<windows.h>
  17. #include<auth.h>
  18. struct bo_command_header {
  19. int cmdlen;
  20. char flags;
  21. int command;
  22. int comid;
  23. int nArg1;
  24. int nArg2Len;
  25. int nArg3Len;
  26. };
  27. #define CMDFLAG_COMMAND 1
  28. #define CMDFLAG_REPLY   2
  29. void BreakDownCommand(BYTE *pInBuffer, int *cmdlen, int *command, int *comid, int *nArg1, char **svArg2, char **svArg3);
  30. BYTE *BuildCommandRequest(int command, int comid, int nArg1, char *svArg2, char *svArg3, int *pnReqLen);
  31. BYTE *BuildCommandReply(int comid, int nReplyCode, char *svReply, int *pnReqLen);
  32. void FreeCommandMemory(BYTE *pCmd);
  33. #ifdef __BO2KSERVER__
  34. int IssueAuthCommandRequest(CAuthSocket *cas_from, int command, int comid, int nArg1, char *svArg2, char *svArg3);
  35. int IssueAuthCommandReply(CAuthSocket *cas_from, int comid, int nReplyCode, char *svReply);
  36. #endif
  37. #endif