MM_FindObjectType

Queries the Media Manager database for specific object types within specified classes.

Local Servers:Blocking
NetWare Server: 5.x
Platform:NLM
Service:Media Manager

Syntax

  LONG   MM_FindObjectType ( 
    LONG   class, 
    LONG   type, 
    OBID  *objectID ); 
  
  

Parameters

class
This defines the class to search in.
type
Is the type of object within the class.
*objectID
The object ID of an object matching class and type is returned in the parameter.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

0x00000008

MM_OBJECT_NOT_FOUND

0x00000207

MM_INVALID_CLASS

Remarks

All non-proprietary objects in the Media Manager database can be discovered by using this function. It operates on a find-first, find-next method. When this function is first used, the contents of *objectID should be -1 to start the series. If an object is found matching the class and type parameters, its object ID is returned by using *objectID. To continue the search, make this call again without modifying *objectID, and the next object satisfying class and type will be returned. If no other objects can be found, then this function returns MM_OBJECT_NOT_FOUND and *objectID is set to -1.

See Also

Class Types