首页 >函数列表 >com_print_typeinfo

com_print_typeinfo

com_print_typeinfo

(PHP 4 >= 4.2.0, PHP 5)

com_print_typeinfoPrint out a PHP class definition for a dispatchable interface

说明

bool com_print_typeinfo ( object $comobject [, string $dispinterface [, bool $wantsink = false ]] )

The purpose of this function is to help generate a skeleton class for use as an event sink. You may also use it to generate a dump of any COM object, provided that it supports enough of the introspection interfaces, and that you know the name of the interface you want to display.

参数

comobject

comobject should be either an instance of a COM object, or be the name of a typelibrary (which will be resolved according to the rules set out in com_load_typelib()).

dispinterface

The name of an IDispatch descendant interface that you want to display.

wantsink

If set to TRUE, the corresponding sink interface will be displayed instead.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


  • com_addref
  • com_create_guid
  • com_event_sink
  • com_get
  • com_get_active_object
  • com_invoke
  • com_isenum
  • com_load
  • com_load_typelib
  • com_message_pump
  • com_print_typeinfo
  • com_propget
  • com_propput
  • com_propset
  • com_release
  • com_set
  • variant_abs
  • variant_add
  • variant_and
  • variant_cast
  • variant_cat
  • variant_cmp
  • variant_date_from_timestamp
  • variant_date_to_timestamp
  • variant_div
  • variant_eqv
  • variant_fix
  • variant_get_type
  • variant_idiv
  • variant_imp
  • variant_int
  • variant_mod
  • variant_mul
  • variant_neg
  • variant_not
  • variant_or
  • variant_pow
  • variant_round
  • variant_set
  • variant_set_type
  • variant_sub
  • variant_xor
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道