DCICreatePrimary function (dciman.h)

[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 DCICreatePrimary(
  [in]  HDC              hdc,
  [out] LPDCISURFACEINFO *lplpSurface
);

Parameters

[in] hdc

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

[out] lplpSurface

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header dciman.h
Library Dciman32.lib
DLL Dciman32.dll

See also

Graphics Low Level Client Support