Thema: Delphi Gigabyte dll functions

Einzelnen Beitrag anzeigen

Razor
(Gast)

n/a Beiträge
 
#22

Re: Gigabyte dll functions

  Alt 23. Aug 2007, 17:25
Well i wouldnt know even where to start,all i found is this but what does this mean?Does it contain any parameters,well i doubt so.

Zitat:
public LX_IsQDIMainBoard
LX_IsQDIMainBoard proc near
or eax, 0FFFFFFFFh ; LX_IsMSIMainBoard
retn
LX_IsQDIMainBoard endp

Can someone translate this?To delphi..

Zitat:
#include <windows.h>
#include <stdio.h>

typedef int (*isgigabytemobo)(void);

int main()
{
HMODULE hGigabyteLib = NULL;
isgigabytemobo LX_IsGigaMainBoard = NULL;

hGigabyteLib = LoadLibrary(L"W83781D.DLL");

if (hGigabyteLib != NULL)
{
printf("Library loaded: W83781D.DLL.\n");

LX_IsGigaMainBoard = (isgigabytemobo)GetProcAddress(hGigabyteLib, "LX_IsGigaMainBoard");

if (LX_IsGigaMainBoard != NULL)
{
printf("Found LX_IsGigaMainBoard.\n");

printf("i: %i.\n", LX_IsGigaMainBoard());
}
else
printf("Could not find LX_IsGigaMainBoard.\n");

FreeLibrary(hGigabyteLib);
}
else
printf("Couldn't load library W83781D.DLL.\n");

system("pause");

return 0;
}
  Mit Zitat antworten Zitat