I've come across a weird thing with L2INCA :

1. I'm using W2K / SP2 and DDK for W2K

2. I've build an .inc file for MASM from NTDDK\libfre\i386\ntoskrnl.lib

3. There's a function, undocumented by M$ in ntoskrnl.lib that's called PsInitialSystemProcess that I want to use, however, that function will NOT appear in the resulting .inc file that L2INCA creates

Now, I could just manually add PsInitialSystemProcess PROTO (the function takes no arguments) to ntoskrnl.inc but I figure L2INCA should have put the function in the resulting .inc file by itself.

Please enlighten a poor, humble kernel programmer.
Posted on 2001-11-12 10:08:56 by jmp $FCE2
Have a look at my protoize tool, I used it with success while I was
messing around with kernel stuff.
Posted on 2001-11-12 11:04:26 by f0dder
jmp $FCE2,

The two L2INC utilities only do what they claim to do which is convert decorated names in libraries to masm prototypes. Try f0dder's utility, it may do what you are after.

Regards,

hutch@movsd.com
Posted on 2001-11-12 20:18:02 by hutch--
@hutch : PsInitialSystemProcess really IS decorated within ntoskrnl.lib and ntoskrnl.exe also exports it. The only 'undocumented' thing about it is, that M$ doesn't mention it anywhere in their papers. Well, I think there's a small bit about it in 'Inside Windows 2000 3rd Ed.'

No offense though, your Masm32 package IS awesome and helped me a great deal getting back into assembly. I hope you keep up the good work.

@f0dder : thanks alot ! I will try protoize and see what it can do for me.

update :

it worked ! you're the man, f0dder :alright:
Posted on 2001-11-13 00:42:55 by jmp $FCE2