-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathIDDECltConv.hpp
67 lines (48 loc) · 1.64 KB
/
IDDECltConv.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
////////////////////////////////////////////////////////////////////////////////
//! \file IDDECltConv.hpp
//! \brief The IDDECltConv interface declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef NCL_IDDECLTCONV_HPP
#define NCL_IDDECLTCONV_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include "IDDEConv.hpp"
namespace DDE
{
////////////////////////////////////////////////////////////////////////////////
//! A client DDE conversation.
class XDDECltConv : virtual public XDDEConv
{
public:
//! Destructor.
virtual ~XDDECltConv() {};
//
// Properties.
//
//! The parent DDE client.
virtual IDDEClient* Client() const = 0;
//! Set the timeout for a DDE transaction.
virtual void SetTimeout(DWORD timeout) = 0;
//
// Methods.
//
//! Request a string based value.
virtual CString RequestString(const tchar* pszItem, uint nFormat) const = 0;
//! Request a value in a custom format.
virtual CDDEData Request(const tchar* pszItem, uint nFormat) const = 0;
//! Execute a string based command on the server.
virtual void ExecuteString(const tchar* pszCommand) const = 0;
//! Execute a command on the server.
virtual void Execute(const void* pValue, size_t nSize) const = 0;
//! Poke a sring based value.
virtual void PokeString(const tchar* pszItem, const tchar* pszValue, uint nFormat) const = 0;
//! Poke a sring based value.
virtual void Poke(const tchar* pszItem, uint nFormat, const void* pValue, size_t nSize) const = 0;
//! Start an advise loop on the server for an item.
virtual CDDELink* CreateLink(const tchar* pszItem, uint nFormat = CF_TEXT) = 0;
};
//namespace DDE
}
#endif // NCL_IDDECLTCONV_HPP