ホーム › System.Mmc › Document
Document
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 16
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| vtbl | メソッド |
|---|---|
| 7 | HRESULT Save() |
| 8 | HRESULT SaveAs(LPWSTR Filename) |
| 9 | HRESULT Close(BOOL SaveChanges) |
| 10 | HRESULT get_Views(Views** Views) |
| 11 | HRESULT get_SnapIns(SnapIns** SnapIns) |
| 12 | HRESULT get_ActiveView(View** View) |
| 13 | HRESULT get_Name(LPWSTR* Name) |
| 14 | HRESULT put_Name(LPWSTR Name) |
| 15 | HRESULT get_Location(LPWSTR* Location) |
| 16 | HRESULT get_IsSaved(BOOL* IsSaved) |
| 17 | HRESULT get_Mode(_DocumentMode* Mode) |
| 18 | HRESULT put_Mode(_DocumentMode Mode) |
| 19 | HRESULT get_RootNode(Node** Node) |
| 20 | HRESULT get_ScopeNamespace(ScopeNamespace** ScopeNamespace) |
| 21 | HRESULT CreateProperties(Properties** Properties) |
| 22 | HRESULT get_Application(_Application** Application) |