I know that I can easily start an Office application (e.g., Word, Access, etc) from another program. However, is there anything I can do in kernel mode to make the Office application run as an in-process server to the program that is starting it? Hope this makes sense.
Do you mean by modifying the command line used to start said application or something?
mm
Sorry to be unclear. Lets say in myprog.exe I run
CreateProcess("msaccess.exe). It will start Access as an out-of-process
server. Is there a way to manipulate anything so that msaccess.exe is
created as an in-process server to myprog.exe?
On 6/1/2010 1:23 AM, xxxxx@gmail.com wrote:
Do you mean by modifying the command line used to start said application or something?
mm
When is this initiated from the kernel? What event happens in kernel mode
that triggers this? Is this creation of a process and then triggers another
process creation in a blocking manner? If yes, then there is a high chance
that the process manager has already acquired some locks while you get the
notification in kernel. And in that path if a new process creation is
attempted, that might cause the process manager to try the lock again and
thereby causing a deadlock.
Regards,
Ayush Gupta
AI Consulting
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
Sent: Tuesday, June 01, 2010 8:55 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Starting Access as an in-process server
Sorry to be unclear. Lets say in myprog.exe I run
CreateProcess("msaccess.exe). It will start Access as an out-of-process
server. Is there a way to manipulate anything so that msaccess.exe is
created as an in-process server to myprog.exe?
On 6/1/2010 1:23 AM, xxxxx@gmail.com wrote:
Do you mean by modifying the command line used to start said application
or something?mm
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
> server. Is there a way to manipulate anything so that msaccess.exe is
created as an in-process server to myprog.exe?
EXE mandates the own process and cannot work as inproc server.
It can run hidden without the UI though.
To achive this, try running “msaccess.exe /Automation” or “msaccess.exe /Embedding”
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
It would seem like by the time it gets to you, it would be too late to affect this change, unless there’s some heroics going on.
I’m not saying that this would necessarily work or be a good idea, but you might be able to do something deeply sketchy with ImageFileExecutionOptions, like redirect msaccess.exe to some application that you write that figures out whether to add the appropriate automation options to the launch command.
Good luck,
mm