SECPidlMgr::CreateItem
LPITEMIDLISTSECPidlMgr::CreateItem(LPBYTEpData, SEC_UINTnInSize)
This function creates an PIDL from a given block memory of data. Even though this function is virtual, you generallly will not need to override this function. Instead, if the data in your template class T can change size dynamically, you create a helper function to place your data in the template class T into a single contiguous block of memory and then pass the block of memory into this function giving the function the size of the memory. See MirrorDirectory sample for an example for what you need to do.
Defined in: SECPidlMgr.h
Return Value
LPITEMIDLIST Return a created PIDL. The PIDL should be freed using IMalloc obtained from the shell. You can safely use Delete method of any instance of this class.
Parameters
pData
A block of memory that contains the data in the layouted as in the template class T. The memory used by pData is not freed by this function. So caller is responsible to free the memory used by pData.
nInSize
The size of the memory block.
See Also