roka 1 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 Share this post Link to post Share on other sites
PsaltyDS 39 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 Share this post Link to post Share on other sites
roka 1 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! Share this post Link to post Share on other sites
roka 1 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. Share this post Link to post Share on other sites