mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +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
|
; 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
|
||||||
|
|
|
@ -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,34 +12,32 @@
|
||||||
#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(
|
ULONG dwReason,
|
||||||
PVOID hinstDll,
|
PVOID reserved)
|
||||||
ULONG dwReason,
|
|
||||||
PVOID reserved
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
DPRINT1("ADVAPI32: DllMain() called\n");
|
DPRINT("ADVAPI32: DllMain() called\n");
|
||||||
switch (dwReason)
|
|
||||||
{
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls (hinstDll);
|
|
||||||
RegInitialize ();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DLL_PROCESS_DETACH:
|
switch (dwReason)
|
||||||
RegCleanup ();
|
{
|
||||||
break;
|
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 */
|
/* 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
|
* 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue