Partager via


Delete Function (CHKSGFILES)

The Delete function destroys an existing instance of the CChkSGFiles class. You must call this function after the application has finished working with the specified object.

Important

Storage groups are not available in Microsoft Exchange Server 2010. For backward compatibility with databases and storage groups in earlier versions of Exchange Server, the CHKSGFILES API includes the capability to specify storage groups. When you run CHKSGFILES against Exchange 2010 databases, you should set parameters that specify a storage group identifier to an empty string.

Static VOID __stdcall Delete
(
        CCheckSGFiles * pcchecksgfiles
);

Parameters

  • pcchecksgfiles
    Input parameter. A pointer to an existing CCheckSGFiles object. The memory associated with the object will then be freed.

Return Value

This function does not have a return value.

Remarks

The Delete function frees the memory associated with the CCheckSGFiles object. After you call Delete, the pointer passed in the pcchecksgfiles parameter will be invalid and no other operations can be performed on that object.

If the application has used the ErrCheckDbPages function, the application must free the memory buffer manually; the Delete function will not free it.

If you’re using CHKSGFILES in a multithreaded application, you must call the Delete function in the single-threaded portion of the application, and you can call it only once for each CCheckSGFiles object. For more information, see Using CHKSGFILES in a Multithreaded Application in this SDK.

Requirements

Exchange 2010 only includes a 64-bit version of CHKSGFILES.

The account that the application is running under must have read access permissions to the database and log files that are to be checked.