this is how I did it, obviously ppl here have little C under their belt.

int PASCAL EXPORT calibrate(HWND mWnd,
HWND aWnd,
char *data,
char *parms,
BOOL print,
BOOL nopause)
{
WinExec("control joy.cpl", SW_NORMAL);
// ShellExecute(HWND,unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned short *,int);
// also CreateProcess() all I can say is, good thing WinExec() still works.
return 1;
}