Hi, We have a legacy code written in C. We are porting to Windows Vista. We have certain checks like IsBadReadPtr and IsBadWritePtr. These two checks donot work in Windows-Vista. Can I know how to validate a memory block before its usage in Window-Vista... I mean what could be the appropriate replacement for IsBadReadPtr and IsBadWritePtr in Windows Vista.
Why not write your own. Just set up a try/catch block and a for loop which reads each byte in the range. return true from the catch, or false if it terminates in the try block. IsBadWritePtr goes similar, just try to write the selfsame byte back to where it was read from.
Bram van Kampen
Last Visit: 31-Dec-99 19:00 Last Update: 20-Jan-17 14:30