3.2.4.2.47.4 StorageType (get) (Opnum 33)

The StorageType (get) method retrieves the Storage type property of the storage module and returns S_OK upon successful completion.<75>

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x02))] HRESULT StorageType(
   [out, retval] FsrmStorageModuleType* storageType
 );

storageType: A pointer to a variable that, upon completion, contains the type of storage that the storage module uses. For possible storage types, see the FsrmStorageModuleType (section 2.2.2.8.1.2) enumeration.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

This code is returned for the following reasons:

  • The storageType parameter is NULL.

  • The storageType parameter is not a valid FsrmStorageModuleType (section 2.2.2.8.1.2) value.

Upon receiving this message, the server MUST validate the following parameters by verifying that:

  • The storageType is not NULL.

  • The storageType contains valid FsrmStorageModuleType values.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set storageType to the Storage type of the storage module.