long WINAPI mysql_init();
Thats hardly how the signature of the
function looks like
Also, your check if h isn't NULL is too late there and no guarantee if mysql_init is not NULL.
And another note: Are you sure that you understand the security and licensing issues here? Lite-C isn't GPL compatible, so you either have to pay for MySQL or you simply can't use it without fearing legal consequences!