-
April 19th, 2011, 04:46 PM
#1
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.
-
April 19th, 2011, 09:21 PM
#2
Re: Is it possible to get the size of a LPVOID pointer?
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
-
April 20th, 2011, 09:22 AM
#3
Re: Is it possible to get the size of a LPVOID pointer?
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!
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|