팩토리 » Api

xpluskillprocessor

Description

현재 실행중인 프로세서들 중 PID에 해당하는 프로세서를 강제로 종료시킨다.

Parameters

Parameters Type Description
nProcessorID long 종료시킬 프로세서 아이디(PID)

Return Value

Type Description
BOOL 성공/실패 여부

Remark

전용 브라우저 환경에서만 동작합니다.

Example

// 메모장실행 후 해당 PID값을 필드에 저장 후 해당 PID값으로 // 프로세서 강제 종료 시키는 예제 function btnWinExec_on_mouseup(objInst) { var nPID = factory.xpluswinexecex("notepad.exe", true, 0); // 실행된 메모장의 PID를 필드(fieldPID)에 저장 fieldPID.settext(nPID); factory.consoleprint("processor ID : " + nPID); } function btnTerminate_on_mouseup(objInst) { var strPID = fieldPID.gettext(); if(factory.xpluskillprocessor(Number(strPID)) == true) { screen.alert("success.."); } else { screen.alert("fail.."); } }

See Also

xplusisaliveprocessor
xpluswinexec
xpluswinexecex

Viewer Ver.

9.1.1.1

Update Date

20200813