ARGUMENT_PRESENT

BOOLEAN
ARGUMENT_PRESENT(
IN (CHAR *)
ArgumentPointer
);

ARGUMENT_PRESENT is a macro that takes an argument pointer and returns FALSE if the pointer is NULL, TRUE otherwise.

Parameters

ArgumentPointer

The value of the pointer argument to be tested.

Return Value

ARGUMENT_PRESENT returns FALSE if the value of ArgumentPointer is NULL, true otherwise.

Comments

This macro can be called in conditional code to determine whether an optional argument has been passed in a call.

Callers of ARGUMENT_PRESENT can be running at any IRQL.