flat assembler
Message board for the users of flat assembler.

Index > Windows > illegal instruction when use PROCESS_INFORMATION structure

Author
Thread Post new topic Reply to topic
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 02 Sep 2004, 09:52
hi,
i am moving into Iczelion's Win32 Assembly Tutorial 14
that required us to use the win32 PROCESS_INFORMATION structure.

i declare it like below
Code:
section '.data' data readable writeable
piA   PROCESS_INFORMATION
    


but unable to assemble it successfully. the assembler return the following error:
C:\WINDOWS\DESKTOP\Tutorial>fasm tut_14b.asm
flat assembler version 1.55
tut_14b.asm [39]:
piA PROCESS_INFORMATION
error: illegal instruction.

could i know what trigger that illegal instruction error?

sincerely,
vbVeryBeginner d(..?)b
Post 02 Sep 2004, 09:52
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 02 Sep 2004, 10:07
This error means there is no such structure defined. For some reason in KERNEL32.INC it is called PROCESSINFO instead of PROCESS_INFORMATION, perhaps it should be fixed?
Post 02 Sep 2004, 10:07
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 02 Sep 2004, 11:50
Quote:

perhaps it should be fixed?

ye, hopefully in 1.56 Smile
Post 02 Sep 2004, 11:50
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 02 Sep 2004, 12:18
The fasmw and includes are updated more frequently (it has even own versioning, it's still 0.9.x).
Post 02 Sep 2004, 12:18
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 02 Sep 2004, 13:36
is that possible for you to provide us( the fasm community member) a link for the zipped or RARed version of your current fasmw (0.9.x) INCLUDE directory?

sincerely,
vbVeryBeginner d(^wish^)b
Post 02 Sep 2004, 13:36
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 02 Sep 2004, 13:44
It's just updated on the "Download" page each time I make some changes.
Post 02 Sep 2004, 13:44
View user's profile Send private message Visit poster's website Reply with quote
rwalt



Joined: 27 Apr 2004
Posts: 19
Location: Illinois, USA
rwalt 02 Sep 2004, 13:49
Just change the name of the structure in kernel32.inc...

struct PROCESSINFO
.hProcess dd ?
.hThread dd ?
.dwProcessId dd ?
.dwThreadId dd ?
ends

struct PROCESS_INFORMATION
.hProcess dd ?
.hThread dd ?
.dwProcessId dd ?
.dwThreadId dd ?
ends
Post 02 Sep 2004, 13:49
View user's profile Send private message Reply with quote
rwalt



Joined: 27 Apr 2004
Posts: 19
Location: Illinois, USA
rwalt 02 Sep 2004, 14:28
BTW, I just want to say thankyou Privalov for the Flat Assembler, a beautiful piece of work.
Post 02 Sep 2004, 14:28
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 02 Sep 2004, 15:58
to: rwalt
actually i already updated my own kernel32.inc file, anyway, thanks for ur reply.

to: privalov
Quote:

It's just updated on the "Download" page each time I make some changes.

i wrote my reason here, on 28 August 2004

http://board.flatassembler.net/topic.php?t=2141

therefore, i really wish, if ya could provide us, the zipped version of FASMW/INCLUDE for every minor update so we won't have to download the 500+ kb files.

sincerely,
vbVeryBeginner d(&&Smileb
Post 02 Sep 2004, 15:58
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.