12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef BASE_WIN_HSTRING_REFERENCE_H_
- #define BASE_WIN_HSTRING_REFERENCE_H_
- #include <hstring.h>
- #include "base/base_export.h"
- namespace base {
- namespace win {
- class BASE_EXPORT HStringReference {
- public:
-
- static bool ResolveCoreWinRTStringDelayload();
- HStringReference(const wchar_t* str, size_t len);
- explicit HStringReference(const wchar_t* str);
- HSTRING Get() const { return hstring_; }
-
-
-
-
-
-
-
-
-
- HStringReference(const HStringReference&) = delete;
- HStringReference& operator=(const HStringReference&) = delete;
- private:
- HSTRING hstring_ = nullptr;
- HSTRING_HEADER hstring_header_;
- };
- }
- }
- #endif
|