Modify

Opened 17 years ago

Closed 16 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 Changed 17 years ago by TicketCleanup

  • Version 3.2.11.12 deleted

Automatic ticket cleanup.

comment:2 Changed 17 years ago by jpm

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 Changed 17 years ago by Jpm

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 follow-up: Changed 16 years ago by Jon

  • Owner set to Jon
  • Status changed from new to accepted

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).

comment:5 in reply to: ↑ 4 Changed 16 years ago by anonymous

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 follow-up: Changed 16 years ago by Jon

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

comment:7 Changed 16 years ago by Jon

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...

comment:9 in reply to: ↑ 6 Changed 16 years ago by anonymous

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 ...

comment:10 in reply to: ↑ 8 ; follow-up: Changed 16 years ago by anonymous

Replying to Jon:

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

bad link !!!

comment:11 in reply to: ↑ 10 Changed 16 years ago by jpm

Replying to anonymous:

Replying to Jon:

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

bad link !!!

link now works

comment:12 Changed 16 years ago by Valik

  • Milestone set to 3.2.13.7
  • Owner changed from Jon to Valik
  • Resolution set to Completed
  • Status changed from accepted to closed

Added in version: 3.2.13.7

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Valik.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.