Search found 30 matches: terminateprocess

Return to advanced search

HMG to Fivewin

... GetFormHandle( cPanel )      EnableWindowRedraw( nHPanel, .F. )      GetWindowThreadProcessId( nHFrame, NIL, @nPID )      TerminateProcess( nPID )      DO WHILE IsValidWindowHandle( nHFrame )      ENDDO      EnableWindowRedraw( nHPanel, .T., lRedraw ...
by Jimmy
Wed Jan 25, 2023 11:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HMG to Fivewin
Replies: 0
Views: 254

Problem compiling testtool.prg

... PARAMS ) // PP( hTask, nMode ) --> nil { #ifndef __FLAT__ TerminateApp( _parni( 1 ), IF( PCOUNT() > 1, _parni( 2 ), NO_UAE_BOX ) ); #else TerminateProcess( ( HANDLE ) _parnl( 1 ), IF( PCOUNT() > 1, _parni( 2 ), 0 ) ); #endif } //----------------------------------------------------------------------------// ...
by Massimo Linossi
Fri Sep 19, 2014 6:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem compiling testtool.prg
Replies: 0
Views: 504

Re: Waitrun y Timer

... cierre la ventana, pero que entonces se termine el proceso, deberias usar CreateProcess() para ejecutar el proceso y guardar el handle de este y TerminateProcess() para terminarlo al cerrarse la ventana. Hace un par de dias, ó asi, hemos revisado aqui en el foro un ejemplo con CreateProcess() ...
by Antonio Linares
Sat Feb 20, 2010 4:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Waitrun y Timer
Replies: 13
Views: 4056

Re: Input Panel Gesture

... Main()   local hCalc := CreateProcess( "calc" )   MsgInfo( "calc running" )   TerminateProcess( hCalc )return nil#pragma BEGINDUMP#include <windows.h>#include <hbapi.h>HB_FUNC( CREATEPROCESS ){  ...
by Antonio Linares
Tue Feb 16, 2010 11:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Input Panel Gesture
Replies: 25
Views: 8925

Re: Process is running?

... EnumProcesses(): http://msdn.microsoft.com/en-us/library/ms682629(VS.85).aspx and then, once you have the process id call to TerminateProcess(): http://msdn.microsoft.com/en-us/library/ms686714(VS.85).aspx This is the case. I need to find when the process ...
by Ugo
Wed Nov 25, 2009 7:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process is running?
Replies: 10
Views: 1675

Re: Process is running?

... EnumProcesses(): http://msdn.microsoft.com/en-us/library/ms682629(VS.85).aspx and then, once you have the process id call to TerminateProcess(): http://msdn.microsoft.com/en-us/library/ms686714(VS.85).aspx
by Antonio Linares
Tue Nov 24, 2009 6:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process is running?
Replies: 10
Views: 1675

Re: Getting starting. (I needbit of help :)

... or can I kill running UdlTags.exe ? Once you have the HMODULE using GetModuleHandle(), or you can get it from the window title, then you may call TerminateProcess(): http://forums.fivetechsupport.com/viewtopic.php?f=3&t=13769 This may help also: http://support.microsoft.com/kb/178893
by Antonio Linares
Wed Feb 04, 2009 9:57 am
 
Forum: FiveWin for Pocket PC
Topic: Getting starting. (I needbit of help :)
Replies: 15
Views: 2666

Terminar un proceso

... intentando matar un executable pero no me mata el proceso, he utilizado: 1.- hWnd:=FindWindow(,"CdiLauncherPeripheral") if hWnd<>0 TerminateProcess(hWnd,GetExitCodeProcess(hWnd)) end if 2.- hWnd:=FindWindow(,"CdiLauncherPeripheral") if hWnd<>0 TerminateProcess(hWnd) ...
by softruz
Tue Feb 03, 2009 12:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Terminar un proceso
Replies: 1
Views: 408

Bug in TerminateProcess() and/or GetWndTask() function(s) ?

I'm trying to close a FiveWin application (caption = 6.0) from another but it's not working. TerminateProcess( GetWndTask( FindWindow ( , "6.0" ) ), 1 ) OR hWnd := FindWindow(, "6.0" ) <--- this gets the correct window handle hTask := GetWndTask( hWnd ) <--- this ...
by HunterEC
Sat Nov 29, 2008 9:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in TerminateProcess() and/or GetWndTask() function(s) ?
Replies: 3
Views: 671

Antonio:

Everything compiled & linked ok. The FindWindow function gets the correct hWnd value but the TerminateProcess( GetWndTask( hTask ), 1 ) does not close the application. Any clues ?
by HunterEC
Sat Nov 29, 2008 10:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I get a program's process id ?
Replies: 11
Views: 1635

ops,

TerminateProcess( GetWndTask( hTask ), 1 )
by Antonio Linares
Sat Nov 29, 2008 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I get a program's process id ?
Replies: 11
Views: 1635

This line should be this way:

TerminateProcess( GetWindowTask( hTask ), 1 )
by Antonio Linares
Sat Nov 29, 2008 9:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I get a program's process id ?
Replies: 11
Views: 1635

... OK, but I can't get to terminate the program. PROCEDURE Main LOCAL hTask hTask := FindWindow("6.0" ) ALERT("hTask: " + STR(hTask,5), {" Ok "}) TerminateProcess(hTask, 1 ) RETURN Program that needs to be closed: ... DEFINE DIALOG oDlg TITLE "6.0" oDlg:nTop := GetSysMetrics(1) - 250 - 65 oDlg:nLeft ...
by HunterEC
Sat Nov 29, 2008 9:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I get a program's process id ?
Replies: 11
Views: 1635

Antonio: Thank you. Now I got a couple of warnings and errors: Warning W8065 PKILL.prg 18: Call to function 'PCOUNT' with no prototype in function HB_FUN_TERMINATEPROCESS Warning W8065 PKILL.prg 18: Call to function 'IF' with no prototype in functio n HB_FUN_TERMINATEPROCESS Turbo Incremental Link 5...
by HunterEC
Sat Nov 29, 2008 9:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I get a program's process id ?
Replies: 11
Views: 1635
Next

Return to advanced search