Is the capi.dll file in ocal\lib? Even if it's there, Win paths are weird; can vary with the version. Not clear why path and libs have to do with function failure. How do you know that it's that? Is the function the first CSDK call made? What's in the log?