Exemplo n.º 1
0
        private void GetPropertyInformation()
        {
            IPropertyStore propstore;

            Marshal.ThrowExceptionForHR(deviceInterface.OpenPropertyStore(StorageAccessMode.Read, out propstore));
            _PropertyStore = new PropertyStore(propstore);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the device's property store.
        /// </summary>
        /// <param name="stgmAccess">The storage-access mode to open store for.</param>
        /// <remarks>Administrative client is required for Write and ReadWrite modes.</remarks>
        public void GetPropertyInformation(StorageAccessMode stgmAccess = StorageAccessMode.Read)
        {
            IPropertyStore propstore;

            Marshal.ThrowExceptionForHR(deviceInterface.OpenPropertyStore(stgmAccess, out propstore));
            propertyStore = new PropertyStore(propstore);
        }
Exemplo n.º 3
0
 private void GetPropertyInformation()
 {
     IPropertyStore propstore;
     Marshal.ThrowExceptionForHR(deviceInterface.OpenPropertyStore(StorageAccessMode.Read, out propstore));
     _PropertyStore = new PropertyStore(propstore);
 }