Click to open or copy the files for the Rcmd sample.
This sample illustrates the new DuplicateTokenEx API for Windows® NT 4.0.
This sample uses the following keywords:
addaccessallowedace; buildnamedpipeacl; closehandle; connectnamedpipe; createfile; createnamedpipe; createprocessasuser; createthread; disconnectnamedpipe; displaylasterror; displaywinerror; duplicatetokenex; formatmessagea; fprintf; getcurrentthread; getcurrentthreadid; getlasterror; getprocesswindowstation; getsidlengthrequired; getsidsubauthority; getstdhandle; getthreaddesktop; impersonatenamedpipeclient; initializeacl; initializesecuritydescriptor; initializesid; localfree; makelangid; openthreadtoken; printf; readfile; readfunc; reverttoself; seterrormode; setsecuritydescriptordacl; setupnamedpipes; setuserobjectsecurity; setwinstadesktopsecurity; terminatethread; text; waitforsingleobject; waitnamedpipe; writefile; writefunc; wsprintf