Pointer Validation Macros

 
Microsoft DirectShow 9.0

Pointer Validation Macros

Microsoft® DirectShow® provides several macros for validating pointers.

Requirements

**  Header:** Declared in Wxdebug.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

Macro Description
CheckPointer Checks whether a pointer is NULL.
ValidateReadPtr Verifies that the calling process has read access to a memory block.
ValidateReadWritePtr Verifies that the calling process has read/write access to a memory block.
ValidateStringPtr Verifies that the calling process has read access to a string.
ValidateStringPtrA Verifies that the calling process has read access to an ANSI string.
ValidateStringPtrW Verifies that the calling process has read access to a wide-character string.
ValidateWritePtr Verifies that the calling process has write access to a memory block.