close

Issue:
Can’t find LPTs and all COM ports in the Printer Wizard of RDP

issue 

Root Course:

Printer Wizard (atlwbtprnwiz.dll) only scans 24 devices. Unfortunately, LPT1 is 25th device on the scan list.

 

Debug message from atlwbtprnwiz.dll

Port List:

 

[SIO1:_HCD4:_HCD3:_HCD2:_HCD1:_NBT1:_SHW1:_SVC1:_SSM1:_ETM1:

 _NW1:_SWD1:_ZCF1:_ARS1:_SCR1:_UIO1:_TCP0:_IPD0:_SIP0:_SCA1:_

WAM1:_NDS0:_COM6:_COM5:_LPT1:_COM4:_COM3:_COM2:_COM1:_ACM4:

_ACM3:_ACM2:_ACM1:_IDE1:_DSK1:__

 

C:\WINCE500\PUBLIC\RDP\OAK\UIT\WBTTSCMN\portkeeper.hpp

#define MAX_PORTS                 24

 

Solution:

 1. Change the order of device loading. Slow down
     ex:

; platform.reg
; Parallel Port Driver
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Parallel]
   "DeviceArrayIndex"=dword:0
   "Prefix"="LPT"
   "Dll"="Parallel.Dll"
   "Order"=dword:5    ; replace 0 with 5, slow down loading order


2.  Increase the MAX_PORTS of portkeeper.hpp
     C:\WINCE500\PUBLIC\RDP\OAK\UIT\WBTTSCMN\portkeeper.hpp
     #define MAX_PORTS   24

result 

 

 

全站熱搜
創作者介紹
創作者 ethanchen1108 的頭像
ethanchen1108

Windows Embedded

ethanchen1108 發表在 痞客邦 留言(0) 人氣()