flat assembler
Message board for the users of flat assembler.

Index > Windows > AdvApi32.inc for equate section

Author
Thread Post new topic Reply to topic
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon
I have made a port of winsvc.h and found that it is needed in the equate section. feel free to make changes, or help add it to the fasm package.

i'm also working on a sample program that could go into the examples section that shows how to make a windows service.(the other reason for the inc file)


Description:
Download
Filename: ADVAPI32.INC
Filesize: 4.56 KB
Downloaded: 105 Time(s)


_________________
It is better to be on the right side of the devil than in his path.
Post 16 Jul 2005, 23:17
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7734
Location: Kraków, Poland
Tomasz Grysztar
However you should update it for the new set of includes, since some of the macro syntaxes has been changed (that means improved) - read this for details.
Post 16 Jul 2005, 23:22
View user's profile Send private message Visit poster's website Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon
in lines 2 and 3 of the file that i uploaded it specifies what to do. update how??? plus, i was just trying to help by extending the resources that fasm has available.
Post 16 Jul 2005, 23:31
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7734
Location: Kraków, Poland
Tomasz Grysztar
No dots should be put before field names with the new "struct" macro.

Also there are other errors. This line:
Code:
SERVICES_FAILED_DATABASE   =   "ServicesFailed"     

will cause an "value out of range" error (the numeric constant can hold 64-bit integers at most), use EQU for the string constants.
And this definition:
Code:
struct SC_ACTION_TYPE
 SC_ACTION_NONE          = 0
 SC_ACTION_RESTART       = 1
 SC_ACTION_REBOOT        = 2
 SC_ACTION_RUN_COMMAND   = 3
ends    

makes no sense at all - you define the empty structure, these constant definitions do the same like when they were put outside the structure definition.

Anyway you're right that I should include more sets of equates in standard includes package.
Post 16 Jul 2005, 23:40
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
enum types probably aren't too useful in assembly anyway... it's specific enough that namespace pollution typically won't be too much of a problem, and if you're going to use specifically explicit names for everything, I guess FASM should be fast enough to handle large symbol tables Smile
Post 17 Jul 2005, 01:17
View user's profile Send private message Visit poster's website Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon
asmdemon wrote:
feel free to make changes


i didn't say i was perfect, only that this might add something to the fasm package

_________________
It is better to be on the right side of the devil than in his path.
Post 17 Jul 2005, 02:05
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.