-; $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
;
AdjustTokenGroups=AdjustTokenGroups@24
AdjustTokenPrivileges=AdjustTokenPrivileges@24
AllocateAndInitializeSid=AllocateAndInitializeSid@44
-;AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
+AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
;AreAllAccessesGranted=AreAllAccessesGranted@8
;AreAnyAccessesGranted=AreAnyAccessesGranted@8
;BackupEventLogA=BackupEventLogA@8
-/* $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
#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;
-
- case DLL_PROCESS_DETACH:
- RegCleanup ();
- break;
- }
-
-DPRINT1("ADVAPI32: DllMain() done\n");
-
- return TRUE;
+ DPRINT("ADVAPI32: DllMain() called\n");
+
+ switch (dwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDll);
+ RegInitialize();
+ break;
+
+ case DLL_PROCESS_DETACH:
+ RegCleanup();
+ break;
+ }
+
+ DPRINT1("ADVAPI32: DllMain() done\n");
+
+ return TRUE;
}
/* EOF */
-/* $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
#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,
}
return TRUE;
-
}
BOOL