Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <windows.h>
00021 #include <ddeml.h>
00022 class XAP_Win32APP;
00023
00024 class ABI_EXPORT XAP_Win32Slurp
00025 {
00026 public:
00027 XAP_Win32Slurp(XAP_Win32App * pApp);
00028 ~XAP_Win32Slurp(void);
00029
00030 HDDEDATA CALLBACK doCallback(UINT uType, UINT uFmt, HCONV hConv,
00031 HSZ hsz1, HSZ hsz2, HDDEDATA hData,
00032 DWORD dwData1, DWORD dwData2);
00033 bool connectSlurper(void);
00034 bool disconnectSlurper(void);
00035 void processCommand(HDDEDATA hData);
00036 void stuffRegistry(const char * szSuffix,
00037 const char * szApplicationName,
00038 LPCWSTR szExePathname,
00039 const char * szContentType);
00040
00041 protected:
00042 bool _askForStealFromAnotherApplication(void) const;
00043 bool _askForUpdateExePathname(void) const;
00044 bool _askForStealMimeFromAnotherApplication(void) const;
00045
00046 XAP_Win32App * m_pApp;
00047 bool m_bInitialized;
00048 HSZ m_hszServerName;
00049 HSZ m_hszTopic;
00050 DWORD m_idDdeServerInst;
00051 };
00052