Use the ICISite interface ID property to retrieve the Site Identifier. This returns a read-only version of the ID.
Signature:
HRESULT ID([out, retval] long *pVal);