Saludos.
Alguien sabe como hacer para que un prg funcione como un servicio de windows....?
#include "FiveWin.ch"
//-------------------------
Function Main()
//-------------------------
ServiceProcess(1)
---- Tu codigo aqui
Return NIL
//------------------------------
Function ServiceProcess( mode )
//------------------------------
Local nProcessId := 0
Default mode := 0
nProcessId := GCP( )
If Abs( nProcessId ) > 0
RSProcess( nProcessId, mode )
Endif
RETURN
//----------------------------------------------------
DLL32 FUNCTION RSProcess(npID AS LONG ,;
nMode AS LONG ) AS LONG ;
FROM "RegisterServiceProcess" LIB "kernel32.DLL"
//----------------------------------------------------
//----------------------------------------------------
DLL32 FUNCTION GCP() AS LONG;
FROM "GetCurrentProcessId" LIB "kernel32.dll"
//----------------------------------------------------
Maurilio Viana wrote:Intenta esto:
Pienso que tal vez no funcione con FW/Clipper, solamente con FW/[x]Harbour...
Return to FiveWin for CA-Clipper
Users browsing this forum: No registered users and 16 guests