Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
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 |
|---|---|
| CheckPointer | Checks whether a given pointer is NULL. |
| ValidateReadPtr | Validates a read pointer. |
| ValidateReadWritePtr | Validates a read/write pointer. |
| ValidateStringPtr | Validates a string pointer. |
| ValidateStringPtrA | Validates an ANSI string pointer. |
| ValidateStringPtrW | Validates a wide (Unicode) string pointer. |
| ValidateWritePtr | Validates a write pointer. |
See Also
Send Feedback on this topic to the authors