summaryrefslogtreecommitdiff
path: root/chromium/base/win/hstring_compare.h
blob: 448fdb2a919ba082e098ae5f04510b054b660dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_WIN_HSTRING_COMPARE_H_
#define BASE_WIN_HSTRING_COMPARE_H_

#include <hstring.h>

#include "base/base_export.h"

namespace base {
namespace win {

// HStringCompare provides a delayloaded version of WindowsCompareStringOrdinal
// function, which compares HSTRING values.
//
// Note that it requires certain functions that are only available on Windows 8
// and later, and that these functions need to be delayloaded to avoid breaking
// Chrome on Windows 7.
BASE_EXPORT HRESULT HStringCompare(HSTRING string1,
                                   HSTRING string2,
                                   INT32* result);

}  // namespace win
}  // namespace base

#endif  // BASE_WIN_HSTRING_COMPARE_H_