$ 0 0 Or the slightly more supported GetModuleHandle(NULL).If it's so easy to do it right, there's no need to do it wrong.