1 #ifndef _SVTOOLS_SVDDE_DDEWRAP_HXX_ 2 #define _SVTOOLS_SVDDE_DDEWRAP_HXX_ 3 4 #define DECLARE_WAPI_FUNC(func) \ 5 extern func##_PROC lpfn##func; 6 7 typedef HSZ (WINAPI *DdeCreateStringHandleW_PROC)( DWORD idInst, LPCWSTR pszString, int iCodePage ); 8 typedef DWORD (WINAPI *DdeQueryStringW_PROC)( DWORD idInst, HSZ hsz, LPWSTR pszString, DWORD cchMax, int iCodePage ); 9 typedef UINT (WINAPI *DdeInitializeW_PROC)( LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes ); 10 11 12 DECLARE_WAPI_FUNC( DdeCreateStringHandleW ); 13 DECLARE_WAPI_FUNC( DdeQueryStringW ); 14 DECLARE_WAPI_FUNC( DdeInitializeW ); 15 16 17 #ifndef _SVTOOLS_SVDDE_DDEWRAP_CXX_ 18 #define DdeCreateStringHandleW lpfnDdeCreateStringHandleW 19 #define DdeQueryStringW lpfnDdeQueryStringW 20 #define DdeInitializeW lpfnDdeInitializeW 21 #endif 22 23 24 #endif 25