KDECore
#include "kkernel_win.h"
#include <config.h>
#include <QtCore/QBool>
#include <QtCore/QTextCodec>
#include "kglobal.h"
#include <klocale.h>
#include <QtCore/QDir>
#include <QtCore/QString>
#include <QtCore/QLibrary>
#include <windows.h>
#include <shellapi.h>
#include <process.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <fstream>
#include <streambuf>
Go to the source code of this file.
◆ FAILURE
Value: { if (ok) \
*ok = false; \
return QString(); }
◆ WIN32_CAST_CHAR
#define WIN32_CAST_CHAR (LPCWSTR) |
◆ attachConsolePtr
typedef BOOL(WINAPI* attachConsolePtr) (DWORD dwProcessId) |
try to attach to the parents console
- Returns
- true if console has been attached, false otherwise
Definition at line 330 of file kkernel_win.cpp.
◆ attachToConsole()
static bool attachToConsole |
( |
| ) |
|
|
static |
◆ DllMain()
BOOL WINAPI DllMain |
( |
HINSTANCE |
hinstDLL, |
|
|
DWORD |
fdwReason, |
|
|
LPVOID |
lpReserved |
|
) |
| |
The dll entry point - get the instance handle for GetModuleFleNameW Maybe also some special initialization / cleanup can be done here.
Definition at line 135 of file kkernel_win.cpp.
◆ getKde4Prefix()
QString getKde4Prefix |
( |
| ) |
|
◆ getWin32LocaleName()
QByteArray getWin32LocaleName |
( |
| ) |
|
- Returns
- two-letter locale name (like "en" or "pl") taken from MS Windows native registry. Useful when we don't want to rely on KSyCoCa. Used e.g. by kbuildsycoca application.
Definition at line 248 of file kkernel_win.cpp.
◆ getWin32RegistryValue()
QString getWin32RegistryValue |
( |
HKEY |
key, |
|
|
const QString & |
subKey, |
|
|
const QString & |
item, |
|
|
bool * |
ok |
|
) |
| |
- Returns
- a value from MS Windows native registry.
- Parameters
-
key | is usually one of HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE constants defined in WinReg.h. |
subKey | is a registry subkey defined as a path to a registry folder, eg. "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders" ('\' delimiter must be used) |
item | is an item inside subKey or "" if default folder's value should be returned |
ok | if not null, will be set to true on success and false on failure |
Definition at line 180 of file kkernel_win.cpp.
◆ getWin32ShellFoldersPath()
QString getWin32ShellFoldersPath |
( |
const QString & |
folder | ) |
|
Windows-specific functions needed in kdecore.
- Returns
- a value from MS Windows native registry for shell folder folder.
Definition at line 267 of file kkernel_win.cpp.
◆ initKde4prefixUtf16()
void initKde4prefixUtf16 |
( |
| ) |
|
◆ isExecutable()
bool isExecutable |
( |
const QString & |
filename | ) |
|
- Returns
- true when the file is an executable on windows.
Definition at line 536 of file kkernel_win.cpp.
◆ kMessageOutputDebugString()
static void kMessageOutputDebugString |
( |
QtMsgType |
type, |
|
|
const char * |
msg |
|
) |
| |
|
static |
kde and qt debug message printer using windows debug message port
Definition at line 277 of file kkernel_win.cpp.
◆ kMessageOutputFileIO()
static void kMessageOutputFileIO |
( |
QtMsgType |
type, |
|
|
const char * |
msg |
|
) |
| |
|
static |
kde and qt debug message printer using FILE pointer based output
Definition at line 308 of file kkernel_win.cpp.
◆ redirectToConsole()
static void redirectToConsole |
( |
| ) |
|
|
static |
redirect stdout, stderr and cout, wcout, cin, wcin, wcerr, cerr, wclog and clog to console
Definition at line 353 of file kkernel_win.cpp.
◆ showWin32FilePropertyDialog()
bool showWin32FilePropertyDialog |
( |
const QString & |
fileName | ) |
|
Shows native MS Windows file property dialog for a file fileName.
Return true on success. Only works for local absolute paths. Used by KPropertiesDialog, if possible.
Definition at line 218 of file kkernel_win.cpp.
◆ subSystem()
◆ attachConsole
◆ attachConsoleResolved
bool attachConsoleResolved = false |
|
static |
◆ kde4Prefix
QString* kde4Prefix = NULL |
|
static |
◆ kde4prefixUtf16
wchar_t kde4prefixUtf16[MAX_PATH+2] = L"" |
|
static |
◆ kdecoreDllInstance
HINSTANCE kdecoreDllInstance = NULL |
|
static |
◆ kMessageOutputInstallerInstance
class kMessageOutputInstaller kMessageOutputInstallerInstance |
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.