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.

71 lines
1.4 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: rcmdsrv.h
  3. *
  4. * Copyright (c) 1991, Microsoft Corporation
  5. *
  6. * Main include file for remote shell server
  7. *
  8. * History:
  9. * 06-28-92 Davidc Created.
  10. \***************************************************************************/
  11. // #define UNICODE // BUGBUG - Not completely unicode yet
  12. #include <windows.h>
  13. #include <stdio.h>
  14. #include <assert.h>
  15. #include <rcmd.h>
  16. #include <lsautil.h>
  17. //
  18. // Macros
  19. //
  20. #define RcCloseHandle(Handle, handle_name) \
  21. if (CloseHandle(Handle) == FALSE) { \
  22. RcDbgPrint("Close Handle failed for <%s>, error = %d\n", handle_name, GetLastError()); \
  23. assert(FALSE); \
  24. }
  25. #define Alloc(Bytes) LocalAlloc(LPTR, Bytes)
  26. #define Free(p) LocalFree(p)
  27. //
  28. // Maximum number of connected clients
  29. //
  30. #define MAX_SESSIONS 10
  31. //
  32. // main server routine if built as service
  33. //
  34. int Rcmd ( );
  35. //
  36. // service stop routine
  37. //
  38. DWORD RcmdStop ( );
  39. //
  40. // Runtime-enabled DbgPrint
  41. //
  42. int RcDbgPrint (
  43. const char *format,
  44. ...
  45. );
  46. extern HANDLE RcmdStopEvent;
  47. extern HANDLE RcmdStopCompleteEvent;
  48. extern HANDLE SessionThreadHandles[MAX_SESSIONS+1];
  49. // extern BOOLEAN RcDbgPrintEnable;
  50. //
  51. // Module header files
  52. //
  53. #include "session.h"
  54. #include "async.h"
  55. #include "pipe.h"
  56.