Is it possible to get the size of a LPVOID pointer?
I have intercepted ReadFile() by means of a Proxy DLL and I need to know the size of lpBuffer.
I haven't yet seen any method that could help me out.
Do you guys know any way to accomplish this? thanks.
Re: Is it possible to get the size of a LPVOID pointer?
Quote:
Originally Posted by
sonnyk88
I have intercepted ReadFile() by means of a Proxy DLL and I need to know the size of lpBuffer.
I haven't yet seen any method that could help me out.
Do you guys know any way to accomplish this? thanks.
A pointer contains no information except that it points somewhere. Unless you have the size passed to you in some way, forget about it.
Regards,
Paul McKenzie
Re: Is it possible to get the size of a LPVOID pointer?
Quote:
Originally Posted by
sonnyk88
I have intercepted ReadFile() by means of a Proxy DLL and I need to know the size of lpBuffer.
I haven't yet seen any method that could help me out.
Do you guys know any way to accomplish this? thanks.
But if you already have intercepted a call to ReadFile, the next parameter (after that void pointer) IS a size of that buffer!