9cae3c439e
## Summary of the Pull Request Turns on Audit for WinRTUtils, fixes audit failures. ## PR Checklist * [x] I work here * [x] Still builds * [x] Am core contributor. ## Validation Steps Performed Built it.
18 lines
655 B
C++
18 lines
655 B
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#pragma once
|
|
|
|
class ScopedResourceLoader
|
|
{
|
|
public:
|
|
ScopedResourceLoader(const std::wstring_view resourceLocatorBase);
|
|
winrt::Windows::ApplicationModel::Resources::Core::ResourceMap GetResourceMap() const noexcept;
|
|
winrt::hstring GetLocalizedString(const std::wstring_view resourceName) const;
|
|
bool HasResourceWithName(const std::wstring_view resourceName) const;
|
|
|
|
private:
|
|
winrt::Windows::ApplicationModel::Resources::Core::ResourceMap _resourceMap;
|
|
winrt::Windows::ApplicationModel::Resources::Core::ResourceContext _resourceContext;
|
|
};
|