Terminateprocess for pocket?

Post Reply
User avatar
astursoft
Posts: 139
Joined: Sun Nov 06, 2005 6:14 pm
Location: Asturias

Terminateprocess for pocket?

Post by astursoft »

one sample code please !

Code: Select all


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
User avatar
astursoft
Posts: 139
Joined: Sun Nov 06, 2005 6:14 pm
Location: Asturias

Post by astursoft »

solved

Code: Select all

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
Post Reply