4.3 Storage Object Management with INtmsObjectManagement1

The following example illustrates how the RSM client performs storage object management using the INtmsObjectManagement1 interface.

Example of storage object management (ASCII)

Figure 3: Example of storage object management (ASCII)

  1. The client calls INtmsSession1::OpenNtmsServerSessionA to open a session with the server.

  2. The server initializes the session and indicates success.

  3. The RSM client calls INtmsObjectManagement1::EnumerateNtmsObject. The dwType parameter is set to a value from the NtmsObjectsTypes enumeration.

  4. The server returns a list of objects.

  5. The client calls INtmsObjectManagement1::GetNtmsObjectAttributeA to get the object attributes for a particular object.

  6. The server returns the requested object attributes.

  7. The client can also call INtmsObjectManagement1::SetNtmsObjectAttributeA to set the object attributes for the object.

  8. The server indicates success (S_OK).

  9. The client disables the object by using INtmsObjectManagement1::EnableNtmsObject.

  10. The server indicates success (S_OK).