Hi,
Finally I could run the code successfully. Before using color-table entry you need to extend it using its num-entries property. So, the final code is:
PROCEDURE GetSysColor EXTERNAL "user32.dll":
DEFINE INPUT PARAMETER nDspElement AS LONG.
DEFINE RETURN PARAMETER COLORREF AS LONG.
END...