Modify

Opened 18 years ago

Closed 18 years ago

#277 closed Feature Request (Completed)

@ProcessorArch

Reported by: Jon Owned by: Valik
Milestone: 3.2.13.7 Component: AutoIt
Version: Severity: None
Keywords: processor arch Cc:

Description

I think @ProcessorArch is badly named as it gives the OS architecture where is should give the CPU architecture.

Suggest we change it, and add an @OSArch macro as well.

Attachments (0)

Change History (12)

comment:1 by TicketCleanup, 18 years ago

Version: 3.2.11.12

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 18 years ago

at the type I code this macro, I was thinking that the Windows API will return the real architecture. I have to admit that it is not working as I though.
So I don't know if we really need a processor arch but OS arch is Ok for me
@ProcessorArch -> @OSArch

comment:3 by J-Paul Mesnage, 18 years ago

just some addition http://msdn.microsoft.com/en-us/library/ms724958(VS.85).aspx
I really don't understand why the return info is wrong from my point of view (Windows Bug???)

comment:4 by Jon, 18 years ago

Owner: set to Jon
Status: newaccepted

I'm thinking of adding @OSArch to replace @ProcessorArch and then add a new @CPUArch for the CPU type (CPU instead of Processor to avoid subtle errors in old scripts).

in reply to:  4 comment:5 by anonymous, 18 years ago

Replying to Jon:

I'm thinking of adding @OSArch to replace @ProcessorArch and then add a new @CPUArch for the CPU type (CPU instead of Processor to avoid subtle errors in old scripts).

That's fine. I still don't understand the MSDN doc

comment:6 by Jon, 18 years ago

Not quite sure why. The MSDN docs clearly say "The processor architecture of the installed operating system" and not the CPU type.

comment:7 by Jon, 18 years ago

Seems like the only way to check for a x64 chip when running an x86 OS is using assembler. Not really in the mood for that one...

in reply to:  6 comment:9 by anonymous, 18 years ago

Replying to Jon:

Not quite sure why. The MSDN docs clearly say "The processor architecture of the installed operating system" and not the CPU type.

for me processor Architecture is equivalent to CPU Type according to the return Values possible. But well who knows ...

in reply to:  8 ; comment:10 by anonymous, 18 years ago

Replying to Jon:

http://www.osdev.org/wiki/X86-64

bad link !!!

in reply to:  10 comment:11 by J-Paul Mesnage, 18 years ago

Replying to anonymous:

Replying to Jon:

http://www.osdev.org/wiki/X86-64

bad link !!!

link now works

comment:12 by Valik, 18 years ago

Milestone: 3.2.13.7
Owner: changed from Jon to Valik
Resolution: Completed
Status: acceptedclosed

Added in version: 3.2.13.7

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.