Is there any simple Win32 API to check whether a pointer points to a valid memory location before using it for write operation?
+10
A:
There is a whole series of IsBadXXXPtr() functions, but you should never, ever use them.
jeffamaphone
2009-03-09 16:57:15
+1 for everything that refers to Raymond Chen.
Johann Gerell
2009-03-11 07:51:28