---
title: GetComponentPublicResource
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1516336-getcomponentpublicresource
---

# GetComponentPublicResource

## Declaration

```occ
OSErr GetComponentPublicResource(Component aComponent, OSType resourceType, SInt16 resourceID, Handle *theResource);
```

## Parameters

- `aComponent`: 
- `resourceType`: 
- `theResource`: 

## Return Value

A result code. See [Result Codes](carbon_core/component_manager.md).

## See Also

### Getting Information About Components

- [GetComponentInfo](1516438-getcomponentinfo.md)
- [GetComponentPublicIndString](1516516-getcomponentpublicindstring.md)
- [GetComponentPublicResourceList](1516460-getcomponentpublicresourcelist.md)
