Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Convert CString to double Pin
David Crow21-Jun-08 12:51
David Crow21-Jun-08 12:51 
Questionproblem with status,progressbar [modified] Pin
sanjayvenkat20-Jun-08 23:18
sanjayvenkat20-Jun-08 23:18 
AnswerRe: problem with status,progressbar Pin
Nibu babu thomas21-Jun-08 2:07
Nibu babu thomas21-Jun-08 2:07 
QuestionHow to change width of a combo box at run time Pin
sheshidar20-Jun-08 23:11
sheshidar20-Jun-08 23:11 
AnswerRe: How to change width of a combo box at run time Pin
Hamid_RT20-Jun-08 23:44
Hamid_RT20-Jun-08 23:44 
AnswerRe: How to change width of a combo box at run time Pin
Ștefan-Mihai MOGA21-Jun-08 4:23
professionalȘtefan-Mihai MOGA21-Jun-08 4:23 
QuestionCTreeCtrl image set issue Pin
Abyss20-Jun-08 22:16
Abyss20-Jun-08 22:16 
QuestionDecompressing NTFS Compressed RAW Data Pin
Member 147600120-Jun-08 20:30
Member 147600120-Jun-08 20:30 
Hello ALL,

I have an NTFS Compressed Disk named "J:\" & there is only one file in that disk, say "Sample.txt"
I can see the sample.txt's RAW data using WinHex in compressed form.

The Compressed's data size is 512 Bytes ( I see that in the properties of that file )

OPERATIONS STEPS:
=================
Now I open that compressed drive using LZOpenFile() function, like

// Open the compressed drive
OFSTRUCT lInputStruct;
int lSrcHandle = LZOpenFile("\\.\\J:", &lInputStruct, OF_READ); //compressed drive

// I know that the compress data of Sample.txt file starts from 3858432 location
// So I seek to that position by
long seek = LZSeek(lSrcHandle,3858432,0);

// Then I read the contents
// LZRead automatically decompress the data

unsigned char chBuffer[1024] // this buffer should be bigger
INT ret = LZRead( lSrcHandle, (LPSTR)chBuffer, 512 );

// I open another file to write the decompressed data
HANDLE lNorFile = CreateFile("I:\\sample_dec.txt", GENERIC_WRITE, FILE_SHARE_WRITE, NULL,
CREATE_ALWAYS, NULL, NULL ); // normal file

// chBuffer holds the decompressed data
WriteFile(lNorFile , chBuffer, ret, &lBytesWrite, NULL );

// Close all the open handle
LZClose(lSrcHandle);
CloseHandle( lNorFile );

RESULT:
======
The data into I:\sample_dec.txt is similar as compressed data.
So it means the data is not decompressed.

QUESTION:
========
1. How I exactly get the Raw data of a Compressed NTFS file ?
1. How I decompress the RAW Compressed NTFS data ?

Please help me if someone can...

Thanks in Advanced
-Same
QuestionAbout position of AfxMessageBox OK button Pin
Mushtaque Nizamani20-Jun-08 18:55
Mushtaque Nizamani20-Jun-08 18:55 
AnswerRe: About position of AfxMessageBox OK button Pin
zafersavas20-Jun-08 19:28
zafersavas20-Jun-08 19:28 
AnswerRe: About position of AfxMessageBox OK button Pin
Ștefan-Mihai MOGA21-Jun-08 10:43
professionalȘtefan-Mihai MOGA21-Jun-08 10:43 
GeneralDisable Minimize and Maximize Box Pin
cb0206120-Jun-08 16:49
cb0206120-Jun-08 16:49 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha20-Jun-08 19:13
Jagdish V. Bhimbha20-Jun-08 19:13 
GeneralRe: Disable Minimize and Maximize Box Pin
cb0206122-Jun-08 14:54
cb0206122-Jun-08 14:54 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha22-Jun-08 20:28
Jagdish V. Bhimbha22-Jun-08 20:28 
GeneralRe: Disable Minimize and Maximize Box Pin
Christian Kleinheinz26-Jan-09 12:26
Christian Kleinheinz26-Jan-09 12:26 
QuestionEditing boot.ini programatically Pin
Sameer Naik20-Jun-08 4:45
Sameer Naik20-Jun-08 4:45 
AnswerRe: Editing boot.ini programatically Pin
Randor 20-Jun-08 5:07
professional Randor 20-Jun-08 5:07 
AnswerRe: Editing boot.ini programatically [modified] Pin
Saurabh.Garg20-Jun-08 5:10
Saurabh.Garg20-Jun-08 5:10 
GeneralRe: Editing boot.ini programatically Pin
Sameer Naik20-Jun-08 19:41
Sameer Naik20-Jun-08 19:41 
GeneralRe: Editing boot.ini programatically Pin
Saurabh.Garg20-Jun-08 23:05
Saurabh.Garg20-Jun-08 23:05 
Questionhow to obtain data from other member function? Pin
gentleguy20-Jun-08 3:02
gentleguy20-Jun-08 3:02 
AnswerRe: how to obtain data from other member function? Pin
Cedric Moonen20-Jun-08 3:07
Cedric Moonen20-Jun-08 3:07 
GeneralRe: how to obtain data from other member function? Pin
gentleguy20-Jun-08 3:11
gentleguy20-Jun-08 3:11 
GeneralRe: how to obtain data from other member function? Pin
David Crow20-Jun-08 3:13
David Crow20-Jun-08 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.