wince: replace getpid by GetCurrentProcessId