You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//header
EXTERN_C const IID IID_IVirtualDesktop;
MIDL_INTERFACE("FF72FFDD-BE7E-43FC-9C03-AD81681E88E4") // <- on my winver the uuid is different
IVirtualDesktop : public IUnknown
{
public:virtual HRESULT STDMETHODCALLTYPE IsViewVisible(IApplicationView *pView, int *pfVisible) = 0;
virtual HRESULT STDMETHODCALLTYPE GetID(GUID *pGuid) = 0;
virtual HRESULT STDMETHODCALLTYPE GetName(HSTRING* name) = 0;
};
...
IVirtualDesktop* pNewDesktop = nullptr;
hr = pDesktopManagerInternal->CreateDesktopW(&pNewDesktop);
if (FAILED(hr))
return0;
HSTRING str;
pNewDesktop->GetName(&str); // <- fails with the following exception: Exception thrown at 0x00007FFD65CFB1C8 (actxprxy.dll) in
I'm confused how to get/set the desktop name, I'm using C++ not AutoHotkey.
I saw that your DLL is not exporting these apis, i wonder if you could give an example?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On Ciantic code he have:
I have no experience with rust, on your C++ port, you added:
VirtualDesktopAccessor/VirtualDesktopAccessor/Win10Desktops.h
Line 168 in d7fb98a
I attempt to call it as:
I'm confused how to get/set the desktop name, I'm using C++ not AutoHotkey.
I saw that your DLL is not exporting these apis, i wonder if you could give an example?
Beta Was this translation helpful? Give feedback.
All reactions