Export (0) Print
Expand All

ValidateReadPtr macro

Verifies that the calling process has read access to a memory block. If not, the macro calls the DbgBreak macro.

Note  This macro is deprecated. In the Windows SDK for Windows Vista (and later) this macro does not do anything.

Syntax


void ValidateReadPtr(
   const void *p,
         UINT cb
);

Parameters

p

Pointer to a memory block.

cb

Size of the memory block, in bytes.

Return value

This macro does not return a value.

Remarks

This macro is ignored unless DEBUG, _DEBUG, or VFWROBUST is defined when the DirectShow base-class header file is included. This macro can have a significant performance cost.

Requirements

Header

Wxdebug.h (include Streams.h)

See also

Pointer Validation Macros

 

 

Community Additions

ADD
Show:
© 2015 Microsoft