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
        private void GetPropertyInformation()
        {
            IPropertyStore propstore;

            Marshal.ThrowExceptionForHR(_RealDevice.OpenPropertyStore(EStgmAccess.STGM_READ, out propstore));
            _PropertyStore = new PropertyStore(propstore);
        }