private void GetPropertyInformation() { IPropertyStore propstore; Marshal.ThrowExceptionForHR(_RealDevice.OpenPropertyStore(EStgmAccess.STGM_READ, out propstore)); _PropertyStore = new PropertyStore(propstore); }
/// <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); }