The SmsLinkFolder function links the specified folder to its parent (the parent is the container or folder within which the specified folder was created).
SMS_STATUS SmsLinkFolder(
HANDLE hFolder // Handle to folder to be linked to its parent.
);
The SmsLinkFolder function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns one of the following manifest constants:
SmsLinkFolder inserts the specified folder at the beginning of the parent's folder list.
Note that linking a folder associates the folder to its parent only within the application's memory—the folder is not written to the site database. A new folder is not added to the site database until your application uses the SmsCommitFolder function to write the folder to the database.
SmsCommitFolder, SmsCreateFolder, SmsUnlinkFolder