[ntdev] C++ functions, init and paged code...

I’m sure this question has been answered many times but my search
engine skills appear to be a bit less than adequate…

How do I get the linker to put a C++ function into the INIT section or
the PAGED code section?

Thanks,
Robert.


Robert Randall | xxxxx@gmail.com

Try using #pragma alloc_text with a C++ mangled function name. This will probably work.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Robert Randall” wrote in message news:xxxxx@ntfsd…
> I’m sure this question has been answered many times but my search
> engine skills appear to be a bit less than adequate…
>
> How do I get the linker to put a C++ function into the INIT section or
> the PAGED code section?
>
> Thanks,
> Robert.
>
> –
> Robert Randall | xxxxx@gmail.com
>