The DP4 header files contain the following useful macros, all of which are available when you include dp4capi.h.