Pointer Validation Macros (Windows Embedded CE 6.0)
1/6/2010
DirectShow provides macros to make pointer usage more robust. These include
a simple CheckPointer macro (which tests if a given pointer is NULL). These also include a number of ValidateXxxPtr macros, which ensure a given pointer actually refers to the correct kind of memory, although possibly with a significant performance hit for each test.
Programming element | Description |
---|---|
Checks whether a given pointer is NULL. |
|
Validates a read pointer. |
|
Validates a read/write pointer. |
|
Validates a string pointer. |
|
Validates an ANSI string pointer. |
|
Validates a wide (Unicode) string pointer. |
|
Validates a write pointer. |