Click here to Skip to main content
15,909,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 10:23
Tom Wright9-Aug-04 10:23 
GeneralRe: Get the program folder Pin
Larsson9-Aug-04 11:03
Larsson9-Aug-04 11:03 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 12:12
Tom Wright9-Aug-04 12:12 
GeneralRe: Get the program folder Pin
Toby Opferman9-Aug-04 11:44
Toby Opferman9-Aug-04 11:44 
GeneralRe: Get the program folder Pin
PJ Arends9-Aug-04 16:05
professionalPJ Arends9-Aug-04 16:05 
GeneralShell doesnt give long filename Pin
KnaveWave9-Aug-04 8:04
KnaveWave9-Aug-04 8:04 
GeneralRe: Shell doesnt give long filename Pin
OBRon9-Aug-04 8:12
OBRon9-Aug-04 8:12 
GeneralRe: Shell doesnt give long filename Pin
Toby Opferman9-Aug-04 12:02
Toby Opferman9-Aug-04 12:02 
GeneralRe: Shell doesnt give long filename Pin
KnaveWave9-Aug-04 16:24
KnaveWave9-Aug-04 16:24 
GeneralRe: Shell doesnt give long filename Pin
OBRon10-Aug-04 1:55
OBRon10-Aug-04 1:55 
QuestionUpdate VS .NET 7.0 to 7.1 possible? Pin
Maarten Kools9-Aug-04 7:42
professionalMaarten Kools9-Aug-04 7:42 
AnswerRe: Update VS .NET 7.0 to 7.1 possible? Pin
OBRon9-Aug-04 8:16
OBRon9-Aug-04 8:16 
GeneralThread is not going to the Function Pin
aman20069-Aug-04 6:33
aman20069-Aug-04 6:33 
GeneralRe: Thread is not going to the Function Pin
David Crow9-Aug-04 9:18
David Crow9-Aug-04 9:18 
GeneralRe: Thread is not going to the Function Pin
aman20069-Aug-04 10:37
aman20069-Aug-04 10:37 
GeneralRe: Thread is not going to the Function Pin
David Crow10-Aug-04 4:53
David Crow10-Aug-04 4:53 
QuestionHow to know Security Context & Impersonation ? Pin
Anonymous9-Aug-04 6:31
Anonymous9-Aug-04 6:31 
AnswerRe: How to know Security Context & Impersonation ? Pin
Toby Opferman9-Aug-04 11:40
Toby Opferman9-Aug-04 11:40 
You want to do this on NTFS?

Security is a big pain, but this is what I think you have to do.

First, you need to get the security descriptor (The DACL is what you want I think) of the file. You can do this with "GetFileSecurity".

Then you need to have an access token of the client. If this is an RPC call, the user has already called in this context. You can call like "ImpersonateUser()" and then get the user's token with GetToken or something I forget the function, and you can then use one of the "AccessCheck" functions to check if that user has access. You can also call "LogonUser" since you have the password and username to get the user's token I believe. Those are the functions I'm pretty sure you want to look into.


GeneralRe: How to know Security Context & Impersonation ? Pin
Amarelia9-Aug-04 14:52
Amarelia9-Aug-04 14:52 
GeneralHelp on Help Pin
Tim Hsieh9-Aug-04 6:29
Tim Hsieh9-Aug-04 6:29 
GeneralRe: Help on Help Pin
Blake Miller9-Aug-04 8:07
Blake Miller9-Aug-04 8:07 
Generalweb browser control in a dll Pin
Phil Hamer9-Aug-04 6:20
Phil Hamer9-Aug-04 6:20 
GeneralSerial Port Question Pin
Tom Wright9-Aug-04 5:52
Tom Wright9-Aug-04 5:52 
GeneralRe: Serial Port Question Pin
palbano9-Aug-04 9:40
palbano9-Aug-04 9:40 
GeneralRe: Serial Port Question Pin
Tom Wright9-Aug-04 10:21
Tom Wright9-Aug-04 10:21 

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.