You can find the Extended API here:
The package includes also extensive sample code for controlling the sensor with the Extended API.
Take a look at point 9 in the Orbbec OpenNI Extended API Instruction.pdf, o
openni::OBEXTENSION_ID_LASER_EN is what you want to set to
device is your