Look at GetOption for details.
function ImGetOption(OptionId: LongInt): LongInt; cdecl;
ImagingExport (at line 182)