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
2904f543
Commit
2904f543
authored
Mar 21, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Mar 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add a stub for CreateRestrictedToken.
parent
56b2ab24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
2 deletions
+43
-2
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
security.c
dlls/advapi32/security.c
+40
-0
winbase.h
include/winbase.h
+1
-0
winnt.h
include/winnt.h
+1
-1
No files found.
dlls/advapi32/advapi32.spec
View file @
2904f543
...
...
@@ -97,7 +97,7 @@
# @ stub CreateProcessAsUserSecure
@ stdcall CreateProcessAsUserW(long str str ptr ptr long long ptr str ptr ptr)
@ stdcall CreateProcessWithLogonW(wstr wstr wstr long wstr wstr long ptr wstr ptr ptr)
# @ stub CreateRestrictedToken
@ stdcall CreateRestrictedToken(long long long ptr long ptr long ptr ptr)
@ stdcall CreateServiceA(long ptr ptr long long long long ptr ptr ptr ptr ptr ptr)
@ stdcall CreateServiceW (long ptr ptr long long long long ptr ptr ptr ptr ptr ptr)
# @ stub CreateTraceInstanceId
...
...
dlls/advapi32/security.c
View file @
2904f543
...
...
@@ -734,6 +734,46 @@ BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token)
ThreadImpersonationToken
,
&
token
,
sizeof
token
));
}
/*************************************************************************
* CreateRestrictedToken [ADVAPI32.@]
*
* Create a new more restricted token from an existing token.
*
* PARAMS
* baseToken [I] Token to base the new restricted token on
* flags [I] Options
* nDisableSids [I] Length of disableSids array
* disableSids [I] Array of SIDs to disable in the new token
* nDeletePrivs [I] Length of deletePrivs array
* deletePrivs [I] Array of privileges to delete in the new token
* nRestrictSids [I] Length of restrictSids array
* restrictSids [I] Array of SIDs to restrict in the new token
* newToken [O] Address where the new token is stored
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
CreateRestrictedToken
(
HANDLE
baseToken
,
DWORD
flags
,
DWORD
nDisableSids
,
PSID_AND_ATTRIBUTES
disableSids
,
DWORD
nDeletePrivs
,
PLUID_AND_ATTRIBUTES
deletePrivs
,
DWORD
nRestrictSids
,
PSID_AND_ATTRIBUTES
restrictSids
,
PHANDLE
newToken
)
{
FIXME
(
"(%p, 0x%x, %u, %p, %u, %p, %u, %p, %p): stub
\n
"
,
baseToken
,
flags
,
nDisableSids
,
disableSids
,
nDeletePrivs
,
deletePrivs
,
nRestrictSids
,
restrictSids
,
newToken
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/* ##############################
###### SID FUNCTIONS ######
##############################
...
...
include/winbase.h
View file @
2904f543
...
...
@@ -1375,6 +1375,7 @@ WINADVAPI BOOL WINAPI CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURIT
WINADVAPI
BOOL
WINAPI
CreateProcessAsUserW
(
HANDLE
,
LPCWSTR
,
LPWSTR
,
LPSECURITY_ATTRIBUTES
,
LPSECURITY_ATTRIBUTES
,
BOOL
,
DWORD
,
LPVOID
,
LPCWSTR
,
LPSTARTUPINFOW
,
LPPROCESS_INFORMATION
);
#define CreateProcessAsUser WINELIB_NAME_AW(CreateProcessAsUser)
WINBASEAPI
HANDLE
WINAPI
CreateRemoteThread
(
HANDLE
,
LPSECURITY_ATTRIBUTES
,
SIZE_T
,
LPTHREAD_START_ROUTINE
,
LPVOID
,
DWORD
,
LPDWORD
);
WINADVAPI
BOOL
WINAPI
CreateRestrictedToken
(
HANDLE
,
DWORD
,
DWORD
,
PSID_AND_ATTRIBUTES
,
DWORD
,
PLUID_AND_ATTRIBUTES
,
DWORD
,
PSID_AND_ATTRIBUTES
,
PHANDLE
);
WINBASEAPI
HANDLE
WINAPI
CreateSemaphoreA
(
LPSECURITY_ATTRIBUTES
,
LONG
,
LONG
,
LPCSTR
);
WINBASEAPI
HANDLE
WINAPI
CreateSemaphoreW
(
LPSECURITY_ATTRIBUTES
,
LONG
,
LONG
,
LPCWSTR
);
#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
...
...
include/winnt.h
View file @
2904f543
...
...
@@ -3535,7 +3535,7 @@ typedef struct {
typedef
struct
_SID_AND_ATTRIBUTES
{
PSID
Sid
;
DWORD
Attributes
;
}
SID_AND_ATTRIBUTES
;
}
SID_AND_ATTRIBUTES
,
*
PSID_AND_ATTRIBUTES
;
/* security entities */
#define SECURITY_NULL_RID (0x00000000L)
...
...
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