Share via


HALInit (Compact 2013)

3/26/2014

This function is used internally by DirectDraw and should not be called directly by your driver. It is called during initialization and during a mode switch. HALInit is responsible for setting up various global variables. It then calls buildDDHALInfo with the appropriate parameters.

Syntax

EXTERN_C BOOL WINAPI HALInit(
  LPDDHALINFO lpddhi,
  BOOL reset,
  DWORD modeIndex
);

Parameters

  • lpddhi
    A pointer to a DDHALINFO structure that should be populated with the appropriate settings and function pointers by the driver.
  • reset
    Currently not used.
  • modeIndex
    Currently not used.

Return Value

None.

Remarks

If you use the DDGPE model, the HALInit function has already been written for you and is part of DDGPE. Export this function to DirectDraw by adding it to the list of functions exported by your display driver.

Requirements

Header

ddraw.h,
ddrawi.h

See Also

Reference

Required Functions
buildDDHALInfo
DDHALINFO