Share via


ISurfaceManager::get_Device

The get_Device method retrieves the device that owns the surface.

Syntax

HRESULT get_Device(
  IDirect3DDevice9**  ppDevice
);

Parameters

ppDevice

[out]  Pointer to a pointer to an IDirect3DDevice9 interface that manages the current surface.

Return Values

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Requirements

Client: Windows Vista

Header: Include gputransformplugin.h and GPUPipelineTime.h.

Library: Use GPUPipelineVC7.lib (for Visual Studio .NET) or GPUPipelineVC8.lib (for Visual Studio 2005).

See Also