[code=thinbasic]
' How to find out who your computer is registered to.
'and change it if you wanted to. see rem section at bottom.
's = Registry_GetValue(HKEY, MainKey, KeyName)
USES "OS"
USES "Registry"
Dim RegOrg as STRING
DIM RegOwn as STRING
DIM sMsg AS STRING
if OS_WinGetVersionTimeline < %OS_Windows_nt then
RegOwn = Registry_GetValue("HKEYLM", "SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner")
RegOrg = Registry_GetValue("HKEYLM", "SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOrganization")
ELSE
RegOwn = Registry_GetValue("HKEYLM", "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
RegOrg = Registry_GetValue("HKEYLM", "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization")
ENDIF
sMsg += "Registered Organization = " & RegOrg & $CRLF
sMsg += "Registered Owner = " & RegOwn & $crlf & $CRLF
sMsg += "Now Right Click on my computer & Select Properties"
MSGBOX 0, sMsg
stop
' No error trapping just an example. DONT RUN!!! IT WILL CHANGE YOUR SETTINGS
'if OS_WinGetVersionTimeline < %OS_Windows_nt then
' RegOwn = Registry_SETValue("HKEYLM", "SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner", "ABRAXAS")
' RegOrg = Registry_SETValue("HKEYLM", "SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOrganization", "THINBASIC")
'ELSE
' RegOwn = Registry_SETValue("HKEYLM", "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner", "ABRAXAS")
' RegOrg = Registry_SETValue("HKEYLM", "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", "ABRAXAS")
'ENDIF
[/code]
Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370
Bookmarks