DirectX SDK

DirectX7.DirectDrawCreate

The DirectX7.DirectDrawCreate method creates a DirectDraw7 object.

object.DirectDrawCreate(guid As String) As DirectDraw7

Parameters

object
Object expression that resolves to a DirectX7 object.
guid
Address of the globally unique identifier (GUID) that represents the driver to be created. This can be an empty string to indicate the active display driver, or you can pass one of the following flags to restrict the active display driver's behavior for debugging purposes:
DDCREATE_EMULATIONONLY
The DirectDraw object will use emulation for all features; it will not take advantage of any hardware supported features.
DDCREATE_HARDWAREONLY
The DirectDraw object will never emulate features not supported by the hardware. Attempts to call methods that require unsupported features will fail, returning DDERR_UNSUPPORTED.

Return Values

If the method succeeds, a reference to a DirectDraw7 object is returned.

Error Codes

If the method fails, an error is raised and Err.Number is set.