php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_com_dotnet_internal.h File Reference
#include <ocidl.h>
#include <oleauto.h>
#include <unknwn.h>
#include <dispex.h>
#include "win32/winutil.h"

Go to the source code of this file.

Data Structures

struct  _php_com_dotnet_object
 

Macros

#define _WIN32_DCOM
 
#define COBJMACROS
 
#define CDNO_FETCH(zv)
 
#define CDNO_FETCH_VERIFY(obj, zv)
 

Typedefs

typedef struct _php_com_dotnet_object php_com_dotnet_object
 

Functions

zend_objectphp_com_object_new (zend_class_entry *ce)
 
zend_objectphp_com_object_clone (zend_object *object)
 
void php_com_object_free_storage (zend_object *object)
 
void php_com_object_enable_event_sink (php_com_dotnet_object *obj, bool enable)
 
zend_object_iteratorphp_com_saproxy_iter_get (zend_class_entry *ce, zval *object, int by_ref)
 
void php_com_saproxy_create (zend_object *com_object, zval *proxy_out, zval *index)
 
PHP_COM_DOTNET_API zend_stringphp_com_olestring_to_string (OLECHAR *olestring, int codepage)
 
PHP_COM_DOTNET_API OLECHAR * php_com_string_to_olestring (const char *string, size_t string_len, int codepage)
 
BSTR php_com_string_to_bstr (zend_string *string, int codepage)
 
zend_stringphp_com_bstr_to_string (BSTR bstr, int codepage)
 
 PHP_METHOD (com, __construct)
 
HRESULT php_com_invoke_helper (php_com_dotnet_object *obj, DISPID id_member, WORD flags, DISPPARAMS *disp_params, VARIANT *v, bool silent, bool allow_noarg)
 
HRESULT php_com_get_id_of_name (php_com_dotnet_object *obj, zend_string *name, DISPID *dispid)
 
zend_result php_com_do_invoke_by_id (php_com_dotnet_object *obj, DISPID dispid, WORD flags, VARIANT *v, int nargs, zval *args, bool silent, bool allow_noarg)
 
zend_result php_com_do_invoke (php_com_dotnet_object *obj, zend_string *name, WORD flags, VARIANT *v, int nargs, zval *args, bool allow_noarg)
 
zend_result php_com_do_invoke_byref (php_com_dotnet_object *obj, zend_internal_function *f, WORD flags, VARIANT *v, int nargs, zval *args)
 
PHP_COM_DOTNET_API IDispatch * php_com_wrapper_export_as_sink (zval *val, GUID *sinkid, HashTable *id_to_name)
 
PHP_COM_DOTNET_API IDispatch * php_com_wrapper_export (zval *val)
 
void php_com_persist_minit (INIT_FUNC_ARGS)
 
 PHP_METHOD (variant, __construct)
 
PHP_COM_DOTNET_API void php_com_variant_from_zval_with_type (VARIANT *v, zval *z, VARTYPE type, int codepage)
 
PHP_COM_DOTNET_API void php_com_variant_from_zval (VARIANT *v, zval *z, int codepage)
 
PHP_COM_DOTNET_API zend_result php_com_zval_from_variant (zval *z, VARIANT *v, int codepage)
 
PHP_COM_DOTNET_API zend_result php_com_copy_variant (VARIANT *dst, VARIANT *src)
 
 PHP_METHOD (dotnet, __construct)
 
void php_com_dotnet_rshutdown (void)
 
void php_com_dotnet_mshutdown (void)
 
void php_com_throw_exception (HRESULT code, char *message)
 
PHP_COM_DOTNET_API void php_com_wrap_dispatch (zval *z, IDispatch *disp, int codepage)
 
PHP_COM_DOTNET_API void php_com_wrap_variant (zval *z, VARIANT *v, int codepage)
 
PHP_COM_DOTNET_API bool php_com_safearray_get_elem (VARIANT *array, VARIANT *dest, LONG dim1)
 
PHP_COM_DOTNET_API ITypeLib * php_com_load_typelib_via_cache (const char *search_string, int codepage)
 
PHP_COM_DOTNET_API ITypeLib * php_com_load_typelib (char *search_string, int codepage)
 
PHP_COM_DOTNET_API zend_result php_com_import_typelib (ITypeLib *TL, int mode, int codepage)
 
void php_com_typelibrary_dtor (zval *pDest)
 
ITypeInfo * php_com_locate_typeinfo (zend_string *type_lib_name, php_com_dotnet_object *obj, zend_string *dispatch_name, bool sink)
 
bool php_com_process_typeinfo (ITypeInfo *typeinfo, HashTable *id_to_name, bool printdef, GUID *guid, int codepage)
 
ITypeLib * php_com_cache_typelib (ITypeLib *TL, char *cache_key, zend_long cache_key_len)
 
 PHP_MINIT_FUNCTION (com_typeinfo)
 
 PHP_MSHUTDOWN_FUNCTION (com_typeinfo)
 
