Windows XP Pro, Visual Studio 2008, MFC application.
When I call
Code:
WriteFile( m_log_file_handle, &m_log_message, m_write_length, mp_bytes_written,
                NULL );
I wind up in the debugger about 13 levels deep and do not understand what it is trying to tell me.

My solution is:
Code:
try{
  WriteFile( ... );
  }
catch
  {
   // need help here
}
I don't know what can be thrown and my Visual Studio help for WriteFile says nothing about exceptions. What can I put in the catch section to give me a clue as to what it does not like about my WriteFile call.