AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Gigabyte dll functions

Ein Thema von Razor · begonnen am 11. Aug 2007 · letzter Beitrag vom 29. Aug 2007
 
Razor
(Gast)

n/a Beiträge
 
#19

Re: Gigabyte dll functions

  Alt 12. Aug 2007, 14:26
LX_IsGigaMainBoard //Checks if its gigabyte board


This functions 100%.Works like this if you have a Gigabyte board then it will show i:0(as boolean true) if you don't have a Gigabyte board then it will show i:-1(as boolean false).Simple,eh?


Delphi-Quellcode:
#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
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz