+ OSVERSIONINFO osvi;
+ ZeroMemory( &osvi, sizeof(OSVERSIONINFO) );
+ osvi.dwOSVersionInfoSize = sizeof( OSVERSIONINFO );
+ GetVersionEx( &osvi );
+
+ fwprintf( fd, L"[version]\nOS=%d.%d.%d.%d.%s\nVLC=" VERSION_MESSAGE, osvi.dwMajorVersion,
+ osvi.dwMinorVersion,
+ osvi.dwBuildNumber,
+ osvi.dwPlatformId,
+ osvi.szCSDVersion);
+
+ const CONTEXT *const pContext = (const CONTEXT *)lpExceptionInfo->ContextRecord;
+ const EXCEPTION_RECORD *const pException = (const EXCEPTION_RECORD *)lpExceptionInfo->ExceptionRecord;
+ /*No nested exceptions for now*/
+ fwprintf( fd, L"\n\n[exceptions]\n%08x at %08x",pException->ExceptionCode,
+ pException->ExceptionAddress );
+ if( pException->NumberParameters > 0 )
+ {
+ unsigned int i;
+ for( i = 0; i < pException->NumberParameters; i++ )
+ fprintf( fd, " | %08x", pException->ExceptionInformation[i] );
+ }