5#include <QtCore/qvarlengtharray.h>
6#include <QtCore/qstringlist.h>
7#include <QtCore/qfileinfo.h>
41#if !defined(QT_BOOTSTRAPPED)
49 UINT retLen = ::GetSystemDirectoryW(fullPath.
data(),
MAX_PATH);
52 retLen = ::GetSystemDirectoryW(fullPath.
data(), retLen);
60HINSTANCE QSystemLibrary::load(
const wchar_t *libraryName,
bool onlySystemDirectory )
62 if (onlySystemDirectory)
63 return ::LoadLibraryExW(libraryName,
nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
67#if !defined(QT_BOOTSTRAPPED)
78 for (
int i = 0;
i < searchOrder.count(); ++
i) {
79 QString fullPathAttempt = searchOrder.at(
i);
80 if (!fullPathAttempt.
endsWith(u
'\\')) {
81 fullPathAttempt.
append(u
'\\');
84 HINSTANCE inst = ::LoadLibrary(
reinterpret_cast<const wchar_t *
>(fullPathAttempt.
utf16()));
\inmodule QtCore \reentrant
QString path() const
Returns the file's path.
\macro QT_RESTRICTED_CAST_FROM_ASCII
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
static QString fromWCharArray(const wchar_t *string, qsizetype size=-1)
QString & append(QChar c)
void resize(qsizetype sz)
const T * constData() const
Combined button and popup list for selecting options.
static QString qSystemDirectory()
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)