moin
ich möchte die atiadlxx.dll benutzen um infos über die grafikkarte abzufragen ( gpu temperatur, lüfter drehzahl, gpu auslastung)
die dll ist bei dem catalyst control center dabei um den treiber steuern zu können
dafür würde ich gerne eine udf schreiben (jedenfalls für die funktionen die ich brauche)
in der beschreibung steht das die funktion ADL_Main_Control_Create als erstes aufgerufen soll
wie rufe ich die funktion richtig auf?
was genau bedeutet der parameter callback?
hier die erklärung aus der hilfe datei
Spoiler anzeigen
int ADL_Main_Control_Create ( ADL_MAIN_MALLOC_CALLBACK callback,
int
iEnumConnectedAdapters
)
Function to initialize the ADL interface. This function should be called first.
This function initializes the ADL library. It also initializes global
pointers and, at the same time, calls the ADL_Main_Control_Refresh
function.
Supported Platforms: Linux and Windows(XP, Vista and Windows 7); 32bit and 64bit
Parameters:
[in] callback,: The memory allocation function for memory buffer allocation. This must be provided by the user.
[in] iEnumConnectedAdapters,: Specify
a value of 0 to retrieve adapter information for all adapters that have
ever been present in the system. Specify a value of 1 to retrieve
adapter information only for adapters that are physically present and
enabled in the system.
Returns:If the function succeeds, the return value is ADL_OK. Otherwise the return value is an ADL error code. Result Codes
so?
Spoiler anzeigen
Global Const $Obj = DllOpen( "C:\WINDOWS\system32\atiadlxx.dll" )
MsgBox(0,"dllopen", $Obj)
$dllcall = DllCall( $Obj, "int", "ADL_Main_Control_Create", "int", "callback?", "int", 1)
MsgBox(0, "dllcall", $dllcall)
ich hab in anderen udf´s gesehen das nach dem dllopen die funktion dllstructcreate benutzt wird muss ich das hier auch machen?
hier noch die komplette hilfe datei zum sdk
mfg bulli
;EDIT: da bisher noch keiner geantwortet hat habe ich die fragestellung nochmal überarbeitet