CChkSGFiles 函数CChkSGFiles.Delete function

适用于: Exchange Server 2003 |Exchange Server 2007 |Exchange Server 2010 |Exchange Server 2013Applies to: Exchange Server 2003 | Exchange Server 2007 | Exchange Server 2010 | Exchange Server 2013

销毁CChkSGFiles类的现有实例。Destroys an existing instance of the CChkSGFiles class. 在应用程序完成对指定对象的操作后,必须调用此函数。You must call this function after the application has finished working with the specified object.

Static VOID __stdcall Delete 
(
        CCheckSGFiles  * pcchecksgfiles
);

参数Parameters

pcchecksgfilespcchecksgfiles

输入参数。Input parameter. 指向现有CCheckSGFiles对象的指针。A pointer to an existing CCheckSGFiles object. 然后,将释放与该对象关联的内存。The memory associated with the object will then be freed.

返回值Return value

无。None.

说明Remarks

Delete函数释放与CCheckSGFiles对象相关联的内存。The Delete function frees the memory associated with the CCheckSGFiles object. 调用Delete后,在pcchecksgfiles参数中传递的指针将无效,并且无法对该对象执行其他操作。After you call Delete, the pointer passed in the pcchecksgfiles parameter will be invalid and no other operations can be performed on that object.

如果应用程序使用ErrCheckDbPages函数,应用程序必须手动释放内存缓冲区;删除函数将无法释放它。If the application uses the ErrCheckDbPages function, the application must free the memory buffer manually; the Delete function will not free it.

如果要在多线程应用程序中使用 CHKSGFILES,则必须在应用程序的单线程部分调用 Delete 函数,并且只能为每个CCheckSGFiles对象调用一次Delete函数。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.

RequirementsRequirements

Exchange 2013 仅包含64位版本的 CHKSGFILES API。Exchange 2013 only includes a 64-bit version of the CHKSGFILES API.

运行应用程序所使用的帐户必须具有对要检查的数据库和日志文件的读取访问权限。The account that the application is running under must have read access permissions to the database and log files that are to be checked.