Hi,

I am creating some specialised exception handling code for a set of apps I am creating. I need to know how to retrieve the current instruction address, i.e. the value of register EIP into a variable of type LPVOID. Does anybody know how this can be done without having to write any assembly code.

If not how can I create some nested assembly code to do this?

The value from EIP will not be modified in any way, I just want to output it to the user in some way.

Any help would be greatly appreciated!

Best Regards,
Lea Hayes