In part 1, I talked about the basics of using the ICA Client Object SDK (ICO SDK). In this second part, I’ll talk about modifying the appearance of your ICA connection using the ICO SDK. This includes:
- Resolution
- Color Depth
- Fullscreen and Seamless Mode
Resolution
The resolution of the ICA connection is modified by setting two properties in your ICO SDK: DesiredHRES (horizontal resolution) and DesiredVRES (vertical resolution). By default the used resolution is 640×480. We already had the following code to make the ICA connection:
[System.Reflection.Assembly]::LoadFile("C:\Program Files (x86)\Citrix\ICA Client\WfIcaLib.dll") $ICA = New-Object WFICALib.ICAClientClass $ICA.Address = "XASRV001" $ICA.Username = "TestUser01" $ICA.SetProp("Password","MyUsersPassword") $ICA.Domain = "LAB" $ICA.Application = "" $ICA.Launch = $true $ICA.OutputMode = [WFICALib.OutputMode]::OutputModeNormal $ICA.Connect()