Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6iohandler.h
Go to the documentation of this file.
1 
10 #ifndef P6IOHANDLER_H__
11 #define P6IOHANDLER_H__ 1
12 
13 #ifdef __cplusplus
14 namespace P6R {
15 extern "C" {
16 #endif
17 
25  #undef INTERFACE
26  #define INTERFACE p6IIoHandler
28  {
44  P6DECLCOMMETHOD(read)(P6THIS_ P6VOID *pBuffer,P6SIZE cBytesToRead,P6SIZE *pcBytesRead) P6PURE;
45 
46 
61  P6DECLCOMMETHOD(write)(P6THIS_ const P6VOID *pBuffer,P6SIZE cBytesToWrite,P6SIZE *pcBytesWritten) P6PURE;
62 
71  };
72 
73  /*{0508118A-4180-7566-C7C1-92B0269E7BA8}*/
74  #define IF_p6IIoHandler {0x0508118A,0x4180,0x7566,{0xC7,0xC1,0x92,0xB0,0x26,0x9E,0x7B,0xA8}}
75 
83  #undef INTERFACE
84  #define INTERFACE p6IIoReadHandler
86  {
102  P6DECLCOMMETHOD(read)(P6THIS_ P6VOID *pBuffer,P6SIZE cBytesToRead,P6SIZE *pcBytesRead) P6PURE;
103 
111  P6DECLCOMMETHOD(close)(P6THIS) P6PURE;
112  };
113 
114  /*{477CD944-4AFC-F794-2A29-8083578B0223}*/
115  #define IF_p6IIoReadHandler {0x477CD944,0x4AFC,0xF794,{0x2A,0x29,0x80,0x83,0x57,0x8B,0x02,0x23}}
116 
124  #undef INTERFACE
125  #define INTERFACE p6IIoWriteHandler
127  {
143  P6DECLCOMMETHOD(write)(P6THIS_ const P6VOID *pBuffer,P6SIZE cBytesToWrite,P6SIZE *pcBytesWritten) P6PURE;
144 
152  P6DECLCOMMETHOD(close)(P6THIS) P6PURE;
153  };
154 
155  /*{3B17A565-4345-4600-EA71-CD8F607FFDD0}*/
156  #define IF_p6IIoWriteHandler {0x3B17A565,0x4345,0x4600,{0xEA,0x71,0xCD,0x8F,0x60,0x7F,0xFD,0xD0}}
157 
158 #ifdef __cplusplus
159 } // extern "C"
160 } // namespace
161 #endif
162 
163 #endif
164 
size_t P6SIZE
Definition: p6types.h:90
An I/O abstraction interface that can be implemented by components wishing to provide an generic...
Definition: p6iohandler.h:126
#define P6DECLAREICOM
Definition: p6defs.h:191
Standard I/O abstraction interface that can be implemented by components wishing to provide generic...
Definition: p6iohandler.h:27
#define P6PURE
Definition: p6defs.h:192
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
An I/O abstraction interface that can be implemented by components wishing to provide an generic...
Definition: p6iohandler.h:85
#define P6THIS_
Definition: p6defs.h:193
void P6VOID
Definition: p6types.h:109
#define P6THIS
Definition: p6defs.h:194
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188