HERC_Init


Initialize and reset the Hercules controller. This will open the com port, initialize settings, and reset the display.

BOOL WINAPI HERC_Init(
    DWORD dwConsoleType=HERC_CONSOLE_ALL

);

Parameters

dwConsoleType  

Type of Hercules console to initialize.

 

HERC_CONSOLE

HERC_CONSOLE_MK2

HERC_CONSOLE_MP3

HERC_CONSOLE_ALL           

 

Initialize the original Hercules DJ Console

Initialize the Hercules DJ Console MK2

Initialize the Hercules DJ Control MP3

Initialize the first Hercules device found

 

 

Return value
If successful, TRUE is returned, else FALSE is returned. Use HERC_ErrorGetCode to get the error code.

Remarks
You can supply the type of Hercules console that you want to initialize or just don’t supply a parameter and it will auto-initialize the first Hercules device found.

Example
Initialize the Hercules library with the first Hercules device found

//Initialize the Hercules Library

HERC_Init();