Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
System Services
System Information
 GetSystemRegistryQuota function
GetSystemRegistryQuota function

Applies to: desktop apps only

Retrieves the current size of the registry and the maximum size that the registry is allowed to attain on the system.

Syntax

BOOL WINAPI GetSystemRegistryQuota(
  __out_opt  PDWORD pdwQuotaAllowed,
  __out_opt  PDWORD pdwQuotaUsed
);

Parameters

pdwQuotaAllowed [out, optional]

A pointer to a variable that receives the maximum size that the registry is allowed to attain on this system, in bytes.

pdwQuotaUsed [out, optional]

A pointer to a variable that receives the current size of the registry, in bytes.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP1

Minimum supported server

Windows Server 2003

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

System Information Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker