Direct3DCreate9 Function
--------------------------------------------------------------------------------
Creates an instance of an IDirect3D9 object.
Syntax
IDirect3D9 *WINAPI Direct3DCreate9( UINT SDKVersion
);
Parameters
SDKVersion
The value of this parameter should be D3D_SDK_VERSION. See Remarks.
Return Value
If successful, this function returns a pointer to an IDirect3D9 interface; otherwise, a NULL pointer is returned.
Remarks
This function creates a IDirect3D9 object that supports enumeration of active display adapters and allows the creation of IDirect3DDevice9 objects. If the user dynamically adds adapters (either by adding devices to the desktop, or by hot-docking a laptop), those devices will not be included in the enumeration. Creating a new IDirect3D9 object will expose the new devices.
D3D_SDK_VERSION is passed to this function to ensure that the header files against which an application is compiled match the version of the runtime dynamic-link library (DLL)'s that are installed on the machine. D3D_SDK_VERSION is only changed in the runtime when a header change (or other code change) would require an application to be rebuilt. If this function fails, it indicates that the header file version does not match the runtime DLL version. See DirectX Version Checking for help checking the version of the runtime that is installed on your machine.
Function Information
Header d3d9.h
Import library d3d9.lib
Minimum operating systems Windows 98
--------------------------------------------------------------------------------