zend_object_iteratorphp_com_iter_get (zend_class_entry *ce, zval *object, int by_ref)
 

Variables

zend_class_entryphp_com_variant_class_entry
 
zend_class_entryphp_com_exception_class_entry
 
zend_class_entryphp_com_saproxy_class_entry
 
zend_object_handlers php_com_object_handlers
 
zend_object_handlers php_com_saproxy_handlers
 

Macro Definition Documentation

◆ _WIN32_DCOM

#define _WIN32_DCOM

Definition at line 20 of file php_com_dotnet_internal.h.

◆ CDNO_FETCH

#define CDNO_FETCH ( zv)
Value:
zval * zv
Definition ffi.c:3975
struct _php_com_dotnet_object php_com_dotnet_object
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 59 of file php_com_dotnet_internal.h.

◆ CDNO_FETCH_VERIFY

#define CDNO_FETCH_VERIFY ( obj,
zv )
Value:
do { \
if (!php_com_is_valid_object(zv)) { \
php_com_throw_exception(E_UNEXPECTED, "expected a variant object"); \
return; \
} \
} while(0)

Definition at line 60 of file php_com_dotnet_internal.h.

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file php_com_dotnet_internal.h.

Typedef Documentation

◆ php_com_dotnet_object

Function Documentation

◆ php_com_bstr_to_string()

zend_string * php_com_bstr_to_string ( BSTR bstr,
int codepage )

Definition at line 127 of file com_olechar.c.

◆ php_com_cache_typelib()

ITypeLib * php_com_cache_typelib ( ITypeLib * TL,
char * cache_key,
zend_long cache_key_len )

Definition at line 253 of file com_typeinfo.c.

◆ php_com_copy_variant()

PHP_COM_DOTNET_API zend_result php_com_copy_variant ( VARIANT * dst,
VARIANT * src )

Definition at line 285 of file com_variant.c.

◆ php_com_do_invoke()

zend_result php_com_do_invoke ( php_com_dotnet_object * obj,
zend_string * name,
WORD flags,
VARIANT * v,
int nargs,
zval * args,
bool allow_noarg )

Definition at line 631 of file com_com.c.

◆ php_com_do_invoke_by_id()

zend_result php_com_do_invoke_by_id ( php_com_dotnet_object * obj,
DISPID dispid,
WORD flags,
VARIANT * v,
int nargs,
zval * args,
bool silent,
bool allow_noarg )

Definition at line 584 of file com_com.c.

◆ php_com_do_invoke_byref()

zend_result php_com_do_invoke_byref ( php_com_dotnet_object * obj,
zend_internal_function * f,
WORD flags,
VARIANT * v,
int nargs,
zval * args )

Definition at line 456 of file com_com.c.

◆ php_com_dotnet_mshutdown()

void php_com_dotnet_mshutdown ( void )

◆ php_com_dotnet_rshutdown()

void php_com_dotnet_rshutdown ( void )

◆ php_com_get_id_of_name()

HRESULT php_com_get_id_of_name ( php_com_dotnet_object * obj,
zend_string * name,
DISPID * dispid )

Definition at line 410 of file com_com.c.

◆ php_com_import_typelib()

PHP_COM_DOTNET_API zend_result php_com_import_typelib ( ITypeLib * TL,
int mode,
int codepage )

Definition at line 179 of file com_typeinfo.c.

◆ php_com_invoke_helper()

HRESULT php_com_invoke_helper ( php_com_dotnet_object * obj,
DISPID id_member,
WORD flags,
DISPPARAMS * disp_params,
VARIANT * v,
bool silent,
bool allow_noarg )

Definition at line 332 of file com_com.c.

◆ php_com_iter_get()

zend_object_iterator * php_com_iter_get ( zend_class_entry * ce,
zval * object,
int by_ref )

Definition at line 134 of file com_iterator.c.

◆ php_com_load_typelib()

PHP_COM_DOTNET_API ITypeLib * php_com_load_typelib ( char * search_string,
int codepage )

Definition at line 61 of file com_typeinfo.c.

◆ php_com_load_typelib_via_cache()

PHP_COM_DOTNET_API ITypeLib * php_com_load_typelib_via_cache ( const char * search_string,
int codepage )

Definition at line 268 of file com_typeinfo.c.

◆ php_com_locate_typeinfo()

ITypeInfo * php_com_locate_typeinfo ( zend_string * type_lib_name,
php_com_dotnet_object * obj,
zend_string * dispatch_name,
bool sink )

Definition at line 305 of file com_typeinfo.c.

◆ php_com_object_clone()

zend_object * php_com_object_clone ( zend_object * object)

Definition at line 594 of file com_handlers.c.

◆ php_com_object_enable_event_sink()

void php_com_object_enable_event_sink ( php_com_dotnet_object * obj,
bool enable )

Definition at line 541 of file com_handlers.c.

◆ php_com_object_free_storage()

void php_com_object_free_storage ( zend_object * object)

