terminatethread 例子(terminatethread)
關(guān)于terminatethread 例子,terminatethread這個(gè)很多人還不知道,今天菲菲來(lái)為大家解答以上的問(wèn)題,現(xiàn)在讓我們一起來(lái)看看吧!
1、VB6.0的。
2、代碼如5261下。
3、單擊窗體4102效果就1653顯現(xiàn)。
4、版==權(quán)==============Option ExplicitPrivate Declare Function GetCurrentThread Lib "kernel32" () As LongPrivate Declare Function GetExitCodeThread Lib "kernel32" (ByVal hThread As Long, lpExitCode As Long) As LongPrivate Declare Function TerminateThread Lib "kernel32" (ByVal hThread As Long, ByVal dwExitCode As Long) As LongPrivate Sub Form_Click()Dim hT As OLE_HANDLE, lEC As LonghT = GetCurrentThreadGetExitCodeThread hT, lECTerminateThread hT, lECEnd Sub。
本文到此分享完畢,希望對(duì)大家有所幫助。
標(biāo)簽: terminatethread