1#ifndef QX_PROCCESSBIDER_P_WIN_H
2#define QX_PROCCESSBIDER_P_WIN_H
8#include "qx-processwaiter.h"
13typedef unsigned char BOOLEAN;
14#define CALLBACK __stdcall
21class ProcessWaiter :
public AbstractProcessWaiter
30 std::function<void(
bool)> mAdminCloseCallback;
35 explicit ProcessWaiter(
QObject* parent);
43 static void CALLBACK waitCallback(
void* context, BOOLEAN timedOut);
44 static void CALLBACK adminCloseNativeCallback(
void* context, BOOLEAN timedOut);
50 void closeImpl(std::chrono::milliseconds timeout,
bool force)
override;
51 void closeAdmin(
bool force, std::function<
void(
bool)> callback);
52 bool startAdminClose(
bool force);
53 void cleanupAdminCloseHandles();
58 bool isWaiting()
const override;
62 void handleProcessSignaled()
override;
63 void handleAdminCloseFinsihed(
bool timeout);
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
SystemError processIsElevated(bool &elevated)
Definition qx-common-windows.cpp:270
void * HANDLE
Definition qx-windefs.h:8