Re: Invoking gpg2.exe from C# script

2011-07-13 Thread Robert J. Hansen
> Any good examples you can point me to? Examples of what? P/Invoke? For that, check MSDN. (If you Google "p/invoke," it's the third or fourth link.) Of GPGME? Check the documentation. Of using P/Invoke with GPGME? Not aware of any: the technique is sufficiently straightforward, once you

Re: Invoking gpg2.exe from C# script

2011-07-13 Thread Marc Haber
On Tue, July 12, 2011 7:31 pm, Robert J. Hansen wrote: > On 7/12/11 10:48 AM, Marc Haber wrote: >> I would like the user to avoid typing the password each time, but I'm >> not sure of how to call gpg2.exe while providing the passphrase on >> the command line. > > I'd suggest using P/Invoke on GPGME

Re: Invoking gpg2.exe from C# script

2011-07-12 Thread Robert J. Hansen
On 7/12/11 10:48 AM, Marc Haber wrote: > I would like the user to avoid typing the password each time, but I'm > not sure of how to call gpg2.exe while providing the passphrase on > the command line. I'd suggest using P/Invoke on GPGME. Doing this from within managed code is going to bring you no

Invoking gpg2.exe from C# script

2011-07-12 Thread Marc Haber
Hi guys. I'm currently working on a small C# utility that, among other things, has to decrypt files using GnuPG. I would like the user to avoid typing the password each time, but I'm not sure of how to call gpg2.exe while providing the passphrase on the command line. I tested this but it doesn't se