Definition at line 565 of file com_handlers.c.

◆ php_com_object_new()

zend_object * php_com_object_new ( zend_class_entry * ce)

Definition at line 618 of file com_handlers.c.

◆ php_com_olestring_to_string()

PHP_COM_DOTNET_API zend_string * php_com_olestring_to_string ( OLECHAR * olestring,
int codepage )

Definition at line 70 of file com_olechar.c.

◆ php_com_persist_minit()

void php_com_persist_minit ( INIT_FUNC_ARGS )

Definition at line 709 of file com_persist.c.

◆ php_com_process_typeinfo()

bool php_com_process_typeinfo ( ITypeInfo * typeinfo,
HashTable * id_to_name,
bool printdef,
GUID * guid,
int codepage )

Definition at line 479 of file com_typeinfo.c.

◆ php_com_safearray_get_elem()

PHP_COM_DOTNET_API bool php_com_safearray_get_elem ( VARIANT * array,
VARIANT * dest,
LONG dim1 )

Definition at line 92 of file com_misc.c.

◆ php_com_saproxy_create()

void php_com_saproxy_create ( zend_object * com_object,
zval * proxy_out,
zval * index )

Definition at line 418 of file com_saproxy.c.

◆ php_com_saproxy_iter_get()

zend_object_iterator * php_com_saproxy_iter_get ( zend_class_entry * ce,
zval * object,
int by_ref )

Definition at line 526 of file com_saproxy.c.

◆ php_com_string_to_bstr()

BSTR php_com_string_to_bstr ( zend_string * string,
int codepage )

Definition at line 100 of file com_olechar.c.

◆ php_com_string_to_olestring()

PHP_COM_DOTNET_API OLECHAR * php_com_string_to_olestring ( const char * string,
size_t string_len,
int codepage )

Definition at line 29 of file com_olechar.c.

◆ php_com_throw_exception()

void php_com_throw_exception ( HRESULT code,
char * message )

Definition at line 28 of file com_misc.c.

◆ php_com_typelibrary_dtor()

void php_com_typelibrary_dtor ( zval * pDest)

Definition at line 247 of file com_typeinfo.c.

◆ php_com_variant_from_zval()

PHP_COM_DOTNET_API void php_com_variant_from_zval ( VARIANT * v,
zval * z,
int codepage )

Definition at line 181 of file com_variant.c.

◆ php_com_variant_from_zval_with_type()

PHP_COM_DOTNET_API void php_com_variant_from_zval_with_type ( VARIANT * v,
zval * z,
VARTYPE type,
int codepage )

◆ php_com_wrap_dispatch()

PHP_COM_DOTNET_API void php_com_wrap_dispatch ( zval * z,
IDispatch * disp,
int codepage )

Definition at line 45 of file com_misc.c.

◆ php_com_wrap_variant()

PHP_COM_DOTNET_API void php_com_wrap_variant ( zval * z,
VARIANT * v,
int codepage )

Definition at line 67 of file com_misc.c.

◆ php_com_wrapper_export()

PHP_COM_DOTNET_API IDispatch * php_com_wrapper_export ( zval * val)

Definition at line 580 of file com_wrapper.c.

◆ php_com_wrapper_export_as_sink()

PHP_COM_DOTNET_API IDispatch * php_com_wrapper_export_as_sink ( zval * val,
GUID * sinkid,
HashTable * id_to_name )

Definition at line 544 of file com_wrapper.c.

◆ php_com_zval_from_variant()

PHP_COM_DOTNET_API zend_result php_com_zval_from_variant ( zval * z,
VARIANT * v,
int codepage )

Definition at line 186 of file com_variant.c.

◆ PHP_METHOD() [1/3]

PHP_METHOD ( com ,
__construct  )

Definition at line 29 of file com_com.c.

◆ PHP_METHOD() [2/3]

PHP_METHOD ( dotnet ,
__construct  )

◆ PHP_METHOD() [3/3]

PHP_METHOD ( variant ,
__construct  )

Definition at line 435 of file com_variant.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( com_typeinfo )

Definition at line 34 of file com_typeinfo.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( com_typeinfo )

Definition at line 45 of file com_typeinfo.c.

Variable Documentation

◆ php_com_exception_class_entry

zend_class_entry * php_com_exception_class_entry

Definition at line 69 of file php_com_dotnet_internal.h.

◆ php_com_object_handlers

zend_object_handlers php_com_object_handlers
extern

Definition at line 513 of file com_handlers.c.

◆ php_com_saproxy_class_entry

zend_class_entry * php_com_saproxy_class_entry

Definition at line 69 of file php_com_dotnet_internal.h.

◆ php_com_saproxy_handlers

zend_object_handlers php_com_saproxy_handlers
extern

Definition at line 390 of file com_saproxy.c.

◆ php_com_variant_class_entry

zend_class_entry* php_com_variant_class_entry
extern

Definition at line 51 of file com_extension.c.