On Windows UWP, getpid() and _getpid() function calls are not allowed, but GetCurrentProcessId() function can be used instead. Add a helper API for the case.
See also https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getpid?view=msvc-170