Implemented AllocateLocallyUniqueId().

svn path=/trunk/; revision=1978
This commit is contained in:
Eric Kohl 2001-06-17 20:20:21 +00:00
parent 1731f27560
commit fdbabc8ad9
3 changed files with 38 additions and 28 deletions

View file

@ -1,4 +1,4 @@
; $Id: advapi32.edf,v 1.12 2001/03/17 22:05:25 ea Exp $ ; $Id: advapi32.edf,v 1.13 2001/06/17 20:20:00 ekohl Exp $
; ;
; advapi32.def ; advapi32.def
; ;
@ -20,7 +20,7 @@ AddAuditAccessAce=AddAuditAccessAce@24
AdjustTokenGroups=AdjustTokenGroups@24 AdjustTokenGroups=AdjustTokenGroups@24
AdjustTokenPrivileges=AdjustTokenPrivileges@24 AdjustTokenPrivileges=AdjustTokenPrivileges@24
AllocateAndInitializeSid=AllocateAndInitializeSid@44 AllocateAndInitializeSid=AllocateAndInitializeSid@44
;AllocateLocallyUniqueId=AllocateLocallyUniqueId@4 AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
;AreAllAccessesGranted=AreAllAccessesGranted@8 ;AreAllAccessesGranted=AreAllAccessesGranted@8
;AreAnyAccessesGranted=AreAnyAccessesGranted@8 ;AreAnyAccessesGranted=AreAnyAccessesGranted@8
;BackupEventLogA=BackupEventLogA@8 ;BackupEventLogA=BackupEventLogA@8

View file

@ -1,4 +1,4 @@
/* $Id: dllmain.c,v 1.2 2000/09/05 22:59:58 ekohl Exp $ /* $Id: dllmain.c,v 1.3 2001/06/17 20:20:21 ekohl 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
@ -12,32 +12,30 @@
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <windows.h> #include <windows.h>
//#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
INT INT STDCALL
STDCALL DllMain(PVOID hinstDll,
DllMain(
PVOID hinstDll,
ULONG dwReason, ULONG dwReason,
PVOID reserved PVOID reserved)
)
{ {
DPRINT1("ADVAPI32: DllMain() called\n"); DPRINT("ADVAPI32: DllMain() called\n");
switch (dwReason) switch (dwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls (hinstDll); DisableThreadLibraryCalls(hinstDll);
RegInitialize (); RegInitialize();
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
RegCleanup (); RegCleanup();
break; break;
} }
DPRINT1("ADVAPI32: DllMain() done\n"); DPRINT1("ADVAPI32: DllMain() done\n");
return TRUE; return TRUE;
} }

View file

@ -1,4 +1,4 @@
/* $Id: sid.c,v 1.2 2001/01/14 12:15:19 ea Exp $ /* $Id: sid.c,v 1.3 2001/06/17 20:19:45 ekohl 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
@ -11,8 +11,21 @@
#include <windows.h> #include <windows.h>
BOOL BOOL STDCALL
STDCALL AllocateLocallyUniqueId(PLUID Luid)
{
NTSTATUS Status;
Status = NtAllocateLocallyUniqueId(Luid);
if (!NT_SUCCESS(Status))
{
SetLastError(RtlNtStatusToDosError(Status));
return(FALSE);
}
return(TRUE);
}
BOOL STDCALL
AllocateAndInitializeSid ( AllocateAndInitializeSid (
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
BYTE nSubAuthorityCount, BYTE nSubAuthorityCount,
@ -47,7 +60,6 @@ AllocateAndInitializeSid (
} }
return TRUE; return TRUE;
} }
BOOL BOOL