I am writing a C#/C++ program which will decompress win8 hibernation file. However, I haven't found hiberfil.sys format for new OS.
Is there any description of Win8 hiberfil.sys file format to parse it?
That file is not new to Win 8. However, I'm not sure whether the format has changed over time. In any case, here's a link to a PDF from 2008 that describes the file and some tools.
Related
One message in my inbox has attachment with a zip file. Inside zipped file is file with extension ".pif".
After opening file in hex editor I see that file is PE. Apparently someone added some code inside.
Gmail detects virus inside attachment.
I created virtual machine with Windows XP. I tried to run virus but nothing happen.
I'm really curious how does this virus work.
Can I identify in which language virus was written?
Is there a way to decompile or disassembly code inside ".pif" file?
Is there a ways to determine what is the name and type of virus?
Am I correct in that Delphi 4 XE Pro does not supply any native way of reading XML documents? (TXMLDocument is Windows only) I have pondered about using TClientDataSet, but I am not sure if that is the right way to go.
Here is an example of what I want:
Readonly XML file that defines a list of contacts. In the XML file, it also contains e.g. file path to photo of contact.
Ideally I then want to show the data in e.g. a TListBox (which might mean I need to write my own logic for loading images in/out of memory.)
If validation is not required (as in the linked answer above), try
NativeXml
or
OmniXML
Both are free open source libraries for Delphi, however I have not checked if they can be used on other platforms.
Update: see http://www.kluug.net/omnixml.php and Windows & Mac XML library for delphi XE2
I want to edit a .sdi file which is used in a Open Office file. I can open it with the OO Calc but after saving that it isn't working anymore. I read about this sCal Linux program. But I can't find something similar for windows.
The mistake was that Open Office Calc used the ; and the whitespaces.
It must be just whitespaces
I've downloaded some samples about ExeMod but they don't work in the Delphi 2010 and i don't know is it compatible with Windows 7 or not. Is there any component like ExeMod but without problems?
Edit
I want to make a simple installer application.
It just sounds like your previous question, the 1st part of my answer:
Append some .zip content to an
existing .exe, and the .exe code will
retrieve the .zip content on request.
This is exactly what ExeMod unit does, in much complete manner (full .zip archive support).
I am testing one application that handles files (stored in SQL Server using FILESTREAM). It is a Delphi 32bit application.
Opening an XLS document stored in the database (originally saved with Office 2003) gives an error from Excel 2010 64bit. Is there some known compatibility issue of Office 2010 64bit with 32bit applications?
Error messages and workflow
When opening the file Excel gives one of the following error messages:
Impossible to open the file FILE because of problems in contents
Impossible to open the file because some parts are missing or not valid
Opening a file on machine A with Office 2007 opens the file with no problems. Opening the same file on machine B with Office 2010 produces the error message. Opening again on machine A there is also an error message! In all these steps I am just reading from the database, not writing. So why does this can happen?
How do I open the documents?
SELECT query to get 'DOCUMENT' varbinary(max) field for the specific ID_Document.
Extract from database using
TBlobField(sqlQuery.FieldByName('DOCUMENT')).SaveToFile(sDestinationPath + FileUniqueName + .zip');
Copy file from one path to another using Windows.CopyFile
Unzip file using TZipforge component
Set attribute of unzipped file to ROM using FileSetReadOnly function.
Open document using ShellExecute(0, 'open', PWideChar(FIleName), '', '', SW_SHOWNORMAL);
As you can see there is nothing that writes back to the database. Once the file is extracted from TBlobField it is even copied to another place before unzipping and opening it.
Possibly broken installation
Office has been reinstalled and now everything works, the problem of corruption was due to a conflict with an open Office installation that asked "do you want to fix the office installation?". Anyway the problem still remains, because I cannot understand what happened. How can I corrupt a file in the database if I extract it in a folder and open it from the folder without writing anything back to database?
Office 2010 64-bit should have no problems with files created with its 32-bit version. The files (.docx, .xls) are bitness independant.
I have some questions:
How do you open your files?
Can you show some code?
Are you sure that you are only reading the file from the database?
Do you give your files the right extension? Saving a .xls as .xlsx will cause problems when opening the file.
Check if your SQL server database is corrupt. Check disk where database is for errors. Reinstall SQL server.
Solved: it was a bug in my program. There was an error in the logic that persisted the document status and by mistake sometimes Is_File_Compressed was set to False, even if it is true.
Thanks for the support.