Is that possible to convert this code from fasm to masm ???
[attachment deleted by admin]
some info about code http://board.flatassembler.net/topic.php?t=5068
Ivan,
I had a quick look at your code and I doubt that it can be done so small in MASM as the linker will buld even tiny examples at 1024 bytes which is the legal PE minimum, headers plus one section. I have seen very small apps written in HEX but they may not actually run, just not flag and error as they close.
It will not work on all nt-systems, because of different values for used native APIs, and will not work on 9x-systems, but i've tested it
on many computers with xp sp2 with success. The only way(IMHO) is compile it in *.com format and then rename to *.exe
It has to be the fastest shutdown I have ever seen. 2 seconds on my XP SP2.
Casper