示例#1
0
        private void GetPropertyInformation()
        {
            IPropertyStore propstore;

            Marshal.ThrowExceptionForHR(_RealDevice.OpenPropertyStore(EStgmAccess.STGM_READ, out propstore));
            _PropertyStore = new PropertyStore(propstore);
        }
示例#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>
 private void InitializePropertyInformation(StorageAccessMode stgmAccess = StorageAccessMode.Read)
 {
     Marshal.ThrowExceptionForHR(_mmDevice.OpenPropertyStore(stgmAccess, out var propstore));
     _propertyStore = new PropertyStore(propstore);
 }
示例#3
0
 private void GetPropertyInformation()
 {
     IPropertyStore propstore;
     Marshal.ThrowExceptionForHR(_RealDevice.OpenPropertyStore(EStgmAccess.STGM_READ, out propstore));
     _PropertyStore = new PropertyStore(propstore);
 }