#includeIn this example, ComPtr is used to store the reference count for the ID3D11Device object. By calling `GetAddressOf()`, ComPtr retrieves the address of the object pointer. This ensures that the reference count is incremented appropriately. The package library for ComPtr is Microsoft::WRL.using namespace Microsoft::WRL; ComPtr device; HRESULT hr = D3D11CreateDevice( nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, 0, nullptr, 0, D3D11_SDK_VERSION, device.GetAddressOf(), nullptr, nullptr );