Possible Duplicate:
Testing pointers for validity (C/C++)
Is there any simple Win32 API to check whether a pointer points to a valid memory location before using it for write operation?
Possible Duplicate:
Testing pointers for validity (C/C++)
Is there any simple Win32 API to check whether a pointer points to a valid memory location before using it for write operation?
There is a whole series of IsBadXXXPtr()
functions, but you should never, ever use them.