flat assembler
Message board for the users of flat assembler.
Index
> Windows > AdvApi32.inc for equate section |
Author |
|
asmdemon 16 Jul 2005, 23:17
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)
_________________ It is better to be on the right side of the devil than in his path. |
|||||||||||
16 Jul 2005, 23:17 |
|
Tomasz Grysztar 16 Jul 2005, 23:22
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.
|
|||
16 Jul 2005, 23:22 |
|
Tomasz Grysztar 16 Jul 2005, 23:40
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. |
|||
16 Jul 2005, 23:40 |
|
f0dder 17 Jul 2005, 01:17
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
|
|||
17 Jul 2005, 01:17 |
|
asmdemon 17 Jul 2005, 02:05
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. |
|||
17 Jul 2005, 02:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.