Jump to content

NVidia NVAPI Function Call


Recommended Posts

Hi,

I'm trying to use the NVidia NVAPI and control a NVidia Quadro driver with it.

Did anybody try this before?

Not sure if calling nvapi.dll already gives access to all NVAPI functions or not. I'm afraid my lack of C#/C++ knowledge is a problem here :unsure:

That's my testing code so far:

#include <Array.au3>

;DLLs
Global $hNvAPIDLL = DllOpen("nvapi.dll") ; NVAPI DLL
MsgBox(0,"DEBUG1",$hNvAPIDLL) ; DEBUG MESSAGE


$tmp = DllCall($hNvAPIDLL, "str", "NvAPI_Initialize") 
If NOT @error Then
    MsgBox(0,"DEBUG2","success") ; DEBUG MESSAGE
Else
    MsgBox(0,"DEBUG2","error") ; DEBUG MESSAGE
EndIf


$tmp = DllCall($hNvAPIDLL, "int", "NvAPI_GetDisplayDriverVersion")
If NOT @error Then
    If IsArray($tmp) Then
        _ArrayDisplay($tmp)
        MsgBox(0,"DEBUG3","debug") ; DEBUG MESSAGE
    EndIf
Else
    MsgBox(0,"DEBUG3","error") ; DEBUG MESSAGE
EndIf

DllClose($hNvAPIDLL)
Edited by roka
Link to comment
Share on other sites

http://developer.nvidia.com/nvapi

There's a link to a developer package (http://developer.nvidia.com/sites/default/files/akamai/tools/files/NVAPI_Dec2010.zip) which contains the nvapi.h

All available functions are explained in it.

Thanks for trying to help. I sure appreciate it!

Link to comment
Share on other sites

So... NVAPI provides a nvapi.lib

DllCall of nvapi.dll doesn't do anything.

Therefore NVAPI only gives C++ programmers the chance to do something with the API.

Very frustrating.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...