Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to know file type and its protection type for office files? Pin
Le@rner25-Dec-13 18:23
Le@rner25-Dec-13 18:23 
GeneralRe: how to know file type and its protection type for office files? Pin
Richard MacCutchan25-Dec-13 23:57
mveRichard MacCutchan25-Dec-13 23:57 
QuestionDirectShow - video resize interpolation Pin
sdancer7523-Dec-13 22:09
sdancer7523-Dec-13 22:09 
AnswerRe: DirectShow - video resize interpolation Pin
sdancer757-Jan-14 23:20
sdancer757-Jan-14 23:20 
AnswerRe: DirectShow - video resize interpolation Pin
sdancer754-Mar-14 21:52
sdancer754-Mar-14 21:52 
QuestionStuck at FILE_ATTRIBUTE_REPARSE_POINT attribute Pin
vishalgpt23-Dec-13 19:39
vishalgpt23-Dec-13 19:39 
AnswerRe: Stuck at FILE_ATTRIBUTE_REPARSE_POINT attribute Pin
Richard MacCutchan23-Dec-13 22:11
mveRichard MacCutchan23-Dec-13 22:11 
AnswerRe: Stuck at FILE_ATTRIBUTE_REPARSE_POINT attribute Pin
Randor 24-Dec-13 19:00
professional Randor 24-Dec-13 19:00 
Hi,

1.) Call DeviceIoControl[^] with FSCTL_GET_REPARSE_POINT[^] and get a REPARSE_DATA_BUFFER[^].
2.) Call IsReparseTagMicrosoft[^] and check that the the REPARSE_DATA_BUFFER.ReparseTag[^] member is IO_REPARSE_TAG_SYMBOLIC_LINK[^] or IO_REPARSE_TAG_MOUNT_POINT[^].
3.) If so... begin copying the characters beginning at REPARSE_DATA_BUFFER.PrintNameOffset[^] and stop when you reach REPARSE_DATA_BUFFER.PrintNameLength[^].
4.) Now that you have the target path calculate with text comparisons whether or not operating on the target would cause infinite recursion. If your input is not normalized then you can apply C14N by calling PathCanonicalize function to remove navigation elements such as "\..\.\..\".

Best Wishes,
-David Delaune
AnswerRe: Stuck at FILE_ATTRIBUTE_REPARSE_POINT attribute Pin
jschell25-Dec-13 8:03
jschell25-Dec-13 8:03 
QuestionLittle OT, but I am really puzzled by this. Pin
Vaclav_23-Dec-13 15:12
Vaclav_23-Dec-13 15:12 
AnswerRe: Little OT, but I am really puzzled by this. Pin
enhzflep23-Dec-13 21:02
enhzflep23-Dec-13 21:02 
AnswerRe: Little OT, but I am really puzzled by this. Pin
Richard MacCutchan23-Dec-13 22:09
mveRichard MacCutchan23-Dec-13 22:09 
QuestionRe: Little OT, but I am really puzzled by this. Pin
CPallini26-Dec-13 7:17
mveCPallini26-Dec-13 7:17 
AnswerRe: Little OT, but I am really puzzled by this. Pin
Vaclav_26-Dec-13 8:20
Vaclav_26-Dec-13 8:20 
GeneralRe: Little OT, but I am really puzzled by this. Pin
CPallini26-Dec-13 9:04
mveCPallini26-Dec-13 9:04 
QuestionCan't call a VB6 function from C Pin
Arm5523-Dec-13 5:42
Arm5523-Dec-13 5:42 
QuestionRe: Can't call a VB6 function from C Pin
David Crow23-Dec-13 5:44
David Crow23-Dec-13 5:44 
AnswerRe: Can't call a VB6 function from C Pin
Arm5523-Dec-13 7:01
Arm5523-Dec-13 7:01 
GeneralRe: Can't call a VB6 function from C Pin
Richard Andrew x6423-Dec-13 9:13
professionalRichard Andrew x6423-Dec-13 9:13 
GeneralRe: Can't call a VB6 function from C Pin
Arm5523-Dec-13 10:08
Arm5523-Dec-13 10:08 
GeneralRe: Can't call a VB6 function from C Pin
Richard Andrew x6423-Dec-13 16:43
professionalRichard Andrew x6423-Dec-13 16:43 
GeneralRe: Can't call a VB6 function from C Pin
Arm5524-Dec-13 4:41
Arm5524-Dec-13 4:41 
GeneralRe: Can't call a VB6 function from C Pin
Richard Andrew x6424-Dec-13 6:51
professionalRichard Andrew x6424-Dec-13 6:51 
GeneralRe: Can't call a VB6 function from C Pin
Arm5524-Dec-13 7:11
Arm5524-Dec-13 7:11 
GeneralRe: Can't call a VB6 function from C Pin
Randor 24-Dec-13 18:12
professional Randor 24-Dec-13 18:12 

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.