---
title: GetReference
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osaction/getreference
---

# GetReference

Returns a pointer to any additional memory allocated by the action object on your behalf.

## Declaration

```occ
void * GetReference();
```

## Mentioned in

Creating a Driver Using the DriverKit SDK

## Return Value

Return Value A pointer to the additional storage you requested at creation time. This method returns NULL if you passed 0 to the referenceSize parameter of the Create method. It also returns NULL if the action object doesn’t belong to the current process.

## Discussion

Discussion The action object zero-initializes the memory it allocates. Only the process that owns the action object may access the memory.
