FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Terminateprocess for pocket?
Posts: 139
Joined: Sun Nov 06, 2005 06:14 PM
Terminateprocess for pocket?
Posted: Wed Feb 08, 2006 10:33 PM
one sample code please !

HB_FUNC (MATAPRG)
{
   HWND hWnd;
   BOOL lRet = FALSE;

   hWnd = FindWindow (NULL, L"nPOP" );
   if (hWnd)
   {
     TerminateProcess(hWnd, 0);
    // PostMessage(hWnd ,WM_SYSCOMMAND,WM_DESTROY,0);
   lRet = TRUE;
   }
   hb_retl (lRet);
}


this does not work.
Jose Luis Parajón

Asturias
Posts: 139
Joined: Sun Nov 06, 2005 06:14 PM
Terminateprocess for pocket?
Posted: Thu Feb 09, 2006 02:04 PM
solved
HB_FUNC (MATANPOP)
{
   HWND hWnd;
   BOOL lRet = FALSE;

   hWnd = FindWindow (NULL, L"nPOP" );
   if (hWnd)
   {
     PostMessage(hWnd ,0x0002,0,0);

   lRet = TRUE;
   }
   hb_retl (lRet);
}
Jose Luis Parajón

Asturias

Continue the discussion