OpenGLSurface.Handle

From Xojo Documentation

Property (As Integer )
aOpenGLSurface.Handle = newIntegerValue
or
IntegerValue = aOpenGLSurface.Handle

Supported for all project types and targets.

This is the OpenGL context identifier.