---
title: GetMemoryObjectID
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/getmemoryobjectid
---

# GetMemoryObjectID

Gets the video object identifier for a memory object.

## Declaration

```occ
IOUserVideoObjectID GetMemoryObjectID(uint32_t memtype);
```

## Parameters

- `memtype`: A value encoding the memory object’s category in the upper 16 bits and, if needed, an index in the lower 16 bits.

## Return Value

Return Value The object identifier of the data portion of the buffer.

## See Also

### Working with memory descriptors

- [GetOutputControlMemoryDescriptor](videodriverkit/iouservideostream/getoutputcontrolmemorydescriptor.md)
- [GetOutputDataMemoryDescriptor](videodriverkit/iouservideostream/getoutputdatamemorydescriptor.md)
- [GetOutputQueueMemoryDescriptor](videodriverkit/iouservideostream/getoutputqueuememorydescriptor.md)
- [GetInputQueueMemoryDescriptor](videodriverkit/iouservideostream/getinputqueuememorydescriptor.md)
