src/AppInstallerCommonCore/Runtime.cpp
std::filesystem::path GetUserSID()
        {
            auto userToken = wil::get_token_information<TOKEN_USER>();

            wil::unique_hlocal_string sidString;
            THROW_IF_WIN32_BOOL_FALSE(ConvertSidToStringSidW(userToken->User.Sid, &sidString));
            return { sidString.get() };
        }
// Gets the current user's SID for use in paths.

Gets the current user's SID for use in paths.
Gets the current user ' s SID for use in paths .
std::filesystem::path GetUserSID()
        {
            auto userToken = wil::get_token_information<TOKEN_USER>();
            wil::unique_hlocal_string sidString;
            THROW_IF_WIN32_BOOL_FALSE(ConvertSidToStringSidW(userToken->User.Sid, &sidString));
            return { sidString.get() };
        }
std :: filesystem :: path GetUserSID ( ) { auto userToken = wil :: get_token_information < TOKEN_USER > ( ) ; wil :: unique_hlocal_string sidString ; THROW_IF_WIN32_BOOL_FALSE ( ConvertSidToStringSidW ( userToken -> User . Sid , & sidString ) ) ; return { sidString . get ( ) } ; }
Gets the current user's SID for use in paths.
Gets the current user ' s SID for use in paths .