Fake file size
I was wondering that if there was some way to change or fake the size of a file in windows Xp without changing its content(compressing/zipping/deleting-adding lol),like when you get into the properties of the file/folder you'll see that its about 5Gb where the original file is just a txt. or the opposite,like a huge file that is about 300mbs appearing like 1mb in the properties…without the use of external softwares
You can do it with some code, this code how ever is not mine and I have not tested it.
The following piece of code generates a test.txt file of 15,9 TB (NOTE: NTFS only, disclaimer: never tested on non NTFS systems!).
{
HANDLE h = CreateFile("Test.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
DWORD dw;
DeviceIoControl(h, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, &dw, NULL);
LONG lDist = 4095;
SetFilePointer(h, 0, &lDist, FILE_BEGIN);
SetEndOfFile(h);
CloseHandle(h);
return 0;
}```
this is curtosy of this thread http://www.codeguru.com/forum/archive/index.php/t-324134.html
Just a thought, If the application had space set aside to store data, could you cut that out and tac-on the stored saved/input data as you go? You would have to know where it is stored. And that sounds like it might be a job for an assembly language.
edit: this wouldn't be a virus by any chance would it? You might be able to have it copy its self into RAM when the file is checked, so it doesn't read as hard drive space.