Delphi:
Code: Select all
var
chl: PCHL;
chl_channels: PChlArray; // pointer for dynamic array access
MAX_CHANNELS : Integer = 8000; // just the default
begin
//Get internal channel list pointer of DD
MAX_CHANNELS := SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_CHL_GET_POINTER, Integer(@chl));
chl_channels := pointer(int64(Chl) + sizeof(TCHL));
c++
Code: Select all
TCHL *chl;
TChlChannel *chl_Channels;
int MAX_CHANNELS = 8000; // just the default
MAX_CHANNELS = SendMessage(hDDwnd, WM_MODULE_MSG, DDMODAPI_CHL_GET_POINTER, (long) ppCHL);
chl_Channels = (TChlChannel *)(chl + sizeof(TCHL));