BOOL IsBadCodePtr(lpfn) | |||||
FARPROC lpfn; | /* pointer to test | */ |
The IsBadeCodePtr function determines whether the calling process has read access to the memory at the specified address.
lpfn
Specifies a memory address to test for read access.
The return value is FALSE if the calling process has read access to the specified memory. Otherwise, the return value is TRUE.
Because Win32 is a pre-emptive multi-tasking environment, the results of this test are only meaningful if no other thread in the process manipulates the range of memory being tested. Even after a pointer validation, an application should use structured exception handling to guard access through pointers that it does not control.
IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr