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.

88 lines
3.0 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: protocol.h
  7. //
  8. // Contents:
  9. // protocol DLL exported API prototypes
  10. //
  11. // History:
  12. // September 16, 1997 - created [gabrielh]
  13. //
  14. //---------------------------------------------------------------------------
  15. #if !defined(AFX_PROTOCOL_H__21F848EE_1F3B_9D1_BD1B_0000F8757111__INCLUDED_)
  16. #define AFX_PROTOCOL_H__21F848EE_1F3B_9D1_BD1B_0000F8757111__INCLUDED_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. //
  21. //headers required
  22. #include "sctypes.h"
  23. #ifndef PROTOCOLAPI
  24. #define PROTOCOLAPI __declspec(dllimport)
  25. #endif
  26. #define SMCAPI _stdcall
  27. typedef void (__cdecl *PFNPRINTMESSAGE) (MESSAGETYPE, LPCSTR, ...);
  28. typedef struct tagSCINITDATA
  29. {
  30. PFNPRINTMESSAGE pfnPrintMessage;
  31. } SCINITDATA;
  32. PROTOCOLAPI LPCSTR SMCAPI SCConnect (LPCWSTR lpszServerName,
  33. LPCWSTR lpszUserName,
  34. LPCWSTR lpszPassword,
  35. LPCWSTR lpszDomain,
  36. const int xResolution,
  37. const int yResolution,
  38. void **ppConnectData);
  39. PROTOCOLAPI LPCSTR SMCAPI SCDisconnect (void *pConnectData);
  40. PROTOCOLAPI LPCSTR SMCAPI SCLogoff (void *pConnectData);
  41. PROTOCOLAPI LPCSTR SMCAPI SCStart (void *pConnectData,
  42. LPCWSTR lpszApplicationName);
  43. PROTOCOLAPI LPCSTR SMCAPI SCClipboard (void *pConnectData,
  44. const CLIPBOARDOPS eClipOp,
  45. LPCSTR lpszFileName);
  46. PROTOCOLAPI LPCSTR SMCAPI SCSenddata (void *pConnectData,
  47. const UINT uiMessage,
  48. const WPARAM wParam,
  49. const LPARAM lParam);
  50. PROTOCOLAPI void SMCAPI SCInit (SCINITDATA *pInitData);
  51. PROTOCOLAPI void SMCAPI SCDone ();
  52. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCONNECT)(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR,
  53. const int, const int, void **);
  54. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCDISCONNECT)(void *);
  55. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCLOGOFF)(void *);
  56. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCSTART)(void *, LPCWSTR);
  57. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCLIPBOARD)(void *, const CLIPBOARDOPS, LPCSTR);
  58. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCSENDDATA)(void *, const UINT,
  59. const WPARAM, const LPARAM);
  60. typedef PROTOCOLAPI void (SMCAPI *PFNSCINIT)(SCINITDATA *);
  61. typedef PROTOCOLAPI void (SMCAPI *PFNSCDONE)();
  62. typedef struct tagPROTOCOLAPISTRUCT
  63. {
  64. PFNSCCONNECT pfnSCConnect;
  65. PFNSCDISCONNECT pfnSCDisconnect;
  66. PFNSCLOGOFF pfnSCLogoff;
  67. PFNSCSTART pfnSCStart;
  68. PFNSCSENDDATA pfnSCSenddata;
  69. PFNSCCLIPBOARD pfnSCClipboard;
  70. } PROTOCOLAPISTRUCT;
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif//!defined(AFX_PROTOCOL_H__21F848EE_1F3B_9D1_BD1B_0000F8757111__INCLUDED_)