X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f0a70059a98b29bc273699cb25af1f6b914d100a..260f3dec11d702a907fdaf5aaee143abb01d0eb2:/pageant.c diff --git a/pageant.c b/pageant.c index 1b303e2a..6f942625 100644 --- a/pageant.c +++ b/pageant.c @@ -56,6 +56,12 @@ static gsi_fn_t getsecurityinfo; #endif /* + * Exports from pageantc.c + */ +void agent_query(void *in, int inlen, void **out, int *outlen); +int agent_exists(void); + +/* * We need this to link with the RSA code, because rsaencrypt() * pads its data with random bytes. Since we only use rsadecrypt() * and the signing functions, which are deterministic, this should @@ -1220,7 +1226,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { * Find out if Pageant is already running. */ already_running = FALSE; - if (FindWindow("Pageant", "Pageant")) + if (agent_exists()) already_running = TRUE; else {