How to generate config6 from a library call (i.e. not using dot.exe)

Is it possible to generate config6 by doing a library call from gvc.dll or something?

I tried calling the function gvconfig, but it seems that entry point cannot be found. Besides, the comments above it suggest that it is not meant to be called from outside.