Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c48f3b07
Commit
c48f3b07
authored
Apr 03, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ImpersonateLoggedOnUser stub.
parent
76695731
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
security.c
dlls/advapi32/security.c
+12
-3
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/advapi32/advapi32.spec
View file @
c48f3b07
...
...
@@ -117,7 +117,7 @@ debug_channels (advapi crypt reg)
@ stdcall GetTokenInformation(long long ptr long ptr) GetTokenInformation
@ stdcall GetUserNameA(ptr ptr) GetUserNameA
@ stdcall GetUserNameW(ptr ptr) GetUserNameW
@ st
ub
ImpersonateLoggedOnUser
@ st
dcall ImpersonateLoggedOnUser(long)
ImpersonateLoggedOnUser
@ stub ImpersonateNamedPipeClient
@ stdcall ImpersonateSelf(long) ImpersonateSelf
@ stdcall InitializeAcl(ptr long long) InitializeAcl
...
...
dlls/advapi32/security.c
View file @
c48f3b07
...
...
@@ -100,7 +100,7 @@ OpenThreadToken( HANDLE ThreadHandle, DWORD DesiredAccess,
*/
BOOL
WINAPI
AdjustTokenPrivileges
(
HANDLE
TokenHandle
,
BOOL
DisableAllPrivileges
,
LPVOID
NewState
,
DWORD
BufferLength
,
LPVOID
NewState
,
DWORD
BufferLength
,
LPVOID
PreviousState
,
LPDWORD
ReturnLength
)
{
CallWin32ToNt
(
NtAdjustPrivilegesToken
(
TokenHandle
,
DisableAllPrivileges
,
NewState
,
BufferLength
,
PreviousState
,
ReturnLength
));
...
...
@@ -136,7 +136,7 @@ CheckTokenMembership( HANDLE TokenHandle, PSID SidToCheck,
*
*/
BOOL
WINAPI
GetTokenInformation
(
HANDLE
token
,
TOKEN_INFORMATION_CLASS
tokeninfoclass
,
GetTokenInformation
(
HANDLE
token
,
TOKEN_INFORMATION_CLASS
tokeninfoclass
,
LPVOID
tokeninfo
,
DWORD
tokeninfolength
,
LPDWORD
retlen
)
{
CallWin32ToNt
(
NtQueryInformationToken
(
token
,
tokeninfoclass
,
tokeninfo
,
tokeninfolength
,
retlen
));
...
...
@@ -147,7 +147,7 @@ GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
*
* Assigns an "impersonation token" to a thread so it can assume the
* security privledges of another thread or process. Can also remove
* a previously assigned token. Only supported on NT - it's a stub
* a previously assigned token. Only supported on NT - it's a stub
* exactly like this one on Win9X.
*
*/
...
...
@@ -895,6 +895,15 @@ ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
}
/******************************************************************************
* ImpersonateLoggedOnUser [ADVAPI32.@]
*/
BOOL
WINAPI
ImpersonateLoggedOnUser
(
HANDLE
hToken
)
{
FIXME
(
"(%08x):stub returning FALSE
\n
"
,
hToken
);
return
FALSE
;
}
/******************************************************************************
* AccessCheck [ADVAPI32.@]
*
* FIXME check cast LPBOOL to PBOOLEAN
...
...
include/winbase.h
View file @
c48f3b07
...
...
@@ -1303,6 +1303,7 @@ BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
BOOL
WINAPI
IsTextUnicode
(
CONST
LPVOID
lpBuffer
,
int
cb
,
LPINT
lpi
);
BOOL
WINAPI
IsValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
);
BOOL
WINAPI
IsValidSid
(
PSID
);
BOOL
WINAPI
ImpersonateLoggedOnUser
(
HANDLE
);
BOOL
WINAPI
ImpersonateSelf
(
SECURITY_IMPERSONATION_LEVEL
);
BOOL
WINAPI
IsProcessorFeaturePresent
(
DWORD
);
BOOL
WINAPI
LookupAccountSidA
(
LPCSTR
,
PSID
,
LPSTR
,
LPDWORD
,
LPSTR
,
LPDWORD
,
PSID_NAME_USE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment