Source code of Windows XP (NT5)
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.

89 lines
3.2 KiB

  1. /**INC+**********************************************************************/
  2. /* */
  3. /* ClxApi.h */
  4. /* */
  5. /* Client extension header file */
  6. /* */
  7. /* Copyright(c) Microsoft 1997 */
  8. /* */
  9. /* Notes: */
  10. /* */
  11. /* CLINFO_VERSION */
  12. /* 1 Initial version */
  13. /* 2 hwndMain added to CLINFO struct */
  14. /* */
  15. /****************************************************************************/
  16. #ifndef __CLXAPI_H__
  17. #define __CLXAPI_H__
  18. #include <extypes.h>
  19. #define CLINFO_VERSION 2
  20. #define CLX_DISCONNECT_LOCAL 1
  21. #define CLX_DISCONNECT_BY_USER 2
  22. #define CLX_DISCONNECT_BY_SERVER 3
  23. #define CLX_DISCONNECT_NL_ERROR 4
  24. #define CLX_DISCONNECT_SL_ERROR 5
  25. #define CLX_DISCONNECT_UNKNOWN 6
  26. typedef struct _tag_CLINFO
  27. {
  28. DWORD cbSize; // Size of CLINFO structure (bytes)
  29. DWORD dwVersion; // CLINFO_VERSION
  30. LPTSTR pszServer; // Test server name / address
  31. LPTSTR pszCmdLine; // /clxcmdline= switch data
  32. HWND hwndMain; // Main window handle
  33. } CLINFO, *PCLINFO;
  34. typedef enum
  35. {
  36. CLX_EVENT_CONNECT, // Connect event
  37. CLX_EVENT_DISCONNECT, // Disconnect event
  38. CLX_EVENT_LOGON, // Logon event
  39. } CLXEVENT;
  40. #ifndef PVOID
  41. typedef void * PVOID;
  42. typedef unsigned long ULONG;
  43. typedef char *PCHAR, *PCH, *LPSTR;
  44. #endif
  45. #ifndef DWORD
  46. typedef unsigned long DWORD;
  47. typedef char *LPSTR;
  48. #endif
  49. #ifndef IN
  50. #define IN
  51. #endif
  52. typedef BOOL (WINAPI * PCLX_INITIALIZE)(PCLINFO, PVOID);
  53. typedef BOOL (WINAPI * PCLX_CONNECT)(PVOID, LPTSTR);
  54. typedef VOID (WINAPI * PCLX_EVENT)(PVOID, CLXEVENT, ULONG);
  55. typedef VOID (WINAPI * PCLX_DISCONNECT)(PVOID);
  56. typedef VOID (WINAPI * PCLX_TERMINATE)(PVOID);
  57. typedef VOID (WINAPI * PCLX_TEXTOUT)(PVOID, PVOID, int);
  58. typedef VOID (WINAPI * PCLX_GLYPHOUT)(PVOID, UINT, UINT, PVOID);
  59. typedef VOID (WINAPI * PCLX_BITMAP)(PVOID, UINT, UINT, PVOID, UINT, PVOID);
  60. typedef VOID (WINAPI * PCLX_DIALOG)(PVOID, HWND);
  61. #define CLX_INITIALIZE _T("ClxInitialize")
  62. #define CLX_CONNECT _T("ClxConnect")
  63. #define CLX_EVENT _T("ClxEvent")
  64. #define CLX_DISCONNECT _T("ClxDisconnect")
  65. #define CLX_TERMINATE _T("ClxTerminate")
  66. #define CLX_TEXTOUT _T("ClxTextOut")
  67. #define CLX_GLYPHOUT _T("ClxGlyphOut")
  68. #define CLX_BITMAP _T("ClxBitmap")
  69. #define CLX_DIALOG _T("ClxDialog")
  70. #endif // __CLXAPI_H__