' Test on:vb6.0+win2000 and Vb6.0+winxp It ' s pass!
Option Explicit
' Create the Thread API
' This API has been modified, lpthreadattributes changed to any type, lpstartaddress changed to a value reference:
' Because the entry address of the function is passed by the parametric, if you use the address, it will pass the parameter variable's addresses instead of the function's entry address.
Private Declare Function createthread Lib "kernel32" (ByVal lpthreadattributes as any, ByVal dwstacksize as Long, ByVal LP Startaddress as Long, lpparameter as any, ByVal dwcreationflags as Long, lpthreadid as long) as long
' Terminate the thread API
Private Declare Function terminatethread Lib "kernel32" (ByVal hthread as Long, ByVal Dwexitcode as long) as long
' Activate the thread API
Private Declare Function resumethread Lib "kernel32" (ByVal Hthread as long) as long
' Suspend the thread API
Private Declare Function suspendthread Lib "kernel32" (ByVal Hthread as long) as long
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.