The SetConnectionByHandle method uses the connection handle to set the connection for a newly created autECLPrinterSettings object. In Z and I Emulator for Windows, this connection handle is a Long integer.

There can be only one Z and I Emulator for Windows connection open with a given handle. For example, there can be only one connection A open at a time.

Note: Do not call this method if you are using the autECLPrinterSettings object contained in the autECLSession object.