Пример #1
0
 private static extern int GetStoreInformationCE(out ObjectStoreInformation lpsi);
Пример #2
0
        /// <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.");
            }
        }