News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Detect if your Windows version is 32- or 64-bit

Started by jj2007, August 23, 2018, 01:20:01 PM

Previous topic - Next topic

Raistlin

HEY I am all for learning  :t There's just a small
problem with the detection logic, which I wont
share here. PM me please when you have time.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

felipe

I already pm you Raistlin  :icon14:...but why you don't want to share the error? is a security critical thing?  :shock:

Raistlin

No nothing serious  ;) PM'ed you back .... no security issues - don't worry.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

HSE

Quote from: felipe on September 28, 2018, 04:42:16 AM
is a security critical thing?  :shock:

Take care Felipe  :icon_eek:

A search in most dark servers return this:

Raistlin's ponderings
Equations in Assembly: SmplMath

Raistlin

Erm...I am not quite so nefarious.
But thanks for the thought. I have
supplied Felipe with the required
thought processes. Its up to him
to decide to share his outcomes.
No conspiracy theories required  :t
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

felipe

Well the issue in the 64 bit app was that if this app runs in a 32 bit system it will crash...  :exclaim:

2B||!2B

Hi jj2007,

Nice work there.

My version is similar to what fearless pointed out


MOV DX, CS
.if DL == 1Bh
      ;32Bit System
.elseif DL == 23h
      ;64Bit System (WoW)
.else
      ;33h value for 64Bit Native (Exe + System)
.endif

rsala

EC coder

jj2007

Windows 7 v6.1 64-bit Service Pack 1

(with next version, please offer option to copy the string to the clipboard ;))

rsala

EC coder

felipe

seems like the registry key Wow6432Node can tell us this info too... :idea:

Biterider