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.

96 lines
2.8 KiB

  1. /*++
  2. * File name:
  3. * feedback.h
  4. * Contents:
  5. * Common definitions for tclient.dll and clxtshar.dll
  6. *
  7. * Copyright (C) 1998-1999 Microsoft Corp.
  8. --*/
  9. #ifndef _FEEDBACK_H
  10. #define _FEEDBACK_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #define _HWNDOPT "hSMC="
  15. #define _COOKIE "Cookie="
  16. #define MAX_VCNAME_LEN 8
  17. /*
  18. * Definitions for local execution of smclient and RDP client
  19. */
  20. #define _TSTNAMEOFCLAS "_SmClientClass"
  21. #define WM_FB_TEXTOUT (WM_USER+0) // wPar = ProcId,
  22. // lPar = Share mem handle
  23. // to FEEDBACKINFO
  24. #define WM_FB_DISCONNECT (WM_USER+1) // wPar = uResult, lPar = ProcId
  25. #define WM_FB_ACCEPTME (WM_USER+2) // wPar = 0, lPar = ProcId
  26. #define WM_FB_END (WM_USER+3) // tclient's internal
  27. #define WM_FB_CONNECT (WM_USER+5) // wPar = hwndMain,
  28. // lPar = ProcId
  29. #define WM_FB_LOGON (WM_USER+6) // wPar = session ID
  30. // lPar = ProcId
  31. #ifdef OS_WIN32
  32. #define WM_FB_BITMAP WM_FB_GLYPHOUT
  33. #define WM_FB_GLYPHOUT (WM_USER+4) // wPar = ProcId,
  34. // lPar = (HANDLE)BMPFEEDBACK
  35. #define WM_FB_REPLACEPID (WM_USER+7) // wPar = oldPid
  36. // lPar = newPid
  37. typedef struct _FEEDBACKINFO {
  38. DWORD_PTR dwProcessId;
  39. DWORD strsize;
  40. WCHAR string[1024];
  41. WCHAR align;
  42. } FEEDBACKINFO, *PFEEDBACKINFO;
  43. typedef struct _BMPFEEDBACK {
  44. LONG_PTR lProcessId;
  45. UINT bmpsize;
  46. UINT bmiSize;
  47. UINT xSize;
  48. UINT ySize;
  49. BITMAPINFO BitmapInfo;
  50. } BMPFEEDBACK, *PBMPFEEDBACK;
  51. #endif // OS_WIN32
  52. #ifdef _WIN64
  53. typedef unsigned short UINT16;
  54. #else // !_WIN64
  55. #ifdef OS_WIN32
  56. typedef unsigned int UINT32;
  57. typedef unsigned short UINT16;
  58. #endif // OS_WIN32
  59. #ifdef OS_WIN16
  60. typedef unsigned long UINT32;
  61. typedef unsigned int UINT16;
  62. #endif
  63. #endif // _WIN64
  64. // Feedback types. Send from clxtshar.dll to tclient.dll
  65. //
  66. enum FEEDBACK_TYPE {FEED_BITMAP, // bitmap/glyph data
  67. FEED_TEXTOUT, // unicode string
  68. FEED_TEXTOUTA, // ansi string (unused)
  69. FEED_CONNECT, // event connected
  70. FEED_DISCONNECT, // event disconnected
  71. FEED_CLIPBOARD, // clipboard data (RCLX)
  72. FEED_LOGON, // logon event (+ session id)
  73. FEED_CLIENTINFO, // client info (RCLX)
  74. FEED_WILLCALLAGAIN, // rclx.exe will start a client, which will call
  75. // us again
  76. FEED_DATA // response to requested data (RCLX)
  77. } ;
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif // _FEEDBACK_H