#include #include #include #include #include using namespace std; int main() { char szFilename[] = "Backupofsave.wbk"; gsf_init (); GError *err; GsfInput * input; input = GSF_INPUT(gsf_input_stdio_new (szFilename, &err)); GSFInputStream gsfInput(input); WPDConfidence confidence = WPDocument::isFileFormatSupported(&gsfInput, true); if(confidence == WPD_CONFIDENCE_LIKELY) cout << "this document will be likely supported" << endl; else cout << "this document will not be likely supported" << endl; }