as tu bien declarer RunSrvThreadProc comme ceci:

int WINAPI RunSrvThreadProc(void* ptr) {}