roka Posted May 9, 2011 Posted May 9, 2011 (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 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 May 11, 2011 by roka
PsaltyDS Posted May 10, 2011 Posted May 10, 2011 Do you have a link to the function definitions in NAVAPI.dll? 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
roka Posted May 10, 2011 Author Posted May 10, 2011 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!
roka Posted May 11, 2011 Author Posted May 11, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now