--- mstools/h/dde.h 2018/08/09 18:20:28 1.1.1.2 +++ mstools/h/dde.h 2018/08/09 18:22:58 1.1.1.4 @@ -1,7 +1,14 @@ +#ifndef _DDEHEADER_INCLUDED_ +#define _DDEHEADER_INCLUDED_ + #ifndef _WINDEF_ #include #endif +#ifdef __cplusplus +extern "C" { +#endif + /* DDE window messages */ #define WM_DDE_FIRST 0x03E0 @@ -116,19 +123,34 @@ typedef struct { BYTE rgb[1]; } DDEUP; + /* - * dde-specific access flags + * DDE SECURITY */ -#define DDE_ADVISE 0x0001L -#define DDE_EXECUTE 0x0002L -#define DDE_POKE 0x0004L -#define DDE_REQUEST 0x0008L +BOOL +WINAPI +DdeSetQualityOfService( + HWND hwndClient, + CONST SECURITY_QUALITY_OF_SERVICE *pqosNew, + PSECURITY_QUALITY_OF_SERVICE pqosPrev); + +BOOL +WINAPI +ImpersonateDdeClientWindow( + HWND hWndClient, + HWND hWndServer); -// -// DDE message packing APIs -// +/* + * DDE message packing APIs + */ LONG APIENTRY PackDDElParam(UINT msg, UINT uiLo, UINT uiHi); BOOL APIENTRY UnpackDDElParam(UINT msg, LONG lParam, PUINT puiLo, PUINT puiHi); BOOL APIENTRY FreeDDElParam(UINT msg, LONG lParam); LONG APIENTRY ReuseDDElParam(LONG lParam, UINT msgIn, UINT msgOut, UINT uiLo, UINT uiHi); + +#ifdef __cplusplus +} +#endif + +#endif // _DDEHEADER_INCLUDED_