Private Declare Function OpenThread Lib "kernel32. DLL" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwThreadId As Long) As Long
Private Const THREAD_ALL_ACCESS=& amp; H3FF
Private Sub Form_Activate ()
Dim As Long l
L=OpenThread (THREAD_ALL_ACCESS, True, 10724)
Print l
End Sub
10724 is with GetWindowThreadProcessId get the thread ID of the
Why every time printed thread handle is different?
New answer,,,
CodePudding user response:
Their top, anyone know? Please tell me,,,CodePudding user response:
The handle is the global identification system, so many procedures in the application, release, apply twice as less than the probability of winning the lottery.