Finally solved some advapi32 nonsense:

- advapi32 doesn't import any more from itself
 - smarter stubbing (look at the files modified in this commit)

svn path=/trunk/; revision=4106
This commit is contained in:
KJK::Hyperion 2003-02-02 19:24:44 +00:00
parent 2eabc8e38d
commit a9d96a9cfc
3 changed files with 174 additions and 611 deletions

View file

@ -1,11 +1,11 @@
; $Id: advapi32.def,v 1.5 1999/10/26 19:47:02 ea Exp $ $Id: advapi32.def,v 1.6 2003/02/02 19:24:43 hyperion Exp $
;
; advapi32.def advapi32.def
;
; ReactOS Operating System ReactOS Operating System
;
; Some stack sizes are taken from Ander Norlander's .DEFs. Some stack sizes are taken from Ander Norlander's .DEFs.
;
LIBRARY advapi32.dll LIBRARY advapi32.dll
EXPORTS EXPORTS
AbortSystemShutdownA@4 AbortSystemShutdownA@4
@ -223,8 +223,8 @@ LsaFreeMemory@4
LsaGetQuotasForAccount@8 LsaGetQuotasForAccount@8
LsaGetSystemAccessAccount@8 LsaGetSystemAccessAccount@8
LsaGetUserName@8 LsaGetUserName@8
LsaICLookupNames@28 LsaICLookupNames@32
LsaICLookupSids@28 LsaICLookupSids@32
LsaLookupNames@20 LsaLookupNames@20
LsaLookupPrivilegeDisplayName@16 LsaLookupPrivilegeDisplayName@16
LsaLookupPrivilegeName@12 LsaLookupPrivilegeName@12
@ -235,11 +235,11 @@ LsaOpenAccount@16
LsaOpenPolicy@16 LsaOpenPolicy@16
LsaOpenSecret@16 LsaOpenSecret@16
LsaOpenTrustedDomain@16 LsaOpenTrustedDomain@16
LsaQueryInfoTrustedDomain@12
LsaQueryInformationPolicy@12 LsaQueryInformationPolicy@12
LsaQueryInfoTrustedDomain@12
LsaQuerySecret@20 LsaQuerySecret@20
LsaQuerySecurityObject@12 LsaQuerySecurityObject@12
LsaQueryTrustedDomainInfo@16 LsaQueryTrustedDomainInfo@20
LsaRemoveAccountRights@20 LsaRemoveAccountRights@20
LsaRemovePrivilegesFromAccount@12 LsaRemovePrivilegesFromAccount@12
LsaRetrievePrivateData@12 LsaRetrievePrivateData@12

View file

