Expand Minimize
This topic has not yet been rated - Rate this topic

IDListContainerIsConsistent function

Verifies that the container structure of an IDList is valid.

Syntax


BOOL __inline IDListContainerIsConsistent(
  _In_  PCUIDLIST_RELATIVE pidl,
  _In_  UINT cbAlloc
);

Parameters

pidl [in]

A pointer to the IDList to validate.

cbAlloc [in]

The size, in bytes, of the PIDL specified in the pidl parameter.

Return value

TRUE if the IDList structure is valid; otherwise, FALSE.

Remarks

This function should be used by any code that reads an IDList from a persisted format to ensure that invalid forms do not lead to a security exploit in the code that interprets the IDList. Shell data sources are responsible for validating private sections of the ITEMIDs. Hidden data is validated by the functions that interpret that data.

Requirements

Header

Shlobj.h

Library

Inline function

DLL

Inline function

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.