getpid() or _getpid() are not available in UWP builds [1] but we can use GetCurrentProcessId() instead. [1] https://learn.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps#unsupported-crt-functionspull/75/head