Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4f3acf31
Commit
4f3acf31
authored
Jun 24, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Jun 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add initial implementation for GetWindowsAccountDomainSid.
parent
54b3973e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
4 deletions
+50
-4
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
security.c
dlls/advapi32/security.c
+46
-0
security.c
dlls/advapi32/tests/security.c
+1
-1
api-ms-win-security-base-l1-1-0.spec
...security-base-l1-1-0/api-ms-win-security-base-l1-1-0.spec
+1
-1
api-ms-win-security-base-l1-2-0.spec
...security-base-l1-2-0/api-ms-win-security-base-l1-2-0.spec
+1
-1
No files found.
dlls/advapi32/advapi32.spec
View file @
4f3acf31
...
...
@@ -363,7 +363,7 @@
@ stdcall GetTrusteeTypeW(ptr)
@ stdcall GetUserNameA(ptr ptr)
@ stdcall GetUserNameW(ptr ptr)
# @ stub GetWindowsAccountDomainSid
@ stdcall GetWindowsAccountDomainSid(ptr ptr ptr)
# @ stub I_QueryTagInformation
# @ stub I_ScGetCurrentGroupStateW
# @ stub I_ScIsSecurityProcess
...
...
dlls/advapi32/security.c
View file @
4f3acf31
...
...
@@ -1538,6 +1538,52 @@ BOOL WINAPI SetSecurityDescriptorControl( PSECURITY_DESCRIPTOR pSecurityDescript
pSecurityDescriptor
,
ControlBitsOfInterest
,
ControlBitsToSet
)
);
}
/******************************************************************************
* GetWindowsAccountDomainSid [ADVAPI32.@]
*/
BOOL
WINAPI
GetWindowsAccountDomainSid
(
PSID
sid
,
PSID
domain_sid
,
DWORD
*
size
)
{
SID_IDENTIFIER_AUTHORITY
domain_ident
=
{
SECURITY_NT_AUTHORITY
};
DWORD
required_size
;
int
i
;
FIXME
(
"(%p %p %p): semi-stub
\n
"
,
sid
,
domain_sid
,
size
);
if
(
!
sid
||
!
IsValidSid
(
sid
))
{
SetLastError
(
ERROR_INVALID_SID
);
return
FALSE
;
}
if
(
!
size
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
*
GetSidSubAuthorityCount
(
sid
)
<
4
)
{
SetLastError
(
ERROR_INVALID_SID
);
return
FALSE
;
}
required_size
=
GetSidLengthRequired
(
4
);
if
(
*
size
<
required_size
||
!
domain_sid
)
{
*
size
=
required_size
;
SetLastError
(
domain_sid
?
ERROR_INSUFFICIENT_BUFFER
:
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
InitializeSid
(
domain_sid
,
&
domain_ident
,
4
);
for
(
i
=
0
;
i
<
4
;
i
++
)
*
GetSidSubAuthority
(
domain_sid
,
i
)
=
*
GetSidSubAuthority
(
sid
,
i
);
*
size
=
required_size
;
return
TRUE
;
}
/* ##############################
###### ACL FUNCTIONS ######
##############################
...
...
dlls/advapi32/tests/security.c
View file @
4f3acf31
...
...
@@ -5938,7 +5938,7 @@ static void test_GetWindowsAccountDomainSid(void)
if
(
!
pGetWindowsAccountDomainSid
)
{
skip
(
"GetWindowsAccountDomainSid not available
\n
"
);
win_
skip
(
"GetWindowsAccountDomainSid not available
\n
"
);
return
;
}
...
...
dlls/api-ms-win-security-base-l1-1-0/api-ms-win-security-base-l1-1-0.spec
View file @
4f3acf31
...
...
@@ -57,7 +57,7 @@
@ stdcall GetSidSubAuthority(ptr long) advapi32.GetSidSubAuthority
@ stdcall GetSidSubAuthorityCount(ptr) advapi32.GetSidSubAuthorityCount
@ stdcall GetTokenInformation(long long ptr long ptr) advapi32.GetTokenInformation
@ st
ub
GetWindowsAccountDomainSid
@ st
dcall GetWindowsAccountDomainSid(ptr ptr ptr) advapi32.
GetWindowsAccountDomainSid
@ stdcall ImpersonateAnonymousToken(long) advapi32.ImpersonateAnonymousToken
@ stdcall ImpersonateLoggedOnUser(long) advapi32.ImpersonateLoggedOnUser
@ stdcall ImpersonateSelf(long) advapi32.ImpersonateSelf
...
...
dlls/api-ms-win-security-base-l1-2-0/api-ms-win-security-base-l1-2-0.spec
View file @
4f3acf31
...
...
@@ -63,7 +63,7 @@
@ stdcall GetSidSubAuthority(ptr long) advapi32.GetSidSubAuthority
@ stdcall GetSidSubAuthorityCount(ptr) advapi32.GetSidSubAuthorityCount
@ stdcall GetTokenInformation(long long ptr long ptr) advapi32.GetTokenInformation
@ st
ub
GetWindowsAccountDomainSid
@ st
dcall GetWindowsAccountDomainSid(ptr ptr ptr) advapi32.
GetWindowsAccountDomainSid
@ stdcall ImpersonateAnonymousToken(long) advapi32.ImpersonateAnonymousToken
@ stdcall ImpersonateLoggedOnUser(long) advapi32.ImpersonateLoggedOnUser
@ stdcall ImpersonateSelf(long) advapi32.ImpersonateSelf
...
...
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