The Old New Thing

If I attach a file to an existing completion port, do I have to close the completion port handle a second time?

There are two ways of calling the function. You can pass a null pointer as the parameter, indicating that you would like to create a brand new completion port, associated with the file handle you passed (if you passed one). Or you can pass the handle of an existing completion port, and the file handle you passed will be associated with ...