Expand Minimize

FreeKnownFolderDefinitionFields function

Frees the allocated fields in the result from IKnownFolder::GetFolderDefinition.

Syntax


void FreeKnownFolderDefinitionFields(
  _In_  KNOWNFOLDER_DEFINITION *pKFD
);

Parameters

pKFD [in]

Type: KNOWNFOLDER_DEFINITION*

A pointer to a KNOWNFOLDER_DEFINITION structure that contains information about the given known folder.

Return value

This function does not return a value.

Remarks

This is an inline helper function that calls CoTaskMemFree on the fields in the structure that need to be freed. Its implementation can be seen in the header file.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

See also

Known Folders Sample

 

 

Community Additions

ADD
Show:
© 2014 Microsoft