Sign in to follow this  
Followers 0
roka

NVidia NVAPI Function Call

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Do you have a link to the function definitions in NAVAPI.dll?

:unsure:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0