Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
CPallini2-Sep-10 23:55
mveCPallini2-Sep-10 23:55 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
viniaks2-Sep-10 17:06
viniaks2-Sep-10 17:06 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:09
Dave Calkins3-Sep-10 14:09 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
Rick York3-Sep-10 6:56
mveRick York3-Sep-10 6:56 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:08
Dave Calkins3-Sep-10 14:08 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
Blake Miller3-Sep-10 12:16
Blake Miller3-Sep-10 12:16 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:09
Dave Calkins3-Sep-10 14:09 
QuestionDirectory Info using GetFileInformationByHandleEx Pin
gothic_coder2-Sep-10 3:48
gothic_coder2-Sep-10 3:48 
Hello all,

I hooked NtSetInformationFile to intercept delete call, This is done, Now i have a file which contains name of files and folder need to be protected, Protecting file is no problem as i get the file name from file handle and using strcmp i decide whether to delete the file or not, But how to determine that the file handle i get in NtSetInformationFile is folder?

I tried using GetFileInformationByHandleEx with FileStandardInfo which should give me whether the handle is directory or not, But it always returns TRUE(folder) when there are no files inside and FALSE(not folder) when there are files inside.


Thanks all.
AnswerRe: Directory Info using GetFileInformationByHandleEx Pin
«_Superman_»2-Sep-10 17:45
professional«_Superman_»2-Sep-10 17:45 
GeneralRe: Directory Info using GetFileInformationByHandleEx Pin
gothic_coder2-Sep-10 21:02
gothic_coder2-Sep-10 21:02 
QuestionRe: Directory Info using GetFileInformationByHandleEx Pin
David Crow3-Sep-10 3:18
David Crow3-Sep-10 3:18 
AnswerRe: Directory Info using GetFileInformationByHandleEx Pin
gothic_coder3-Sep-10 21:36
gothic_coder3-Sep-10 21:36 
QuestionDropping emails onto C++ MFC application Pin
William Engberts2-Sep-10 2:07
William Engberts2-Sep-10 2:07 
AnswerRe: Dropping emails onto C++ MFC application Pin
Code-o-mat2-Sep-10 4:03
Code-o-mat2-Sep-10 4:03 
QuestionDate Format Pin
john56322-Sep-10 1:32
john56322-Sep-10 1:32 
AnswerRe: Date Format Pin
CPallini2-Sep-10 1:44
mveCPallini2-Sep-10 1:44 
QuestionStack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:14
T.RATHA KRISHNAN1-Sep-10 23:14 
QuestionRe: Stack Overflow Pin
CPallini1-Sep-10 23:21
mveCPallini1-Sep-10 23:21 
AnswerRe: Stack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:29
T.RATHA KRISHNAN1-Sep-10 23:29 
GeneralRe: Stack Overflow Pin
CPallini1-Sep-10 23:46
mveCPallini1-Sep-10 23:46 
GeneralRe: Stack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:59
T.RATHA KRISHNAN1-Sep-10 23:59 
GeneralRe: Stack Overflow Pin
CPallini2-Sep-10 0:07
mveCPallini2-Sep-10 0:07 
AnswerRe: Stack Overflow Pin
Nemanja Trifunovic2-Sep-10 4:29
Nemanja Trifunovic2-Sep-10 4:29 
AnswerRe: Stack Overflow Pin
Blake Miller3-Sep-10 12:20
Blake Miller3-Sep-10 12:20 
QuestionHow can Write and Display Date and currency in excel? Pin
Le@rner1-Sep-10 22:15
Le@rner1-Sep-10 22:15 

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.