0

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?

Community
  • 1
  • 1
aJ.
  • 33,420
  • 21
  • 82
  • 127

1 Answers1

10

There is a whole series of IsBadXXXPtr() functions, but you should never, ever use them.

i_am_jorf
  • 52,428
  • 15
  • 126
  • 218