[pso] [tema1][win] GetUserOf
Mihai Bucicoiu
mihai.bucicoiu at gmail.com
Wed Apr 1 16:13:57 EEST 2009
nu prea inteleg cum se folosesc GetUserOf, si getCurrentuser;
eu am facut asa, 2 token-uri pentru user curent si cel al unui pid
TOKEN_USER **user;
TOKEN_USER **user_current;
user = ExAllocatePoolWithTag(NonPagedPool,sizeof(TOKEN_USER *),'1usr');
user_current = ExAllocatePoolWithTag(NonPagedPool,sizeof(TOKEN_USER
*),'2usr');
in mom in care apelez ceva de genul
*
if (GetUserOf(pid,user) != STATUS_SUCCESS)
{
return STATUS_INVALID_PARAMETER;
}*
intra mereu pe return .... unde gresesc ?
mentionez ca pid = 0, syscall = primu din teste NtOpenMutant
Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090401/78ad791e/attachment-0001.htm>
More information about the pso
mailing list