× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Antonio,

Check out this link on infocenter:

http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzaik/rzaikemulator.h
tm#HDREMULATOR

"Personal communications session API (PCSAPI)
Use this interface to start, stop, and control emulator sessions."


If you can program in c++, the "simplest" way might be to use the
EnumWindows api to get a list of windows running on the pc, use the
::GetWindowText api to test the text of each window for something that
identifies it as a client access window, then use ::PostMessage to send a
WM_QUIT message to the window.

Steve Richter

-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of afvaiv
Sent: Sunday, December 29, 2002 10:58 AM
To: MIDRANGE-L
Subject: How to "programmatically" end "pcsws.exe"


Hi everybody, I've been looking thru the archives and could not find any
thing related to following question:
One of our NT Servers is configured with a ClientAccess (Express, in our
case) printer session and works fine.
The problem is: short before AS/400 will end ( PWRDWNSYS ) we would like
to "programatically" end the "pcsws.exe" printer session.
Obviously, I'm not talking of executing ENDPRTWTR in the AS/400, since
pcsws.exe will keep running in the PC. Not either can relay on
"programmed tasks" in the PC, since ending time for AS/400 changes from
day to day under certain circunstances.
I am thinking of some kind of  RUNRMTCMD or STRPCCMD stuff or the like
that we can send asking the NT to "kill" the pcsws.exe task...
Any idea how to build such an command ?
Happy New Year to everybody in this list !
-------------------------
Antonio Fernandez-Vicenti
afvaiv@wanadoo.es




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.