@ -1,4 +1,4 @@
; $Id: advapi32.edf,v 1.18 2003/01/15 20:05:50 robd Exp $ ; $Id: advapi32.edf,v 1.19 2003/02/02 19:24:43 hyperion Exp $
; ;
; advapi32.edf ; advapi32.edf
; ;
@ -203,53 +203,67 @@ LookupPrivilegeValueA=LookupPrivilegeValueA@12
LookupPrivilegeValueW=LookupPrivilegeValueW@12 LookupPrivilegeValueW=LookupPrivilegeValueW@12
;LookupSecurityDescriptorPartsA=LookupSecurityDescriptorPartsA@28 ;LookupSecurityDescriptorPartsA=LookupSecurityDescriptorPartsA@28
;LookupSecurityDescriptorPartsW=LookupSecurityDescriptorPartsW@28 ;LookupSecurityDescriptorPartsW=LookupSecurityDescriptorPartsW@28
;LsaAddAccountRights=LsaAddAccountRights@16
;LsaAddPrivilegesToAccount=LsaAddPrivilegesToAccount@8 ; 1 parameter stubs
;LsaClearAuditLog=LsaClearAuditLog@4 LsaClearAuditLog=_LsaStub1@4
LsaClose=LsaClose@4 LsaClose=_LsaStub1@4
;LsaCreateAccount=LsaCreateAccount@16 LsaDelete=_LsaStub1@4
;LsaCreateSecret=LsaCreateSecret@16 LsaFreeMemory=_LsaStub1@4
;LsaCreateTrustedDomain=LsaCreateTrustedDomain@16
;LsaDelete=LsaDelete@4 ; 2 parameters stubs
;LsaDeleteTrustedDomain=LsaDeleteTrustedDomain@8 LsaAddPrivilegesToAccount=_LsaStub2@8
;LsaEnumerateAccountRights=LsaEnumerateAccountRights@16 LsaDeleteTrustedDomain=_LsaStub2@8
;LsaEnumerateAccounts=LsaEnumerateAccounts@20 LsaEnumeratePrivilegesOfAccount=_LsaStub2@8
;LsaEnumerateAccountsWithUserRight=LsaEnumerateAccountsWithUserRight@16 LsaGetQuotasForAccount=_LsaStub2@8
;LsaEnumeratePrivileges=LsaEnumeratePrivileges@20 LsaGetSystemAccessAccount=_LsaStub2@8
;LsaEnumeratePrivilegesOfAccount=LsaEnumeratePrivilegesOfAccount@8 LsaGetUserName=_LsaStub2@8
;LsaEnumerateTrustedDomains=LsaEnumerateTrustedDomains@20 LsaSetQuotasForAccount=_LsaStub2@8
LsaFreeMemory=LsaFreeMemory@4 LsaSetSystemAccessAccount=_LsaStub2@8
;LsaGetQuotasForAccount=LsaGetQuotasForAccount@8
;LsaGetSystemAccessAccount=LsaGetSystemAccessAccount@8 ; 3 parameters stubs
;LsaGetUserName=LsaGetUserName@8 LsaLookupPrivilegeName=_LsaStub3@12
;LsaICLookupNames=LsaICLookupNames@28 LsaLookupPrivilegeValue=_LsaStub3@12
;LsaICLookupSids=LsaICLookupSids@28 LsaQueryInfoTrustedDomain=_LsaStub3@12
;LsaLookupNames=LsaLookupNames@20 LsaQueryInformationPolicy=_LsaStub3@12
;LsaLookupPrivilegeDisplayName=LsaLookupPrivilegeDisplayName@16 LsaQuerySecurityObject=_LsaStub3@12
;LsaLookupPrivilegeName=LsaLookupPrivilegeName@12 LsaRemovePrivilegesFromAccount=_LsaStub3@12
;LsaLookupPrivilegeValue=LsaLookupPrivilegeValue@12 LsaRetrievePrivateData=_LsaStub3@12
;LsaLookupSids=LsaLookupSids@20 LsaSetInformationPolicy=_LsaStub3@12
LsaNtStatusToWinError=LsaNtStatusToWinError@4 LsaSetInformationTrustedDomain=_LsaStub3@12
;LsaOpenAccount=LsaOpenAccount@16 LsaSetSecret=_LsaStub3@12
LsaOpenPolicy=LsaOpenPolicy@16 LsaSetSecurityObject=_LsaStub3@12
;LsaOpenSecret=LsaOpenSecret@16 LsaStorePrivateData=_LsaStub3@12
;LsaOpenTrustedDomain=LsaOpenTrustedDomain@16
;LsaQueryInfoTrustedDomain=LsaQueryInfoTrustedDomain@12 ; 4 parameters stubs
LsaQueryInformationPolicy=LsaQueryInformationPolicy@12 LsaAddAccountRights=_LsaStub4@16
;LsaQuerySecret=LsaQuerySecret@20 LsaCreateAccount=_LsaStub4@16
;LsaQuerySecurityObject=LsaQuerySecurityObject@12 LsaCreateSecret=_LsaStub4@16
;LsaQueryTrustedDomainInfo=LsaQueryTrustedDomainInfo@16 LsaCreateTrustedDomain=_LsaStub4@16
;LsaRemoveAccountRights=LsaRemoveAccountRights@20 LsaEnumerateAccountRights=_LsaStub4@16
;LsaRemovePrivilegesFromAccount=LsaRemovePrivilegesFromAccount@12 LsaEnumerateAccountsWithUserRight=_LsaStub4@16
;LsaRetrievePrivateData=LsaRetrievePrivateData@12 LsaLookupPrivilegeDisplayName=_LsaStub4@16
;LsaSetInformationPolicy=LsaSetInformationPolicy@12 LsaOpenAccount=_LsaStub4@16
;LsaSetInformationTrustedDomain=LsaSetInformationTrustedDomain@12 LsaOpenPolicy=_LsaStub4@16
;LsaSetQuotasForAccount=LsaSetQuotasForAccount@8 LsaOpenSecret=_LsaStub4@16
;LsaSetSecret=LsaSetSecret@12 LsaOpenTrustedDomain=_LsaStub4@16
;LsaSetSecurityObject=LsaSetSecurityObject@12 LsaSetTrustedDomainInformation=_LsaStub4@16
;LsaSetSystemAccessAccount=LsaSetSystemAccessAccount@8
;LsaSetTrustedDomainInformation=LsaSetTrustedDomainInformation@16 ; 5 parameters stubs
;LsaStorePrivateData=LsaStorePrivateData@12 LsaEnumerateAccounts=_LsaStub5@20
LsaEnumeratePrivileges=_LsaStub5@20
LsaEnumerateTrustedDomains=_LsaStub5@20
LsaLookupNames=_LsaStub5@20
LsaLookupSids=_LsaStub5@20
LsaQuerySecret=_LsaStub5@20
LsaQueryTrustedDomainInfo=_LsaStub5@20
LsaRemoveAccountRights=_LsaStub5@20
; 8 parameters stubs
LsaICLookupNames=_LsaStub8@32
LsaICLookupSids=_LsaStub8@32
LsaNtStatusToWinError=NTDLL.RtlNtStatusToDosError
MakeAbsoluteSD=MakeAbsoluteSD@44 MakeAbsoluteSD=MakeAbsoluteSD@44
MakeSelfRelativeSD=MakeSelfRelativeSD@12 MakeSelfRelativeSD=MakeSelfRelativeSD@12
MapGenericMask=MapGenericMask@8 MapGenericMask=MapGenericMask@8

