2001-03-21 06:35:30 +08:00
|
|
|
#ifndef COM_H
|
|
|
|
#define COM_H
|
|
|
|
|
|
|
|
#if PHP_WIN32
|
|
|
|
|
2001-05-03 05:51:19 +08:00
|
|
|
#include "oleauto.h"
|
2001-03-21 06:35:30 +08:00
|
|
|
|
|
|
|
typedef struct i_dispatch_ {
|
|
|
|
int typelib;
|
2001-05-13 22:22:19 +08:00
|
|
|
int referenced;
|
2001-03-21 06:35:30 +08:00
|
|
|
struct {
|
|
|
|
IDispatch *dispatch;
|
|
|
|
ITypeInfo *typeinfo;
|
|
|
|
} i;
|
|
|
|
} i_dispatch;
|
|
|
|
|
2001-05-13 22:22:19 +08:00
|
|
|
PHPAPI HRESULT php_COM_invoke(i_dispatch *obj, DISPID dispIdMember, WORD wFlags, DISPPARAMS FAR* pDispParams, VARIANT FAR* pVarResult);
|
2001-03-21 06:35:30 +08:00
|
|
|
PHPAPI HRESULT php_COM_get_ids_of_names(i_dispatch *obj, OLECHAR FAR* FAR* rgszNames, DISPID FAR* rgDispId);
|
|
|
|
PHPAPI HRESULT php_COM_release(i_dispatch *obj);
|
2001-05-13 22:22:19 +08:00
|
|
|
PHPAPI HRESULT php_COM_addref(i_dispatch *obj);
|
|
|
|
PHPAPI int php_COM_check_ref(i_dispatch *obj);
|
2001-03-21 06:35:30 +08:00
|
|
|
PHPAPI HRESULT php_COM_set(i_dispatch *obj, IDispatch FAR* pDisp, int cleanup);
|
|
|
|
PHPAPI HRESULT php_COM_clone(i_dispatch *obj, i_dispatch *clone, int cleanup);
|
|
|
|
|
|
|
|
#endif /* PHP_WIN32 */
|
|
|
|
|
|
|
|
#endif /* COM_H */
|