Internally, GetCurrentProcess() returns 0xFFFFFFFF, which is basically INVALID_HANDLE_VALUE, so that's a "feature".