SECPersistentTreeNode::Create

DWORDSECPersistentTreeNode::Create(const CString&strNodeName, SECPersistentTreeNode*pParent)

Initialize the persistent tree node object. This is a required step.

Defined in: PERSTREE.CPP

Return Value

Error values OR'd together, or SEC_PERSTREE_SUCCESS. See below.

Parameters

strNodeName

Name of this new node (must be unique across siblings)

pParent

Parent node.

Comments

Use this function to properly initialize a persistent tree node (PTN) object. Possible return codes for all PTN operations follow:

SEC_PERSTREE_SUCCESS - Operation Successful SEC_PERSTREE_ALREADY_CREATED- Error, node has already been created SEC_PERSTREE_NOT_CREATED- Error, node has not yet been created SEC_PERSTREE_NULL_NODE- Error, node name is empty SEC_PERSTREE_NULL_KEYNAME- Error, key name is empty SEC_PERSTREE_KEY_ALREADY_EXISTS- Error, key name already exists, use unique name. SEC_PERSTREE_NODE_ALREADY_EXISTS - Error, node name already exists, use unique name. SEC_PERSTREE_KEY_NOT_FOUND- Error, key lookup failed, key not found. SEC_PERSTREE_INVALID_PARAMETER- Error, parameter null or not valid. SEC_PERSTREE_INVALID_BUFFER- Error, buffer not valid. SEC_PERSTREE_UNKNOWN_ERROR- Error, unknown cause.