Michael Albinus wrote:

Please do. I hoped it could be determined simply via the existence of
environment variables (as it is possible with ssh-agent, environment
variables $SSH_AUTHENTICATION_*), but it doesn't seem so easy. And I
also don't know a command like 'ps' which returns running processes,
in order to check whether pageant is active.

PuTTY itself uses the following code:

*int* *agent_exists*(*void*)
{
   HWND hwnd;
   hwnd = FindWindow(*"Pageant"*, *"Pageant"*);
   *if* (!hwnd)
        *return* FALSE;
   *else*
        *return* TRUE;
}




_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to