Modify

#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, on May 13, 2008 at 2:00:18 PM

Version: 3.2.11.12

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, on May 15, 2008 at 9:02:28 AM

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 Jpm, on May 15, 2008 at 9:15:59 AM

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, on Jun 11, 2008 at 8:35:18 PM

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, on Jun 12, 2008 at 8:27:23 AM

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, on Jun 12, 2008 at 1:33:25 PM

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, on Jun 12, 2008 at 4:25:34 PM

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, on Jun 19, 2008 at 7:57:57 AM

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, on Jun 19, 2008 at 4:51:02 PM

Replying to Jon:

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

bad link !!!

in reply to:  10 comment:11 by J-Paul Mesnage, on Jul 19, 2008 at 7:52:16 AM

Replying to anonymous:

Replying to Jon:

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

bad link !!!

link now works

comment:12 by Valik, on Aug 3, 2008 at 4:30:18 PM

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.