⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stafprocessinlimpl.cpp

📁 Software Testing Automation Framework (STAF)的开发代码
💻 CPP
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 2001                                              *//*                                                                           *//* This software is licensed under the Common Public License (CPL) V1.0.     *//*****************************************************************************/#ifndef STAF_ProcessInlImpl#define STAF_ProcessInlImpl#include "STAF.h"#include "STAFProcess.h"STAF_INLINE STAFRC_t STAFProcess::getProcessHandleFromID(    STAFProcessID_t pid, STAFProcessHandle_t &procHandle, unsigned int &osRC){    return STAFProcessGetHandleFromID(pid, &procHandle, &osRC);}STAF_INLINE bool STAFProcess::isRunning(STAFProcessHandle_t processHandle){    unsigned int stillRunning = 0;    STAFRC_t rc = STAFProcessIsRunning(processHandle, &stillRunning, 0);    return (stillRunning == 1);}STAF_INLINE STAFRC_t STAFProcess::isValidAuthMode(    STAFProcessAuthenticationMode_t authMode){    return STAFProcessIsValidAuthMode(authMode);}STAF_INLINE STAFRC_t STAFProcess::isValidStopMethod(    STAFProcessStopMethod_t stopMethod){    return STAFProcessIsValidStopMethod(stopMethod);}STAF_INLINE STAFRC_t STAFProcess::registerForProcessTermination(    STAFProcessID_t pid, STAFProcessHandle_t procHandle,    STAFProcessEndCallbackLevel1 &callback){    return STAFProcessRegisterEndCallback(pid, procHandle, &callback, 1);}STAF_INLINE STAFRC_t STAFProcess::startProcess(    STAFProcessStartInfoLevel1 &startInfo, STAFProcessID_t &pid,    STAFProcessHandle_t &procHandle, unsigned int &osRC){    return STAFProcessStart(&pid, &procHandle, &startInfo, 1, &osRC);}STAF_INLINE STAFRC_t STAFProcess::startProcess2(    STAFProcessStartInfoLevel1 &startInfo, STAFProcessID_t &pid,    STAFProcessHandle_t &procHandle, unsigned int &osRC,    STAFString &errorBuffer){    STAFString_t theBuffer = 0;    STAFRC_t rc = STAFProcessStart2(        &pid, &procHandle, &startInfo, 1, &osRC, &theBuffer);    if (theBuffer)        errorBuffer = STAFString(theBuffer, STAFString::kShallow);    return rc;}STAF_INLINE STAFRC_t STAFProcess::stopProcess(STAFProcessID_t pid,    STAFProcessStopMethod_t stopMethod, unsigned int &osRC){    return STAFProcessStop(pid, stopMethod, &osRC);}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -