I just found out that the command line string can't be static so it should be:
int APIENTRY wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hprevInst, _In_ LPWSTR lpCmdLine, _In_ int nShowCmd)
sorry for bothering I am just blind
thanks again