Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect 64-bit OS 2

Status
Not open for further replies.

gjbroekhuis

Programmer
Nov 12, 2009
7
NL
Hi,

What is the best way to detect if a user has a 64-bit Widnows OS?
Just look for specific folders or ...?

Regards, Gerrit
 
Code:
Declare Integer IsWow64Process In WIN32API ;
  Integer hProcess, Integer @ Wow64Process
Declare Integer GetCurrentProcess In WIN32API

Local lnWin64, IsWin64
lnWin64 = 0
Try
  IsWow64Process( GetCurrentProcess(), @lnWin64)
ENDTRY

IsWin64 = ( m.lnWin64 != 0 ) 

MESSAGEBOX( m.IsWin64 )

Cetin Basoz
MS Foxpro MVP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top