mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Implemented AllocateLocallyUniqueId().
svn path=/trunk/; revision=1978
This commit is contained in:
parent
1731f27560
commit
fdbabc8ad9
3 changed files with 38 additions and 28 deletions
|
@ -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
|
||||
;
|
||||
|
@ -20,7 +20,7 @@ AddAuditAccessAce=AddAuditAccessAce@24
|
|||
AdjustTokenGroups=AdjustTokenGroups@24
|
||||
AdjustTokenPrivileges=AdjustTokenPrivileges@24
|
||||
AllocateAndInitializeSid=AllocateAndInitializeSid@44
|
||||
;AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
|
||||
AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
|
||||
;AreAllAccessesGranted=AreAllAccessesGranted@8
|
||||
;AreAnyAccessesGranted=AreAnyAccessesGranted@8
|
||||
;BackupEventLogA=BackupEventLogA@8
|
||||
|
|
|
@ -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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -12,34 +12,32 @@
|
|||
#include <ddk/ntddk.h>
|
||||
#include <windows.h>
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
INT
|
||||
STDCALL
|
||||
DllMain(
|
||||
PVOID hinstDll,
|
||||
ULONG dwReason,
|
||||
PVOID reserved
|
||||
)
|
||||
INT STDCALL
|
||||
DllMain(PVOID hinstDll,
|
||||
ULONG dwReason,
|
||||
PVOID reserved)
|
||||
{
|
||||
DPRINT1("ADVAPI32: DllMain() called\n");
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls (hinstDll);
|
||||
RegInitialize ();
|
||||
break;
|
||||
DPRINT("ADVAPI32: DllMain() called\n");
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
RegCleanup ();
|
||||
break;
|
||||
}
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDll);
|
||||
RegInitialize();
|
||||
break;
|
||||
|
||||
DPRINT1("ADVAPI32: DllMain() done\n");
|
||||
case DLL_PROCESS_DETACH:
|
||||
RegCleanup();
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
DPRINT1("ADVAPI32: DllMain() done\n");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -11,8 +11,21 @@
|
|||
#include <windows.h>
|
||||
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
BOOL STDCALL
|
||||
AllocateLocallyUniqueId(PLUID Luid)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtAllocateLocallyUniqueId(Luid);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
return(FALSE);
|
||||
}
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
BOOL STDCALL
|
||||
AllocateAndInitializeSid (
|
||||
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
|
||||
BYTE nSubAuthorityCount,
|
||||
|
@ -47,7 +60,6 @@ AllocateAndInitializeSid (
|
|||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
Loading…
Reference in a new issue