📄 shdocvw.tli
字号:
HRESULT _hr = raw_OnNavigate(lCookie, pvarloc);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellWindows::OnActivated ( long lCookie, VARIANT_BOOL fActive ) {
HRESULT _hr = raw_OnActivated(lCookie, fActive);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr IShellWindows::FindWindowSW ( VARIANT * pvarloc, VARIANT * pvarlocRoot, int swClass, long * pHWND, int swfwOptions ) {
IDispatch * _result;
HRESULT _hr = raw_FindWindowSW(pvarloc, pvarlocRoot, swClass, pHWND, swfwOptions, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline HRESULT IShellWindows::OnCreated ( long lCookie, IUnknown * punk ) {
HRESULT _hr = raw_OnCreated(lCookie, punk);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellWindows::ProcessAttachDetach ( VARIANT_BOOL fAttach ) {
HRESULT _hr = raw_ProcessAttachDetach(fAttach);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IShellUIHelper wrapper method implementations
//
inline HRESULT IShellUIHelper::ResetFirstBootMode ( ) {
HRESULT _hr = raw_ResetFirstBootMode();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::ResetSafeMode ( ) {
HRESULT _hr = raw_ResetSafeMode();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::RefreshOfflineDesktop ( ) {
HRESULT _hr = raw_RefreshOfflineDesktop();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AddFavorite ( _bstr_t URL, VARIANT * Title ) {
HRESULT _hr = raw_AddFavorite(URL, Title);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AddChannel ( _bstr_t URL ) {
HRESULT _hr = raw_AddChannel(URL);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AddDesktopComponent ( _bstr_t URL, _bstr_t Type, VARIANT * Left, VARIANT * Top, VARIANT * Width, VARIANT * Height ) {
HRESULT _hr = raw_AddDesktopComponent(URL, Type, Left, Top, Width, Height);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL IShellUIHelper::IsSubscribed ( _bstr_t URL ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_IsSubscribed(URL, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IShellUIHelper::NavigateAndFind ( _bstr_t URL, _bstr_t strQuery, VARIANT * varTargetFrame ) {
HRESULT _hr = raw_NavigateAndFind(URL, strQuery, varTargetFrame);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::ImportExportFavorites ( VARIANT_BOOL fImport, _bstr_t strImpExpPath ) {
HRESULT _hr = raw_ImportExportFavorites(fImport, strImpExpPath);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AutoCompleteSaveForm ( VARIANT * Form ) {
HRESULT _hr = raw_AutoCompleteSaveForm(Form);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AutoScan ( _bstr_t strSearch, _bstr_t strFailureUrl, VARIANT * pvarTargetFrame ) {
HRESULT _hr = raw_AutoScan(strSearch, strFailureUrl, pvarTargetFrame);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellUIHelper::AutoCompleteAttach ( VARIANT * Reserved ) {
HRESULT _hr = raw_AutoCompleteAttach(Reserved);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IShellUIHelper::ShowBrowserUI ( _bstr_t bstrName, VARIANT * pvarIn ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_ShowBrowserUI(bstrName, pvarIn, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
//
// dispinterface DShellNameSpaceEvents wrapper method implementations
//
inline HRESULT DShellNameSpaceEvents::FavoritesSelectionChange ( long cItems, long hItem, _bstr_t strName, _bstr_t strUrl, long cVisits, _bstr_t strDate, long fAvailableOffline ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003\x0008\x0008\x0003\x0008\x0003", cItems, hItem, (BSTR)strName, (BSTR)strUrl, cVisits, (BSTR)strDate, fAvailableOffline);
}
inline HRESULT DShellNameSpaceEvents::SelectionChange ( ) {
return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DShellNameSpaceEvents::DoubleClick ( ) {
return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
inline HRESULT DShellNameSpaceEvents::Initialized ( ) {
return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
//
// interface IShellFavoritesNameSpace wrapper method implementations
//
inline HRESULT IShellFavoritesNameSpace::MoveSelectionUp ( ) {
HRESULT _hr = raw_MoveSelectionUp();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::MoveSelectionDown ( ) {
HRESULT _hr = raw_MoveSelectionDown();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::ResetSort ( ) {
HRESULT _hr = raw_ResetSort();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::NewFolder ( ) {
HRESULT _hr = raw_NewFolder();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::Synchronize ( ) {
HRESULT _hr = raw_Synchronize();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::Import ( ) {
HRESULT _hr = raw_Import();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::Export ( ) {
HRESULT _hr = raw_Export();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::InvokeContextMenuCommand ( _bstr_t strCommand ) {
HRESULT _hr = raw_InvokeContextMenuCommand(strCommand);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellFavoritesNameSpace::MoveSelectionTo ( ) {
HRESULT _hr = raw_MoveSelectionTo();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL IShellFavoritesNameSpace::GetSubscriptionsEnabled ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_SubscriptionsEnabled(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IShellFavoritesNameSpace::CreateSubscriptionForSelection ( ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_CreateSubscriptionForSelection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IShellFavoritesNameSpace::DeleteSubscriptionForSelection ( ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_DeleteSubscriptionForSelection(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IShellFavoritesNameSpace::SetRoot ( _bstr_t bstrFullPath ) {
HRESULT _hr = raw_SetRoot(bstrFullPath);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IShellNameSpace wrapper method implementations
//
inline long IShellNameSpace::GetEnumOptions ( ) {
long _result;
HRESULT _hr = get_EnumOptions(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IShellNameSpace::PutEnumOptions ( long pgrfEnumFlags ) {
HRESULT _hr = put_EnumOptions(pgrfEnumFlags);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IDispatchPtr IShellNameSpace::GetSelectedItem ( ) {
IDispatch * _result;
HRESULT _hr = get_SelectedItem(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline void IShellNameSpace::PutSelectedItem ( IDispatch * pItem ) {
HRESULT _hr = put_SelectedItem(pItem);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t IShellNameSpace::GetRoot ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Root(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void IShellNameSpace::PutRoot ( const _variant_t & pvar ) {
HRESULT _hr = put_Root(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int IShellNameSpace::GetDepth ( ) {
int _result;
HRESULT _hr = get_Depth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IShellNameSpace::PutDepth ( int piDepth ) {
HRESULT _hr = put_Depth(piDepth);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned int IShellNameSpace::GetMode ( ) {
unsigned int _result;
HRESULT _hr = get_Mode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IShellNameSpace::PutMode ( unsigned int puMode ) {
HRESULT _hr = put_Mode(puMode);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned long IShellNameSpace::GetFlags ( ) {
unsigned long _result;
HRESULT _hr = get_Flags(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IShellNameSpace::PutFlags ( unsigned long pdwFlags ) {
HRESULT _hr = put_Flags(pdwFlags);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void IShellNameSpace::PutTVFlags ( unsigned long dwFlags ) {
HRESULT _hr = put_TVFlags(dwFlags);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned long IShellNameSpace::GetTVFlags ( ) {
unsigned long _result;
HRESULT _hr = get_TVFlags(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IShellNameSpace::GetColumns ( ) {
BSTR _result;
HRESULT _hr = get_Columns(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IShellNameSpace::PutColumns ( _bstr_t bstrColumns ) {
HRESULT _hr = put_Columns(bstrColumns);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int IShellNameSpace::GetCountViewTypes ( ) {
int _result;
HRESULT _hr = get_CountViewTypes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IShellNameSpace::SetViewType ( int iType ) {
HRESULT _hr = raw_SetViewType(iType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr IShellNameSpace::SelectedItems ( ) {
IDispatch * _result;
HRESULT _hr = raw_SelectedItems(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline HRESULT IShellNameSpace::Expand ( const _variant_t & var, int iDepth ) {
HRESULT _hr = raw_Expand(var, iDepth);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IShellNameSpace::UnselectAll ( ) {
HRESULT _hr = raw_UnselectAll();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IScriptErrorList wrapper method implementations
//
inline HRESULT IScriptErrorList::advanceError ( ) {
HRESULT _hr = raw_advanceError();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IScriptErrorList::retreatError ( ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -