Original Post
I want to use NVAPI to check if SLI is available, and if so, enable an SLI mode in my application.
However I was unable to find a managed version of the NVAPI, and there doesn't seem to be any other way to enable SLI.
I know it's possible to call unmanaged code from C#, but I've never worked with marshalling / pinvokes.
Could someone explain what the proper course of action would be to expose some of the nvapi functions to a managed application written in C#?
I'm assuming I'll have to compile nvapi to a dll first, load it with [DllImport()] and expose the functions I need using the extern keyword.
Is this the correct way of doing is, or do I not fully grasp the concept of calling unmanaged code?
Can someone suggest a good marshalling / pinvoke tutorial to get me started? :)
Cheers,
Hyu
However I was unable to find a managed version of the NVAPI, and there doesn't seem to be any other way to enable SLI.
I know it's possible to call unmanaged code from C#, but I've never worked with marshalling / pinvokes.
Could someone explain what the proper course of action would be to expose some of the nvapi functions to a managed application written in C#?
I'm assuming I'll have to compile nvapi to a dll first, load it with [DllImport()] and expose the functions I need using the extern keyword.
Is this the correct way of doing is, or do I not fully grasp the concept of calling unmanaged code?
Can someone suggest a good marshalling / pinvoke tutorial to get me started? :)
Cheers,
Hyu