I'm trying to develop a plugin that needs some Windows API contracts, to use GlobalSystemMediaTransportControlsSessionManager and IAsyncOperation. When I make the references and use the methods I get the following error:
I'm trying to develop a plugin that needs some Windows API contracts, to use GlobalSystemMediaTransportControlsSessionManager and IAsyncOperation. When I make the references and use the methods I get the following error:
Did you find a solution to your problem ? I have the exact same situation trying to use the GlobalSystemMediaTransportControlsSessionManager interface.
It seems that DllExporter isn't compatible with modern .Net Framework versions, and I can't use .Net Framework 2.0 because of other dependencies...
Update: I could successfully perform the assembly, after having modified DllExporter source to use latest .net framework and compiled it.
However, I don't know if the resulting Dll will be usable as a rainmeter plugin yet
I'll keep you posted.
If you still have issue, lmk and I can look to see if some of the modifications I made to a similar DllExport routine I use for x64 bit code and dynamic virtual channels would be helpful here. I ran into a lot of weird stuff over the last several years crossing .NET and then the bitness changes.
mysterd2006 wrote: ↑July 11th, 2022, 5:49 pm
Update: I could successfully perform the assembly, after having modified DllExporter source to use latest .net framework and compiled it.
However, I don't know if the resulting Dll will be usable as a rainmeter plugin yet
I'll keep you posted.
dethknite wrote: ↑July 31st, 2022, 6:01 pm
If you still have issue, lmk and I can look to see if some of the modifications I made to a similar DllExport routine I use for x64 bit code and dynamic virtual channels would be helpful here. I ran into a lot of weird stuff over the last several years crossing .NET and then the bitness changes.