View file

@ -1,4 +1,4 @@
/* $Id: lsa.c,v 1.4 2002/09/08 10:22:37 chorns Exp $ /* $Id: lsa.c,v 1.5 2003/02/02 19:24:44 hyperion Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -8,579 +8,128 @@
* UPDATE HISTORY: * UPDATE HISTORY:
* 19990322 EA created * 19990322 EA created
* 19990515 EA stubs * 19990515 EA stubs
* 20030202 KJK compressed stubs
*/ */
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
/*
/********************************************************************** LsaClearAuditLog
* LsaAddAccountRights LsaClose
*/ LsaDelete
INT LsaFreeMemory
STDCALL */
LsaAddAccountRights (VOID) NTSTATUS STDCALL _LsaStub1(ULONG_PTR Unknown0)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/*
/********************************************************************** LsaAddPrivilegesToAccount
* LsaAddPrivilegesToAccount LsaDeleteTrustedDomain
*/ LsaEnumeratePrivilegesOfAccount
INT LsaGetQuotasForAccount
STDCALL LsaGetSystemAccessAccount
LsaAddPrivilegesToAccount (VOID) LsaGetUserName
LsaSetQuotasForAccount
LsaSetSystemAccessAccount
*/
NTSTATUS STDCALL _LsaStub2(ULONG_PTR Unknown0, ULONG_PTR Unknown1)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/*
/********************************************************************** LsaLookupPrivilegeName
* LsaClearAuditLog LsaLookupPrivilegeValue
*/ LsaQueryInfoTrustedDomain
INT LsaQueryInformationPolicy
STDCALL LsaQuerySecurityObject
LsaClearAuditLog (VOID) LsaRemovePrivilegesFromAccount
LsaRetrievePrivateData
LsaSetInformationPolicy
LsaSetInformationTrustedDomain
LsaSetSecret
LsaSetSecurityObject
LsaStorePrivateData
*/
NTSTATUS STDCALL _LsaStub3
(
ULONG_PTR Unknown0,
ULONG_PTR Unknown1,
ULONG_PTR Unknown2
)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/*
/********************************************************************** LsaAddAccountRights
* LsaClose LsaCreateAccount
*/ LsaCreateSecret
INT LsaCreateTrustedDomain
STDCALL LsaEnumerateAccountRights
LsaClose (VOID) LsaEnumerateAccountsWithUserRight
LsaLookupPrivilegeDisplayName
LsaOpenAccount
LsaOpenPolicy
LsaOpenSecret
LsaOpenTrustedDomain
LsaSetTrustedDomainInformation
*/
NTSTATUS STDCALL _LsaStub4
(
ULONG_PTR Unknown0,
ULONG_PTR Unknown1,
ULONG_PTR Unknown2,
ULONG_PTR Unknown3
)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/*
/********************************************************************** LsaEnumerateAccounts
* LsaCreateAccount LsaEnumeratePrivileges
*/ LsaEnumerateTrustedDomains
INT LsaLookupNames
STDCALL LsaLookupSids
LsaCreateAccount ( LsaQuerySecret
DWORD Unknown0, LsaQueryTrustedDomainInfo
DWORD Unknown1, LsaRemoveAccountRights
DWORD Unknown2, */
DWORD Unknown3 NTSTATUS STDCALL _LsaStub5
) (
ULONG_PTR Unknown0,
ULONG_PTR Unknown1,
ULONG_PTR Unknown2,
ULONG_PTR Unknown3,
ULONG_PTR Unknown4
)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/*
/********************************************************************** LsaICLookupNames
* LsaCreateSecret LsaICLookupSids
*/ */
INT NTSTATUS STDCALL _LsaStub8
STDCALL (
LsaCreateSecret (VOID) ULONG_PTR Unknown0,
ULONG_PTR Unknown1,
ULONG_PTR Unknown2,
ULONG_PTR Unknown3,
ULONG_PTR Unknown4,
ULONG_PTR Unknown5,
ULONG_PTR Unknown6,
ULONG_PTR Unknown7
)
{ {
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return STATUS_NOT_IMPLEMENTED;
return 0;
} }
/**********************************************************************
* LsaCreateTrustedDomain
*/
INT
STDCALL
LsaCreateTrustedDomain (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaDelete
*/
INT
STDCALL
LsaDelete (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaDeleteTrustedDomain
*/
INT
STDCALL
LsaDeleteTrustedDomain (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumerateAccountRights
*/
INT
STDCALL
LsaEnumerateAccountRights (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumerateAccounts
*/
INT
STDCALL
LsaEnumerateAccounts (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumerateAccountsWithUserRight
*/
INT
STDCALL
LsaEnumerateAccountsWithUserRight (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumeratePrivileges
*/
INT
STDCALL
LsaEnumeratePrivileges (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumeratePrivilegesOfAccount
*/
INT
STDCALL
LsaEnumeratePrivilegesOfAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaEnumerateTrustedDomains
*/
INT
STDCALL
LsaEnumerateTrustedDomains (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaFreeMemory
*/
INT
STDCALL
LsaFreeMemory (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaGetQuotasForAccount
*/
INT
STDCALL
LsaGetQuotasForAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaGetSystemAccessAccount
*/
INT
STDCALL
LsaGetSystemAccessAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaGetUserName
*/
INT
STDCALL
LsaGetUserName (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaICLookupNames
*/
INT
STDCALL
LsaICLookupNames (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaICLookupSids
*/
INT
STDCALL
LsaICLookupSids (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaLookupNames
*/
INT
STDCALL
LsaLookupNames (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaLookupPrivilegeDisplayName
*/
INT
STDCALL
LsaLookupPrivilegeDisplayName (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaLookupPrivilegeName
*/
INT
STDCALL
LsaLookupPrivilegeName (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaLookupPrivilegeValue
*/
INT
STDCALL
LsaLookupPrivilegeValue (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaLookupSids
*/
INT
STDCALL
LsaLookupSids (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaNtStatusToWinError
*/
INT
STDCALL
LsaNtStatusToWinError (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaOpenAccount
*/
INT
STDCALL
LsaOpenAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaOpenPolicy
*/
INT
STDCALL
LsaOpenPolicy (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaOpenSecret
*/
INT
STDCALL
LsaOpenSecret (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaOpenTrustedDomain
*/
INT
STDCALL
LsaOpenTrustedDomain (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaQueryInfoTrustedDomain
*/
INT
STDCALL
LsaQueryInfoTrustedDomain (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaQueryInformationPolicy
*/
INT
STDCALL
LsaQueryInformationPolicy (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaQuerySecret
*/
INT
STDCALL
LsaQuerySecret (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaQuerySecurityObject
*/
INT
STDCALL
LsaQuerySecurityObject (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaQueryTrustedDomainInfo
*/
INT
STDCALL
LsaQueryTrustedDomainInfo (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaRemoveAccountRights
*/
INT
STDCALL
LsaRemoveAccountRights (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaRemovePrivilegesFromAccount
*/
INT
STDCALL
LsaRemovePrivilegesFromAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaRetrievePrivateData
*/
INT
STDCALL
LsaRetrievePrivateData (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetInformationPolicy
*/
INT
STDCALL
LsaSetInformationPolicy (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetInformationTrustedDomain
*/
INT
STDCALL
LsaSetInformationTrustedDomain (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetQuotasForAccount
*/
INT
STDCALL
LsaSetQuotasForAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetSecret
*/
INT
STDCALL
LsaSetSecret (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetSecurityObject
*/
INT
STDCALL
LsaSetSecurityObject (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetSystemAccessAccount
*/
INT
STDCALL
LsaSetSystemAccessAccount (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaSetTrustedDomainInformation
*/
INT
STDCALL
LsaSetTrustedDomainInformation (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/**********************************************************************
* LsaStorePrivateData
*/
INT
STDCALL
LsaStorePrivateData (VOID)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/* EOF */ /* EOF */