WaitForSingleObject
C# Signature:
[DllImport("kernel32.dll", SetLastError=true)]
static extern UInt32 WaitForSingleObject(IntPtr hHandle, UInt32 dwMilliseconds);VB.NET Signature:
<DllImport("kernel32", SetLastError := True)> _
Function WaitForSingleObject( _
ByVal handle As IntPtr, _
ByVal milliseconds As UInt32) As UInt32
End FunctionBoo Signature:
[DllImport("kernel32.dll")]
def WaitForSingleObject(hHandle as int, dwMilliseconds as long):
passTips & Tricks:
const UInt32 INFINITE = 0xFFFFFFFF;
const UInt32 WAIT_ABANDONED = 0x00000080;
const UInt32 WAIT_OBJECT_0 = 0x00000000;
const UInt32 WAIT_TIMEOUT = 0x00000102;
and use:
WaitForSingleObject(handle, (int)INFINITE);Tips & Tricks:
Sample Code:
Sample Code:
Última actualización