view ui/processhelp_linux.cpp @ 633:6c090638b2b4

Use static buffer for module file name. According to the msdn examle the return value of getmodulefilename should be used to indicate success and not the size. And according to comments on that function on Windows 8.1 it does not return the needed size. So better be more robust and just use max_path as a limit.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Jun 2014 15:29:48 +0200
parents cfef809b890d
children 20ca94680003
line wrap: on
line source
/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=2)
 * and comes with ABSOLUTELY NO WARRANTY!
 * See LICENSE.txt for details.
 */
#ifndef WIN32

#include "processhelp.h"

const QList<int> ProcessHelp::getProcessesIdForName(const QString &processName) {
    // TODO
    Q_UNUSED(processName);
    return QList<int>();
}

bool ProcessHelp::otherProcessesExist(const QString &processName) {
    // TODO
    Q_UNUSED(processName);
    return false;
}

void ProcessHelp::activateWindowForProcess(const QString &executableName) {
    // TODO
    Q_UNUSED(executableName);
    return;
}

#endif /* Not WIN32 */

http://wald.intevation.org/projects/trustbridge/