SmsCloseFolder

The SmsCloseFolder function closes the specified folder.

SMS_STATUS SmsCloseFolder(
  HANDLE hFolder  // Handle to folder.
);
 

Parameters

hFolder
Specifies the handle to the folder to close.

Return Values

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:

SMS_INVALID_HANDLE
The specified folder handle is not a valid folder handle.

Remarks

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.