--- description: "Learn more about: GetModuleBase function" title: "GetModuleBase Function" ms.date: "11/04/2016" ms.topic: "reference" f1_keywords: ["implements/Microsoft::WRL::GetModuleBase"] ms.assetid: 123d3b14-2eaf-4e02-8dcd-b6567917c6a6 --- # GetModuleBase function Retrieves a [ModuleBase](modulebase-class.md) pointer that allows for incrementing and decrementing the reference count of a [RuntimeClass](runtimeclass-class.md) object. ## Syntax ```cpp inline Details::ModuleBase* GetModuleBase() throw() ``` ## Return value A pointer to a `ModuleBase` object. ## Remarks This function is used internally to increment and decrement object reference counts. You can use this function to control reference counts by calling [ModuleBase::IncrementObjectCount](modulebase-class.md#incrementobjectcount) and [ModuleBase::DecrementObjectCount](modulebase-class.md#decrementobjectcount). ## Requirements **Header:** implements.h **Namespace:** Microsoft::WRL ## See also [Microsoft::WRL Namespace](microsoft-wrl-namespace.md)