Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResUtilGetExpandSzValue function

[This function is available for use in the operating systems specified in the Requirements section. Support for this method was removed in Windows Server 2003. This function is not exported from ResUtils.dll and programs or DLLs that statically link to it will not load.]

Returns a expandable string value from the cluster database.

Syntax


LPWSTR WINAPI ResUtilGetExpandSzValue(
  _In_ HKEY    hkeyClusterKey,
  _In_ LPCWSTR pszValueName,
  _In_ BOOL    bExpand
);

typedef LPWSTR (*PRESUTIL_GET_EXPAND_SZ_VALUE)(
    _In_ HKEY    hkeyClusterKey,
    _In_ LPCWSTR pszValueName,
    _In_ BOOL    bExpand
);

Parameters

hkeyClusterKey [in]

Key identifying the location of the expandable string value in the cluster database.

pszValueName [in]

Pointer to a null-terminated Unicode string containing the name of the value to retrieve.

bExpand [in]

If TRUE, the function expands the string before returning. If FALSE, the string is returned in an expandable form.

Return value

If the operations succeeds, the function returns a null-terminated Unicode string containing a copy of the specified value.

If the operation fails, the function returns NULL. For more information, see GetLastError.

Remarks

When you are finished with the memory allocated for the value returned by the ResUtilGetExpandSzValue utility function, you must call the function LocalFree to release it.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

End of server support

Windows Server 2003 Datacenter, Windows Server 2003 Enterprise

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

ClusterRegQueryValue
ResUtilGetBinaryValue
ResUtilGetDwordValue
ResUtilGetMultiSzValue
ResUtilGetSzValue

 

 

Show: