Example: rdp_get_option
This example shows the use of rdp_get_option to retrieve the bits per pixel attribute of an RDP session.
rdp_get_option("StepDescription=Getting option 1",
"OptionName=BitsPerPixel",
"ResultParameter=MyParam",
RDP_LAST );
lr_log_message( lr_eval_string( "{MyParam}" ) );
Output:
vuser_init.c(42): Getting option BitsPerPixel was successful
16