Userhook and PC SDK

Is it possible to use PC SDK in a Userhook? When using hooktester it reports 0 controllers but if I have a seperate console app with the same PC SDK code it reports correct no of controllers.

Everything else in the userhook works ok like accessing a installed IO card etc.