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.

59 lines
1.2 KiB

  1. //
  2. // apihandl.h
  3. //
  4. // Defines the internal structure used to hold
  5. // information regarding a TCLIENT connection.
  6. //
  7. // Copyright (C) 2001 Microsoft Corporation
  8. //
  9. // Author: a-devjen (Devin Jenson)
  10. //
  11. #ifndef INC_APIHANDL_H
  12. #define INC_APIHANDL_H
  13. #include <windows.h>
  14. #include <crtdbg.h>
  15. #include <protocol.h>
  16. #include <extraexp.h>
  17. typedef void *CONNECTION;
  18. // Handle data type
  19. typedef struct
  20. {
  21. CONNECTION SCConnection;
  22. DWORD BuildNumber;
  23. CHAR WaitStr[MAX_PATH];
  24. BOOL IsAltDown;
  25. BOOL IsShiftDown;
  26. BOOL IsCtrlDown;
  27. LPARAM lParam;
  28. DWORD DelayPerChar;
  29. DWORD WordsPerMinute;
  30. HANDLE PauseEvent;
  31. DWORD Latency;
  32. } TSAPIHANDLE;
  33. // These macros allow to easily switch between
  34. // the TCLIENT SCConnection handle and a TCLIENT2
  35. // Connection handle.
  36. // TCLIENT2 -> TCLIENT
  37. #define SCCONN(TSHandle) (((TSAPIHANDLE *)TSHandle)->SCConnection)
  38. // TCLIENT -> TCLIENT2
  39. #define TSHNDL(SCConn) ((HANDLE)(&SCConn))
  40. TSAPIHANDLE *T2CreateHandle(void);
  41. void T2DestroyHandle(HANDLE Connection);
  42. void T2WaitForPauseInput(HANDLE Connection);
  43. void T2WaitForLatency(HANDLE Connection);
  44. #endif // INC_APIHANDL_H