IMMDeviceOpenPropertyStore Method

Retrieves an interface to the device's property store.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult OpenPropertyStore(
	EStgmAccess stgmAccess,
	ref IPropertyStore refPropertyStore
)

Parameters

stgmAccess  EStgmAccess
The storage-access mode. This parameter specifies whether to open the property store in read mode, write mode, or read/write mode.
refPropertyStore  IPropertyStore
Pointer to a IPropertyStore variable into which the method writes the address of the IPropertyStore interface of the device's property store.

Through this method, the caller obtains a counted reference to the interface.

The caller is responsible for releasing the interface, when it is no longer needed, by calling the interface's Release method.

If the OpenPropertyStore(EStgmAccess, IPropertyStore) call fails, refPropertyStore is .

Return Value

HResult
If the method succeeds, it returns S_OK. If it fails, it returns an HResult value.

See Also