COM_getMethods_()

概要

IDispatch ポインタによってサポートされる COM メソッド一覧(タイプと引数名の説明付き)を取得します。

構文

COM_getMethods_ ( serverHandle As User ) As Llist 
引数 [タイプ] 説明
serverHandle ユーザ IDispatch ポインタです。

例 1

Word.Application オブジェクトで定義されているすべてのメソッドとプロパティの一覧を表示します。
Method getWinWordModel() As List 
    Dim winword As User = COM_connectServer_("Word.Application") 
    Dim retList As List = {"Methods:"} + COM_getMethods_(winword) + {"Properties:"} + COM_getProperties_(winword) 
    COM_releaseDispatch_(winword) 
    Return retList 
End Method
出力(省略版)
--> {"Methods:", "void QueryInterface( in GUID* riid, out void** ppvObj)", "ULONG AddRef( )", "ULONG Release( )", "void GetTypeInfoCount( out UINT* pctinfo)", "void GetTypeInfo( in UINT itinfo, in ULONG lcid, out void** pptinfo)", ? "Properties:", "Application* Application", "long Creator", "IDispatch* Parent", "BSTR Name", "Documents* Documents", ? }