Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getwindowthreadprocessid
Message
 
 
À
24/07/2003 17:33:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00813312
Message ID:
00813316
Vues:
8
Hi Gilciel,

The following code works for me in VFP8 under Win2kSP4
Declare INTEGER GetWindowThreadProcessId IN win32api INTEGER hwnd, INTEGER @lpdwProcessId
DECLARE Long FindWindow IN WIN32API Long, String
test_hwnd = FindWindow(0,_Screen.Caption)
test_pid = 0
test_thread_id = GetWindowThreadProcessId(test_hwnd, @test_pid)
? test_thread_id, test_pid		&& Displays 924  1432
Does it produce correct result on your PC?

>I am utlizando this function so that it returns me I number it of the
>PID, but this so this returning one I number negative. What this
>making of missed? If they alguem will be able to help, I am thankful
>me.
>
>Declare INTEGER GetWindowThreadProcessId IN win32api INTEGER hwnd, INTEGER @lpdwProcessId
>
>test_thread_id = GetWindowThreadProcessId(test_hwnd, @test_pid)
>where
>
>since ja I am thankful
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform