Results 1 to 2 of 2

Thread: Usage of (some) OS Keywords

  1. #1
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    160

    Usage of (some) OS Keywords

    Not sure about the IS_WOW64 perhaps someone could explain?

    [code=thinbasic]
    USES "OS"

    DIM sMsg AS STRING

    sMsg += "Computer Name" & $TAB & OS_GetComputerName & $CRLF
    sMsg += "OS System Folder " & $TAB & OS_GetSystemDir & $CRLF
    sMsg += "Temperary Folder " & $TAB & OS_GetTempDir & $CRLF
    sMsg += "Current User Name" & $TAB & OS_GetUserName & $CRLF
    sMsg += "Windows Directory" & $TAB & OS_GetWindowsDir & $CRLF
    sMsg += "IE Version" & $TAB & OS_IEVersion & $CRLF
    sMsg += "Windows Version" & $TAB & OS_WinVersionText & $CRLF
    sMSG += "Running" & $TAB & $TAB

    ' I'm runing 32 bit windows and it returned 0 so i guessed how it worked.
    if OS_IsWow64 = 0 THEN SMsg += "32 bit Windows" & $CRLF
    ELSE SMsg += "64 bit Windows" & $CRLF
    ENDIF

    MSGBOX 0, sMsg
    [/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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Usage of (some) OS Keywords

    Perfect example.

    OS_IsWow64 is a wrapper of http://msdn2.microsoft.com/en-us/library/ms684139.aspx
    Because thinBasic is a 32bit application, function will return %TRUE only if thinBasic is running under a 64bit Windows version.
    Under a 64Bit OS, all 32bit applications are executed under WOW (Windows On Windows) emulation mode. More info at http://msdn2.microsoft.com/en-us/library/aa384249.aspx

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Usage of the MAX$ MIN$ Keywords
    By Michael Clease in forum Samples for help file
    Replies: 4
    Last Post: 28-05-2007, 12:34

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •