1

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.
  • 34,624
  • 22
  • 86
  • 128

1 Answers1

12

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

pcfist
  • 145
  • 1
  • 3
  • 9
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222