Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the size of a single property value.

Header file:


Implemented by:


Called by:

Client applications and service providers

ULONG UlPropSize(
  LPSPropValue lpSPropValue


[in] Pointer to an SPropValue structure defining the property to be measured.


The call succeeded and has returned the expected value or values.


An error of unexpected or unknown origin prevented the operation from completing.

The UlPropSize function returns the size, in bytes, of the property value for the specified property. It disregards the size of the remainder of the SPropValue structure.

© 2015 Microsoft