http://bugs.winehq.org/show_bug.cgi?id=13001
Summary: LookupPrivilegeValue Product: Wine Version: 0.9.61. Platform: All OS/Version: All Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: russiane39@gmail.com
I think many games suffer from not availability of that function in wine, http://msdn.microsoft.com/en-us/library/aa379180(VS.85).aspx
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #1 from Austin English austinenglish@gmail.com 2008-05-05 20:29:23 --- Can you give an example?
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #2 from Michael Kosarev russiane39@gmail.com 2008-05-05 20:32:26 --- Various sniffers, some private anti-cheat systems for Counter Strike.
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #3 from Michael Kosarev russiane39@gmail.com 2008-05-05 20:37:17 --- Here is example portion of code, utilizes that WinApi function: procedure EnableDebugPrivileges; var hToken: THandle; tp: TTokenPrivileges; DebugNameValue: Int64; ret: Cardinal; begin OpenProcessToken(GetCurrentProcess, TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY, hToken); LookupPrivilegeValue(nil, 'SeDebugPrivilege', DebugNameValue); tp.PrivilegeCount:=1; tp.Privileges[0].Luid:=DebugNameValue; tp.Privileges[0].Attributes:=SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges(hToken, False, tp, sizeof(tp), nil, ret); end;
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #4 from Austin English austinenglish@gmail.com 2008-05-05 20:44:58 --- (In reply to comment #3)
Here is example portion of code, utilizes that WinApi function: procedure EnableDebugPrivileges; var hToken: THandle; tp: TTokenPrivileges; DebugNameValue: Int64; ret: Cardinal; begin OpenProcessToken(GetCurrentProcess, TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY, hToken); LookupPrivilegeValue(nil, 'SeDebugPrivilege', DebugNameValue); tp.PrivilegeCount:=1; tp.Privileges[0].Luid:=DebugNameValue; tp.Privileges[0].Attributes:=SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges(hToken, False, tp, sizeof(tp), nil, ret); end;
Any chance you can flesh that out into a small compiled program to test on wine/windows? Or better yet, port it into a conformance test...
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #5 from Michael Kosarev russiane39@gmail.com 2008-05-05 21:11:19 --- http://msdn.microsoft.com/en-us/library/aa446619(VS.85).aspx - simple example
http://bugs.winehq.org/show_bug.cgi?id=13001
--- Comment #6 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-05 22:03:29 --- LookupPrivilegeValue is implemented in Wine, what's exactly the problem?
http://bugs.winehq.org/show_bug.cgi?id=13001
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #7 from Austin English austinenglish@gmail.com 2008-11-03 21:24:04 --- Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=13001
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Austin English austinenglish@gmail.com 2008-11-03 21:24:20 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=13001
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other
--- Comment #9 from Austin English austinenglish@gmail.com 2012-02-23 15:03:47 CST --- Removing deprecated 'All' Platform/OS.