Solution
In C programming, there is no function for ni<driver> Get Session Reference.vi. For driver APIs that use ViSession for their session handles (e.g., niFgen, niScope, niRFGS, and niDMM), you can pass that directly to NI-TClk in C programming.
Take the niFgen C function as an example: niFgen_init, niFgen_InitWithOptions, and niFgen_InitializeWithChannels will output a ViSession type, which can later be used in NI TClk C function that require a ViSession type as input.