The SmsCloseFolder function closes the specified folder.
SMS_STATUS SmsCloseFolder(
HANDLE hFolder // Handle to folder.
);
The SmsCloseFolder function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns the following manifest constant:
A folder remains open until it is closed using SmsCloseFolder. The memory allocated for the folder is deallocated when the folder is closed.
Closing a folder does not cause its subfolders to be closed automatically.