The latest version of this sample is hosted on GitHub.
The Game Definition File Validator (
GDFTrace.exe) utility is a debugging aid for working with Game Definition File Editor (GDF) files for Windows Vista, Windows 7, Windows 8, and Windows 8.1 Preview. It is a command-line tool
for validating the XML against the schema, displaying a 'human readiable' summary, and generating validation warnings. It can be used either directly extracting the GDF from the containing EXE/DLL file, or against the 'raw' XML file.
If run without any command-line parameters, it displays the following help.
This utility was originally published as part of the legacy DirectX SDK. This version does not require the DirectX SDK to build and can be built using Visual Studio 2010, Visual Studio 2012, or Visual Studio 2013 Preview.
GDFTrace.EXE must have the both the
GDFSchema.v126.96.36.199.XSD files located in the same directory as the EXE to fully validate the GDF files.
The Visual Studio 2010 project files can be updated to use Visual Studio 2012 or Visual Studio 2013 automatically. Be sure to add to the Processor Definitions of all configurations
_WIN32_WINNT=0x0600 so the resulting DLL/EXE will be compatible with Windows Vista, Windows 7, and Windows 8.x.
The DirectX SDK (June 2010) contained the previously released version of this utility. This version is similiar with the following improvements:
/storecommand-line switch mutes warnings not relevant to Windows Store apps use of GDF files
Games for Windows Technical Requirements (TR 1.1 and 1.2)
Games for Windows Test Cases (TR 1.1 and 1.2)