2) Do not work.
g_dispatcher = lib_CreateThread(NULL, 0, (LPVOID)dispatcher, (LPVOID)config, 0, &thread_id);
//'_beginthreadex' : cannot convert parameter 3 from 'LPVOID' to 'unsigned int (__stdcall *)(void *)'
1) How to edit function? sample, please.
Maybe I get this error because of the function prototype fault parameter?