public void Start() { port = CompletionInterop.CreateIoCompletionPort(new IntPtr(-1), IntPtr.Zero, 0, 0); thread = new Thread(Execute); thread.Start(); }
public void Add(IntPtr handle) { IntPtr result = CompletionInterop.CreateIoCompletionPort(handle, port, (uint)handle.ToInt32(), 0); }