mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
implemented GetSystemRegistryQuota()
svn path=/trunk/; revision=10966
This commit is contained in:
parent
5f701004c0
commit
cbfc9645ec
2 changed files with 37 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: stubs.c,v 1.85 2004/09/21 21:53:45 weiden Exp $
|
||||
/* $Id: stubs.c,v 1.86 2004/09/21 22:08:18 weiden Exp $
|
||||
*
|
||||
* KERNEL32.DLL stubs (unimplemented functions)
|
||||
* Remove from this file, if you implement them.
|
||||
|
@ -814,20 +814,6 @@ GetNumaProcessorNode(
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
GetSystemRegistryQuota(
|
||||
PDWORD pdwQuotaAllowed,
|
||||
PDWORD pdwQuotaUsed
|
||||
)
|
||||
{
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sysinfo.c,v 1.13 2004/06/13 20:04:56 navaraf Exp $
|
||||
/* $Id: sysinfo.c,v 1.14 2004/09/21 22:08:18 weiden Exp $
|
||||
*
|
||||
* reactos/lib/kernel32/misc/sysinfo.c
|
||||
*
|
||||
|
@ -163,4 +163,39 @@ IsProcessorFeaturePresent(DWORD ProcessorFeature)
|
|||
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
GetSystemRegistryQuota(PDWORD pdwQuotaAllowed,
|
||||
PDWORD pdwQuotaUsed)
|
||||
{
|
||||
SYSTEM_REGISTRY_QUOTA_INFORMATION srqi;
|
||||
ULONG BytesWritten;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtQuerySystemInformation(SystemRegistryQuotaInformation,
|
||||
&srqi,
|
||||
sizeof(srqi),
|
||||
&BytesWritten);
|
||||
if(NT_SUCCESS(Status))
|
||||
{
|
||||
if(pdwQuotaAllowed != NULL)
|
||||
{
|
||||
*pdwQuotaAllowed = srqi.RegistryQuotaAllowed;
|
||||
}
|
||||
if(pdwQuotaUsed != NULL)
|
||||
{
|
||||
*pdwQuotaUsed = srqi.RegistryQuotaUsed;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue