Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic arrays Pin
Waldermort17-Apr-06 8:21
Waldermort17-Apr-06 8:21 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 9:02
Nemanja Trifunovic17-Apr-06 9:02 
GeneralRe: Dynamic arrays Pin
Waldermort17-Apr-06 9:14
Waldermort17-Apr-06 9:14 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 10:41
Nemanja Trifunovic17-Apr-06 10:41 
AnswerRe: Dynamic arrays Pin
Joe Woodbury17-Apr-06 10:29
professionalJoe Woodbury17-Apr-06 10:29 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 10:46
Nemanja Trifunovic17-Apr-06 10:46 
GeneralRe: Dynamic arrays Pin
Joe Woodbury17-Apr-06 21:21
professionalJoe Woodbury17-Apr-06 21:21 
QuestionImpersonation and Access Rights Pin
Putta_V17-Apr-06 5:28
Putta_V17-Apr-06 5:28 
I need to enumerate network resources from my service and for this i plan to use impersonation.
This is what i did.

LogonUser(username)
ImpersonateLoggedOnUser()

// do networking stuff

RevertToSelf()

when i perform these operations with username = Administrator, the networking code works fine but with

username = xxxx (which belong to the Administrators group), the networking code fails (GetLatError = 2).

What am i doing wrong here ?
As i see the username(xxxx) does not have a few access rights or privileges which the Administrator has to

enumerate network resources. any idea what are those rights or privileges ?

I tried with granting SeNetworkLogonRight to xxxx and it did not work.

any inputs will be helpful.


QuestionLinker Error ?? Pin
jinbabaj17-Apr-06 5:03
jinbabaj17-Apr-06 5:03 
AnswerRe: Linker Error ?? Pin
David Crow17-Apr-06 5:11
David Crow17-Apr-06 5:11 
GeneralRe: Linker Error ?? Pin
jinbabaj17-Apr-06 16:08
jinbabaj17-Apr-06 16:08 
GeneralRe: Linker Error ?? Pin
David Crow18-Apr-06 3:11
David Crow18-Apr-06 3:11 
GeneralRe: Linker Error ?? Pin
jinbabaj17-Apr-06 16:15
jinbabaj17-Apr-06 16:15 
QuestionD3D 2D Texture(PNG File) How to set ColorKey Pin
akira3217-Apr-06 4:24
akira3217-Apr-06 4:24 
QuestionDirect Show webcam Pin
YaronNir17-Apr-06 4:14
YaronNir17-Apr-06 4:14 
Questionproblem with BroadcastSystemMessage() Pin
ashtwin17-Apr-06 4:01
ashtwin17-Apr-06 4:01 
QuestionRe: problem with BroadcastSystemMessage() Pin
David Crow17-Apr-06 4:18
David Crow17-Apr-06 4:18 
AnswerRe: problem with BroadcastSystemMessage() Pin
ashtwin18-Apr-06 20:58
ashtwin18-Apr-06 20:58 
QuestionDebug Assertion Failed Pin
keerthikaaa17-Apr-06 3:09
keerthikaaa17-Apr-06 3:09 
AnswerRe: Debug Assertion Failed Pin
David Crow17-Apr-06 3:29
David Crow17-Apr-06 3:29 
AnswerRe: Debug Assertion Failed Pin
Stephen Hewitt17-Apr-06 4:24
Stephen Hewitt17-Apr-06 4:24 
Question[Message Deleted] Pin
ddmcr17-Apr-06 2:47
ddmcr17-Apr-06 2:47 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
YaronNir17-Apr-06 4:16
YaronNir17-Apr-06 4:16 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
Michael Dunn17-Apr-06 8:02
sitebuilderMichael Dunn17-Apr-06 8:02 
QuestionSlicing in C++ Pin
Krishnatv17-Apr-06 2:44
Krishnatv17-Apr-06 2:44 

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.