[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Tortoiseproc apparently must have a shell

From: Thomas Denk <thomas.denk_at_gmail.com>
Date: 2005-06-22 00:11:23 CEST

> I don't know what wxExecute internally does. But if you look at
> https://svn.collab.net/repos/tortoisesvn/trunk/src/TortoiseShell/ContextMenu.cpp
>
> method CShellExt::InvokeCommand() you can see how the shell extension
> part calls TortoiseProc. Maybe you can use that.

Looked at that... apparently not much different than the shell extension?
// from utilsexc.cpp
    bool ok = ::CreateProcess
                (
                 NULL, // application name (use only cmd line)
                 (wxChar *)
                 command.c_str(), // full command line
                 NULL, // security attributes: defaults for
both
                 NULL, // the process and its main thread
                 redirect, // inherit handles if we use pipes
                 dwFlags, // process creation flags
                 NULL, // environment (use the same)
                 NULL, // current directory (use the same)
                 &si, // startup info (unused here)
                 &pi // process info
                ) != 0;

The only two real differences that I see are
1. NULL instead of tortoiseMergePath
2. redirect (boolean, true in this case) instead of FALSE
Could it really be that first parameter? MSDN explicitely says that
/lpApplicationName can be NULL. Hmm...?
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp)
/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 22 00:10:38 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.