Freigeben über


Direct3DMobileCreate (Windows CE 5.0)

Send Feedback

This function creates the Direct3D Mobile object that supports the IDirect3DMobile interface.

IDirect3DMobile* WINAPI Direct3DMobileCreate(  UINT SDKVersion);

Parameters

  • SDKVersion
    [in] A value that identifies the version of Direct3D Mobile that the application is written for. Pass in the value D3D_SDK_VERSION.

Return Values

If the call is successful, the function returns a pointer to the IDirect3DMobile interface for the application.

A NULL return value indicates failure. To obtain extended error information, call the GetLastError function.

Remarks

An application starts Direct3D Mobile by calling Direct3DMobileCreate to create a Driect3D Mobile object. This function verifies that the version of Direct3D Mobile that the application was compiled against is compatible with the Direct3D Mobile libraries in the OS.

Direct3DMobileCreate also checks to ensure that the calling application is the only Direct3D Mobile application currently running on the system. If another Direct3D Mobile application is already running, the call to Direct3DMobile will fail.

If the call to Direct3DMobile succeeds, the Direct3DMobileCreate API creates a new object that implements the IDirect3DMobile interface and returns a pointer to that interface for the application to use.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dm.h.
Link Library: D3dm.lib

See Also

Direct3D Mobile Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.