Another idea...You may be able to avoid using the XDClientName.exe altogether if someone can figure out how to connect to the wfAPI library via kix? If that's possible?

http://community.citrix.com/display/xa/How+to+get+Client+IP+and+hostname+using+Citrix+WFAPI+SDK