DFSWriteNoWait
Writes sectors into a file using DFS (returns immediately after initiation)
#include <nwdfs.h> LONG DFSWriteNoWait ( LONG fileHandle, LONG startingSector, LONG sectorCount, BYTE *buffer, struct DFSCallBackParameters *callBackNode);
This function can also return the return status codes found in the DFSWrite information above.
Operation is identical to DFSWrite except that the current thread of execution is not blocked until the completion of the requested operation ( DFSWrite calls DFSWriteNoWait, then waits for the completion to be signalled).
The localSemaphoreHandle field contains a local semaphore handle obtained by calling OpenLocalSemaphore. WaitOnLocalSemaphore or ExamineLocalSemaphore should be called to determine when the semaphore has been signalled.
The completionCode field contains a zero (or the value already in the field if it has not been zeroed out before DFSWriteNoWait is called) if a bad file handle is passed, and a -1 for all other completions.