hstring_compare.h 874 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_WIN_HSTRING_COMPARE_H_
  5. #define BASE_WIN_HSTRING_COMPARE_H_
  6. #include <hstring.h>
  7. #include "base/base_export.h"
  8. namespace base {
  9. namespace win {
  10. // HStringCompare provides a delayloaded version of WindowsCompareStringOrdinal
  11. // function, which compares HSTRING values.
  12. //
  13. // Note that it requires certain functions that are only available on Windows 8
  14. // and later, and that these functions need to be delayloaded to avoid breaking
  15. // Chrome on Windows 7.
  16. BASE_EXPORT HRESULT HStringCompare(HSTRING string1,
  17. HSTRING string2,
  18. INT32* result);
  19. } // namespace win
  20. } // namespace base
  21. #endif // BASE_WIN_HSTRING_COMPARE_H_