Desktop Functions: Smart Device Functions:
|
waitforsingleobject (kernel32)
C# Signature:
[DllImport("kernel32", SetLastError=true, ExactSpelling=true)] User-Defined Types:None. Notes:None. Tips & Tricks:
public static uint INFINITE = 0xFFFFFFFF; and use:
WaitForSingleObject(handle, (int)INFINITE); Edgar - edgarrc(at)gmail.com Sample Code:
private void Run() Alternative Managed API:If you have a System.Diagnostic.Process object (possibly created by Process.Start), call Process.WaitForExit(). If you're waiting on a file system object, look at System.IO.FileSystemWatcher System.Threading.WaitHandle and derivatives (e.g. AutoResetEvent) Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|