取得顯示名稱,其為目前 Moniker 的使用者可讀取的表示。 C# 複製 public void GetDisplayName (System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out string ppszDisplayName); 參數 pbc IBindCtx 要在這個作業中使用的繫結內容的參考...
IMoniker 接口 概述 IMoniker::BindToObject 方法 IMoniker::BindToStorage 方法 IMoniker::CommonPrefixWith 方法 IMoniker::ComposeWith 方法 IMoniker::Enum 方法 IMoniker::GetDisplayName 方法 IMoniker::GetTimeOfLastChange 方法 IMoniker::Hash 方法 ...
HRESULT GetDisplayName( IBindCtx* pbc, IMoniker* pmkToLeft, LPOlESTR* ppszDisplayName ); Parameterspbc [in] Pointer to the IBindCtx interface on the bind context to be used in this operation. The bind context caches objects bound during the binding process, contains parameters that apply to...
CLSID_AudioRendererCategory, &monikers,0) == S_OK) {for(IMoniker *moniker =0; monikers->Next(1, &moniker,0) == S_OK; moniker->Release()) { OLECHAR *string=0;if(moniker->GetDisplayName(m_bindContext,0, &string) == S_OK) { QString deviceId = QString::fromWCharArray(string);...
IMoniker::GetDisplayNameArticle 06/30/2006 This method returns the display name.Copy HRESULT GetDisplayName( IBindCtx* pbc, IMoniker* pmkToLeft, LPOlESTR* ppszDisplayName ); Parameterspbc [in] Pointer to the IBindCtx interface on the bind context to be used in this operation. The bind...
/* check if both displaynames are the same */if(SUCCEEDED ((res = CreateBindCtx(0,&bind))) {if(SUCCEEDED (IMoniker_GetDisplayName(iface,bind,NULL,&dispName1))) {if(SUCCEEDED (IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&dispName2))) {if(lstrcmpW(dispName1,dispName2)==0) re...
HRESULT GetDisplayName( IBindCtx* pbc, IMoniker* pmkToLeft, LPOlESTR* ppszDisplayName ); Parameterspbc [in] Pointer to the IBindCtx interface on the bind context to be used in this operation. The bind context caches objects bound during the binding process, contains parameters that apply to...
IMoniker接口的MKParseDisplayName和 GetDisplayName的注意事项 IMoniker接口的MKParseDisplayName和 GetDisplayName的注意事项
取得顯示名稱,其為目前 Moniker 的使用者可讀取的表示。 C# 複製 public void GetDisplayName (System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker? pmkToLeft, out string ppszDisplayName); 參數 pbc IBindCtx 要在這個作業中使用的...
Learn more about the Microsoft.VisualStudio.OLE.Interop.IMoniker.GetDisplayName in the Microsoft.VisualStudio.OLE.Interop namespace.