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

# GetReference

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

## Declaration

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

## 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.
