DCICreatePrimary function

[This function is subject to change with each operating system revision. Instead, use the Microsoft DirectDraw and Microsoft Direct3DAPIs; these APIs insulate applications from such operating system changes, and hide many other difficulties involved in interacting directly with display drivers.]

Creates a primary surface and obtains surface information.

Syntax


int WINAPI DCICreatePrimary(
  _In_  HDC              hdc,
  _Out_ LPDCISURFACEINFO pdci
);

Parameters

hdc [in]

The device context handle of the device for the primary surface to be created.

pdci [out]

A pointer to a DCISURFACEINFO structure.

Return value

If the function succeeds, DCI_OK is returned. Otherwise, it returns one of the DCI errors.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Dciman.h

Library

Dciman32.lib

DLL

Dciman32.dll

See also

Graphics Low Level Client Support

 

 

Show: