//MODA C++ native sample code //... ModaCPP::DeviceLightSource *pDevice=pPHX->QueryDeviceLightSource("light0/mydevice"); if(pDevice) ...