ResUtilFindLongProperty function (resapi.h)
Locates a signed long property value in a property list. The PRESUTIL_FIND_LONG_PROPERTY type defines a pointer to this function.
Syntax
DWORD ResUtilFindLongProperty(
[in] const PVOID pPropertyList,
[in] DWORD cbPropertyListSize,
[in] LPCWSTR pszPropertyName,
[out] LPLONG plPropertyValue
);
Parameters
[in] pPropertyList
Pointer to the property list in which to locate the value.
[in] cbPropertyListSize
Size in bytes of the data included in pPropertyList.
[in] pszPropertyName
Pointer to a null-terminated Unicode string containing the name of the value to locate.
[out] plPropertyValue
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 |
---|---|
|
The data is in an incorrect format. |
|
The property could not be located in the property list. |
Remarks
If the operation is successful, plPropertyValue points directly into the property list buffer. Be careful not to disturb the formatting of the property list when using plPropertyValue.
Requirements
Requirement | Value |
---|---|
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 |