DrWatsonFlush (Compact 2013)
This function flushes the Windows Embedded Compact error reporting dump data to the underlining storage.
A nonzero value indicates success. FALSE indicates failure.
This function calls KernelIoControl with IOCTL_KLIB_FLUSHWATSON. If OEMs use a slow persistent storage such as NAND flash memory for the Windows Embedded Compact error reporting dump, they normally use a temporary RAM buffer to store the Windows Embedded Compact error reporting dump and write to flash memory only when necessary, such as when the buffer is full.
By calling the DrWatsonFlush function, data is guaranteed to be written to storage.