#include "qprocess.h"
#include "qprocess_p.h"
#include "qwindowspipewriter_p.h"
#include <qdatetime.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qregexp.h>
#include <qtimer.h>
#include <qthread.h>
#include <qmutex.h>
#include <qwaitcondition.h>
#include <private/qwineventnotifier_p.h>
#include <private/qthread_p.h>
#include <qdebug.h>
#include "private/qfsfileengine_p.h"
Go to the source code of this file.
◆ NOTIFYTIMEOUT
#define NOTIFYTIMEOUT 100 |
◆ qt_create_commandline()
Definition at line 245 of file qprocess_win.cpp.
Referenced by QProcessPrivate::pipeWriterBytesToWrite().
258 for (
int i=0; i<arguments.
size(); ++i) {
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
const QChar at(int i) const
Returns the character at the given index position in the string.
The QRegExp class provides pattern matching using regular expressions.
QString & replace(int i, int len, QChar after)
int length() const
Returns the number of characters in this string.
QString & prepend(QChar c)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
int size() const
Returns the number of items in the list.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
QString & insert(int i, QChar c)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ qt_create_pipe()
static void qt_create_pipe |
( |
Q_PIPE * |
pipe, |
|
|
bool |
in |
|
) |
| |
|
static |
Definition at line 69 of file qprocess_win.cpp.
75 #if !defined(Q_OS_WINCE) 76 SECURITY_ATTRIBUTES secAtt = {
sizeof( SECURITY_ATTRIBUTES ), NULL,
TRUE };
80 if (!CreatePipe(&pipe[0], &tmpHandle, &secAtt, 1024 * 1024))
82 if (!DuplicateHandle(GetCurrentProcess(), tmpHandle, GetCurrentProcess(),
83 &pipe[1], 0,
FALSE, DUPLICATE_SAME_ACCESS))
86 if (!CreatePipe(&tmpHandle, &pipe[1], &secAtt, 1024 * 1024))
88 if (!DuplicateHandle(GetCurrentProcess(), tmpHandle, GetCurrentProcess(),
89 &pipe[0], 0,
FALSE, DUPLICATE_SAME_ACCESS))
93 CloseHandle(tmpHandle);
#define FALSE
Synonym for false.
#define TRUE
Synonym for true.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ qt_terminateApp()
Definition at line 557 of file qprocess_win.cpp.
559 DWORD currentProcId = 0;
560 GetWindowThreadProcessId(hwnd, ¤tProcId);
561 if (currentProcId == (DWORD)procId)
562 PostMessage(hwnd, WM_CLOSE, 0, 0);
#define TRUE
Synonym for true.