The CHKSGFILES API ships as part of Exchange Server 2007. The API can be used on a computer that is under the Mailbox role, or a computer that has the Administrator-only install.
By default the CHKSGFILES DLL is installed in the C:\Program Files\Exchange 2007\bin directory.
Both 32-bit (i386) and 64-bit (amd64) versions of the API are included. If your applications will be running on a Mailbox server, use the 64-bit version. If your applications will be running under Microsoft Windows XP, or on a computer where the Exchange Administrative tools have been installed, use the 32-bit version of the API. Do not use the 32-bit version on a 64-bit operating system.
To properly compile an application to use the CHKSGFILES API, use the LIB files provided with the Exchange Server 2007 SDK. Those files are installed in the folder C:\Program Files\Microsoft\Exchange Server 2007 SDK\RTM\Support\CHKSGFILES\Lib by default.