CHL:How to use new unlimited channels feature in the modules

Module API help / support section for programmers.

Moderators: FredB, X05, Dreamer

User avatar
rel
relocation
Posts: 2006
Joined: Fri Jun 16, 2006 9:50 am

CHL:How to use new unlimited channels feature in the modules

Postby rel » Thu Nov 24, 2011 10:52 am

for DVB Dream v1.6 and above

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));

DVB Dream - because I have to dream about having time to code it

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest