// #import "shell32.dll" にて自動生成された shell32.tli より一部抜粋 // interface IShellDispatch wrapper method implementations inline FolderPtr IShellDispatch::BrowseForFolder ( long Hwnd, _bstr_t Title, long Options, const _variant_t & RootFolder ) { struct Folder * _result = 0; HRESULT _hr = raw_BrowseForFolder(Hwnd, Title, Options, RootFolder, &_result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return FolderPtr(_result, false); } // interface Folder wrapper method implementations inline _bstr_t Folder::GetTitle ( ) { BSTR _result = 0; HRESULT _hr = get_Title(&_result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _bstr_t(_result, false); }