ResUtilFindDwordProperty function

Locates an unsigned long property value in a property list. The PRESUTIL_FIND_DWORD_PROPERTY type defines a pointer to this function.

Syntax

DWORD ResUtilFindDwordProperty(
  const PVOID pPropertyList,
  DWORD       cbPropertyListSize,
  LPCWSTR     pszPropertyName,
  LPDWORD     pdwPropertyValue
);

Parameters

pPropertyList

Pointer to the property list in which to locate the value.

cbPropertyListSize

Size in bytes of the data included in pPropertyList.

pszPropertyName

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

pdwPropertyValue

Pointer to the actual value of the data stored in the property list buffer.

Return Value

If the operations succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code. The following are possible error codes.

Return code Description
ERROR_INVALID_DATA
The data is in an incorrect format.
ERROR_FILE_NOT_FOUND
The property could not be located in the property list.

Remarks

If the operation is successful, pdwPropertyValue points directly into the property list buffer. Be careful not to disturb the formatting of the property list when using pdwPropertyValue.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll

See Also

ResUtilFindBinaryProperty

ResUtilFindExpandSzProperty

ResUtilFindExpandedSzProperty

ResUtilFindLongProperty

ResUtilFindMultiSzProperty

ResUtilFindSzProperty