Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SHRegGetBoolValueFromHKCUHKLM function

[This function is no longer supported.]

Evaluates a registry key value and returns a boolean value that reflects whether the value exists and the expected state matches the actual state. This function will first check HKEY_CURRENT_USER for the requested information in the specified subkey. If the information does not exist under the HKEY_CURRENT_USER subtree it will check the HKEY_LOCAL_MACHINE subtree for the same information.

Syntax


BOOL SHRegGetBoolValueFromHKCUHKLM(
  PCWSTR pszKey,
  _In_  PCWSTR pszValue,
  _In_  BOOL fDefault
);

Parameters

pszKey

Type: PCWSTR

A pointer to a null-terminated Unicode string that specifies the path to the key to be checked.

pszValue [in]

Type: PCWSTR

A pointer to a null-terminated Unicode string that specifies the value to be evaluated.

fDefault [in]

Type: BOOL

The expected state of the evaluation, as defined by the calling function.

Return value

Type: BOOL

TRUE if the evaluation matches the fDefault value; otherwise, FALSE.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shlwapi.h

DLL

Shell32.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.