New Function (CHKSGFILES)
The New function creates a new instance of the CChkSGFiles class. You must call this function before you can specify the storage group and databases to be checked.
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 CCheckSGFiles * __stdcall New ();
Parameters
This function does not accept any parameters.
Return Value
A reference (pointer) to the newly created object.
Remarks
The New function creates a CCheckSGFiles object and returns to the caller a reference (pointer) to that object. You must call this function before it calls any of the other functions in the CCheckSGFiles class.
If you’re using CHKSGFILES in a multithreaded application, you must call the New 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.