PEXOCC PEXCreateOCC( unsigned long *mask, PEXOCCValues *values )
Invoke PEXCreateOCC to create and return a PEX OC Context.
If the mask contains all zero bits, then this function sets all of the values in the context to the default values, as specified in the introduction to this section. Otherwise, for each defined bit that is one, this function copies the corresponding value from the values argument to the OC context.
Build the mask with the PEXSetOCCValueMask function.
Invoke the PEXFreeOCC function to deallocate the memory associated with the OC Context.
This function returns a NULL pointer in the case of a memory allocation error.
This function ignores undefined bits in the mask field.
Errors in setting the OC Context will not be apparent until the application actually uses the OCC as an argument in an OC function invocation.
For an overview, see Bitmask/Value Interface.