MDAC 2.5 SDK - Technical Articles


 

SEC_OBJECT_ELEMENT

The SEC_OBJECT_ELEMENT structure is used to identify the specific database object in a group of the same kinds of objects at a particular level in the hierarchy of objects in the data source object.

typedef struct _SEC_OBJECT_ELEMENT {
   GUID     guidObjectType;
   DBID     ObjectID;
} SEC_OBJECT_ELEMENT;
Element Description
guidObjectType GUID that identifies the type of the object identified by ObjectID. See the list of Standard Object Type GUIDs.
ObjectID DBID structure that identifies the specific object at the hierarchy level given by guidObjectType. For more information on the DBID structure, see Column IDs in the OLE DB Programmer's Reference.

Comments

Each SEC_OBJECT_ELEMENT structure in an array of SEC_OBJECT_ELEMENT structures identifies an object in a hierarchy of objects in the data source object.

OLE DB defines two special object IDs that are used to control permissions for objects that contain other controllable objects. These DBIDs allow you to set permissions for several database objects at once and also to set the default permissions for new objects.

See also

SEC_OBJECT