Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: C Pointers in C# Pin
Ravadre29-Dec-08 4:53
Ravadre29-Dec-08 4:53 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 5:35
Teuz29-Dec-08 5:35 
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 6:07
Ravadre29-Dec-08 6:07 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 6:46
Teuz29-Dec-08 6:46 
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 6:58
Ravadre29-Dec-08 6:58 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 8:02
Teuz29-Dec-08 8:02 
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 8:10
Ravadre29-Dec-08 8:10 
Question'using' directive/assembly reference Pin
queries36529-Dec-08 3:55
queries36529-Dec-08 3:55 
Hi,
In Windows Vista, while calling a process from a service......I am using CreateProcessAsUser()
( If better way possible, please suggest )

As you know, while using CreateProcessAsUser(), we need a token. I am obtaining this using DuplicateTokenEx() along with other functions.
It's syntax is : bool DuplicateTokenEx(.......,ref SECURITY_ATTRIBUTES lpTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType,........);

When I declare this, I get an error saying,
"The type or namespace name 'SECURITY_ATTRIBUTES' could not be found (are you missing a using directive or an assembly reference?)"

Same applies to SECURITY_IMPERSONATION_LEVEL and TOKEN_TYPE.


Questions :
1. Can anybody please let me know the probable reason for this and also the solution ?
2. Which directive/assembly is this referring to?


Awaiting your reply......

Thank You
AnswerRe: 'using' directive/assembly reference Pin
Dave Kreskowiak29-Dec-08 5:14
mveDave Kreskowiak29-Dec-08 5:14 
GeneralRe: 'using' directive/assembly reference Pin
Mark Salsbery29-Dec-08 5:23
Mark Salsbery29-Dec-08 5:23 
AnswerRe: 'using' directive/assembly reference Pin
Mark Salsbery29-Dec-08 5:22
Mark Salsbery29-Dec-08 5:22 
QuestionUSER CONTROL Pin
kirandilip29-Dec-08 3:20
kirandilip29-Dec-08 3:20 
AnswerRe: USER CONTROL Pin
Christian Graus29-Dec-08 3:40
protectorChristian Graus29-Dec-08 3:40 
AnswerRe: USER CONTROL Pin
EliottA29-Dec-08 4:20
EliottA29-Dec-08 4:20 
AnswerRe: USER CONTROL Pin
Member 447035429-Dec-08 8:23
Member 447035429-Dec-08 8:23 
AnswerRe: USER CONTROL Pin
#realJSOP29-Dec-08 9:07
professional#realJSOP29-Dec-08 9:07 
Questionsend Attachment Pin
Abdul Rahman Hamidy29-Dec-08 2:17
Abdul Rahman Hamidy29-Dec-08 2:17 
AnswerRe: send Attachment Pin
Giorgi Dalakishvili29-Dec-08 2:40
mentorGiorgi Dalakishvili29-Dec-08 2:40 
AnswerRe: send Attachment Pin
Brij29-Dec-08 2:41
mentorBrij29-Dec-08 2:41 
GeneralRe: send Attachment Pin
Abdul Rahman Hamidy29-Dec-08 6:18
Abdul Rahman Hamidy29-Dec-08 6:18 
AnswerRe: send Attachment Pin
Scott Dorman29-Dec-08 6:01
professionalScott Dorman29-Dec-08 6:01 
GeneralRe: send Attachment Pin
Abdul Rahman Hamidy29-Dec-08 6:31
Abdul Rahman Hamidy29-Dec-08 6:31 
GeneralRe: send Attachment Pin
Scott Dorman29-Dec-08 6:36
professionalScott Dorman29-Dec-08 6:36 
GeneralRe: send Attachment Pin
Abdul Rahman Hamidy29-Dec-08 6:55
Abdul Rahman Hamidy29-Dec-08 6:55 
QuestionDelete a row from dataset using delete method??? Pin
SureshRocks29-Dec-08 2:10
SureshRocks29-Dec-08 2:10 

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.