private static extern int GetStoreInformationCE(out ObjectStoreInformation lpsi);
/// <summary> /// This function retrieves the size of the object store and the amount of free space currently in the object store /// </summary> /// <returns>An <see cref="ObjectStoreInformation"/> struct with the current status of the Object Store.</returns> public static ObjectStoreInformation GetStoreInformation() { try { ObjectStoreInformation osinfo = new ObjectStoreInformation(); GetStoreInformationCE(out osinfo); return osinfo; } catch (Exception) { throw new WinAPIException("Error retrieving ObjectStoreInformation."); } }