| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Get the handle of the graphics device currently targeted by a surface
#include <gf/gf.h>
int gf_surface_get_dev( gf_surface_t surface,
                        gf_dev_t * pdev );
gf
The gf_surface_get_dev() function gets the handle of the graphics device currently targeted by the surface.
QNX Graphics Framework
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
gf_surface_attach(), gf_surface_create(), gf_surface_create_layer(), gf_surface_get_info()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |