5#include <QtCore/qvarlengtharray.h>
6#include <QtCore/qstringlist.h>
7#include <QtCore/qfileinfo.h>
41#if !defined(QT_BOOTSTRAPPED)
48 QVarLengthArray<wchar_t, MAX_PATH> fullPath = {};
49 UINT retLen = ::GetSystemDirectoryW(fullPath.data(),
MAX_PATH);
51 fullPath.resize(retLen);
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) {
80 if (!fullPathAttempt.endsWith(u
'\\')) {
81 fullPathAttempt.append(u
'\\');
84 HINSTANCE inst = ::LoadLibrary(
reinterpret_cast<const wchar_t *
>(fullPathAttempt.utf16()));
QString path() const
Returns the path of the file system entry this QFileInfo refers to, excluding the entry's name.
\macro QT_RESTRICTED_CAST_FROM_ASCII
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
static QString fromWCharArray(const wchar_t *string, qsizetype size=-1)
Combined button and popup list for selecting options.
static QString qSystemDirectory()
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)