Seite 1 von 1

Computer firma API

Verfasst: 03.08.2005 13:03
von MASH
Gibt es ein Api welches die firma (Die die man am anfang bei der Installation von Windows eingegeben hat) ausgibt?

Verfasst: 03.08.2005 13:20
von Kiffi
eine Api gibt es wohl nicht.
Man kann diese Info allerdings aus der Registry auslesen:

Code: Alles auswählen

Company$ = RegGetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion", "RegisteredOrganization", ".")
If Company$ = ""
  Company$ = RegGetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", ".")
EndIf 

Debug Company$
Wichtig! RegGetValue ist eine Funktion aus Droopy's Lib

Grüße ... Kiffi

Verfasst: 03.08.2005 16:05
von MASH
Sorry auch wenn es nicht mehr in das thema API's passt aber weshalb hast du erst beim Schlüssel "Windows" und dann "Windows NT" geschaut?

Verfasst: 03.08.2005 16:14
von Kiffi
MASH hat geschrieben:Sorry auch wenn es nicht mehr in das thema API's passt
aber weshalb hast du erst beim Schlüssel "Windows" und dann "Windows NT"
geschaut?
Du kannst die Abfragereihenfolge auch umdrehen.

Windows -> W95 / W98 / Windows ME(?)
Windows NT -> NT4 / W2000 / XP / W2003

Grüße ... Kiffi