Click here to Skip to main content
15,886,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert CString to char* Pin
led mike22-Aug-08 5:37
led mike22-Aug-08 5:37 
JokeRe: Convert CString to char* Pin
toxcct22-Aug-08 6:17
toxcct22-Aug-08 6:17 
QuestionSearching for a sting in a CFile ? Pin
USAFHokie8022-Aug-08 4:01
USAFHokie8022-Aug-08 4:01 
AnswerRe: Searching for a sting in a CFile ? Pin
Wes Aday22-Aug-08 4:06
professionalWes Aday22-Aug-08 4:06 
GeneralRe: Searching for a sting in a CFile ? Pin
USAFHokie8022-Aug-08 4:11
USAFHokie8022-Aug-08 4:11 
AnswerRe: Searching for a sting in a CFile ? Pin
Hamid_RT22-Aug-08 4:35
Hamid_RT22-Aug-08 4:35 
AnswerRe: Searching for a sting in a CFile ? Pin
David Crow22-Aug-08 8:21
David Crow22-Aug-08 8:21 
QuestionHow to check whether user has delete permission on a file Pin
jpg64222-Aug-08 3:21
jpg64222-Aug-08 3:21 
I want to check whether the current user has the rights to delete a file.
I've looked at two approaches. The first is to call CreateFile with the creation disposition flags set to OPEN_EXISTING. This would give the right answer most of time, apart from when the user has the delete permission explicitly disabled.

I've also looked at GetEffectiveRightsFromAcl. This looks as if this would do it for local files, but the documentation states A trustee's group rights are enumerated by GetEffectiveRightsFromAcl on the local computer, even if the trustee is accessing objects on a remote computer. This function does not evaluate group rights on remote computers. which implies that it's not going to be reliable on a network drive, which may be hosted on a different OS anyway.

Could someone suggest a better way of doing this?
QuestionUSB and CD ROM Enable/Disable Pin
ameyakoshti22-Aug-08 2:09
ameyakoshti22-Aug-08 2:09 
AnswerRe: USB and CD ROM Enable/Disable [modified] Pin
Perspx22-Aug-08 2:23
Perspx22-Aug-08 2:23 
QuestionRe: USB and CD ROM Enable/Disable Pin
ameyakoshti22-Aug-08 18:21
ameyakoshti22-Aug-08 18:21 
AnswerRe: USB and CD ROM Enable/Disable Pin
Jijo.Raj22-Aug-08 2:33
Jijo.Raj22-Aug-08 2:33 
AnswerRe: USB and CD ROM Enable/Disable Pin
vikas amin22-Aug-08 4:26
vikas amin22-Aug-08 4:26 
Question.Net passport authentication samples? Pin
George_George22-Aug-08 1:57
George_George22-Aug-08 1:57 
GeneralRe: .Net passport authentication samples? Pin
led mike22-Aug-08 5:42
led mike22-Aug-08 5:42 
GeneralRe: .Net passport authentication samples? Pin
George_George24-Aug-08 19:18
George_George24-Aug-08 19:18 
QuestionRe: .Net passport authentication samples? Pin
led mike26-Aug-08 7:15
led mike26-Aug-08 7:15 
AnswerRe: .Net passport authentication samples? Pin
George_George26-Aug-08 15:32
George_George26-Aug-08 15:32 
AnswerRe: .Net passport authentication samples? Pin
George_George26-Aug-08 15:43
George_George26-Aug-08 15:43 
GeneralRe: .Net passport authentication samples? Pin
led mike27-Aug-08 6:02
led mike27-Aug-08 6:02 
GeneralRe: .Net passport authentication samples? Pin
George_George27-Aug-08 16:07
George_George27-Aug-08 16:07 
GeneralRe: .Net passport authentication samples? Pin
led mike28-Aug-08 5:25
led mike28-Aug-08 5:25 
GeneralRe: .Net passport authentication samples? Pin
George_George1-Sep-08 3:21
George_George1-Sep-08 3:21 
QuestionIs it any DLL problem? Pin
krishna Vuppala22-Aug-08 1:05
krishna Vuppala22-Aug-08 1:05 
AnswerRe: Is it any DLL problem? Pin
KarstenK22-Aug-08 1:56
mveKarstenK22-Aug-08 1:56 

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.