Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Serial Port Question Pin
palbano9-Aug-04 18:01
palbano9-Aug-04 18:01 
GeneralRe: Serial Port Question Pin
shultas9-Aug-04 15:26
shultas9-Aug-04 15:26 
GeneralRe: Serial Port Question Pin
Tom Wright10-Aug-04 3:43
Tom Wright10-Aug-04 3:43 
GeneralRe: Serial Port Question Pin
shultas10-Aug-04 5:46
shultas10-Aug-04 5:46 
GeneralRe: Serial Port Question Pin
shultas10-Aug-04 5:50
shultas10-Aug-04 5:50 
GeneralAutomation +Get the active projet of visual studio .net Pin
nicgendron9-Aug-04 5:45
nicgendron9-Aug-04 5:45 
GeneralMFC / VisualC++ 7.0 / accelerators problem Pin
Member 130853379-Aug-04 5:28
Member 130853379-Aug-04 5:28 
GeneralColoring Text Pin
act_x9-Aug-04 5:22
act_x9-Aug-04 5:22 
GeneralRe: Coloring Text Pin
John R. Shaw9-Aug-04 5:52
John R. Shaw9-Aug-04 5:52 
GeneralRe: Coloring Text Pin
act_x9-Aug-04 5:54
act_x9-Aug-04 5:54 

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.