GXOpenDisplay

Send Feedback

The GXOpenDisplay function opens the display for use and ensures exclusive access to the video frame buffer memory.

Note   GAPI is deprecated. Use DirectDraw and Direct3D Mobile APIs instead.

Syntax

GXDLL_API int GXOpenDisplay (
  HWND hWnd,
  DWORD dwFlags 
);

Parameters

  • hWnd
    If requesting full screen mode, handle to the full screen window.
  • dwFlags
    Specifies options for the screen mode.
    Value Description
    KfFullScreen Use full screen mode (Pocket PC).
    GX_FULLSCREEN Use full screen mode (Smartphone).

Return Values

Returns 1 if the call was successful; returns 0 if there was an error. Call GetLastError to retrieve extended error information.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: gx.h
Library: gx.lib

See Also

GAPI Functions | Windows Mobile Game Programming

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.