bocomreg.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_BOCOMREG_H
  15. #define __INC_BOCOMREG_H
  16. #include<windows.h>
  17. #include<auth.h>
  18. #define MAX_BO_COMMANDS 1024
  19. #define INVALID_CMD_HANDLER ((BO_CMD_HANDLER) NULL)
  20. typedef int (*BO_CMD_HANDLER)(CAuthSocket *cas_from, int comid, DWORD nArg1, char *svArg2, char *svArg3);
  21. #pragma pack(push,1)
  22. typedef struct {
  23. BOOL bNativeComm;
  24. char *svFolderName;
  25. char *svCommName;
  26. char *svArgDesc1;
  27. char *svArgDesc2;
  28. char *svArgDesc3;
  29. } BO_CMD_DESC; 
  30. #pragma pack(pop)
  31. #ifdef __BO2KSERVER__
  32. extern BO_CMD_HANDLER *command_handler_table;
  33. extern BO_CMD_DESC *command_description_table;
  34. int InitializeCommandDispatcher(void);
  35. int KillCommandDispatcher(void);
  36. int RegisterNativeCommand(int command, BO_CMD_HANDLER handler);
  37. int RegisterCommand(BO_CMD_HANDLER handler, char *svFolderName, char *svCommName, char *svArgDesc1, char *svArgDesc2, char *svArgDesc3);
  38. int UnregisterCommand(int command);
  39. int DispatchCommand(int command, CAuthSocket *cas_from, int comid, int nArg1, char *svArg2, char *svArg3);
  40. #endif
  41. #endif