dua command EXECUTEPROCESS

G

Guest

Hi all,

Can anyone give me a sample that use EXECUTEPROCESS command to run "fbwfmgr
/disable" and hide the console windows? I dont know how to set "StartupInfo"
optional. thanks!

Regards,
Davy
 
G

Guest

Hi Davy,

you can use the followinf code to hide console.
executeProcess.StartInfo.UseShellExecute = false;
 
K

KM

Davy,

Hmm.. I don't recall exactly but you may not be able to hide the console window that is implicitly created for a console-type
application with setting the right flags of the "StartupInfo" structure. Console app has its own class atom registered by the system
and tend to ignore windows styles you pass-in the application.

Workaround is either to:
- create your simple app that calls to FBWF API to do what you wanted to use from FbwfMgr. This app should be Window app (not
console) and should not create a visible window.

- create another middle level Win32 App that will be responsible for launching the FbwfMgr, watching on its console window (CBT
hook would server the best here but straightforward FindWindow/EnumWindow approach would also work but you could end up with a
short-time window flick) and hide it immediately.
 
G

Guest

Hi Km,

I think Davy just want to write an application to control FBWF without using
FBWFAPI. That's why he needs to crate Process for command.
 
G

Guest

Hi Ethan Chen,

Thanks for your help, but i want to write a DUA script file rather than an
application.

Hi KM,

It sounds right that you said. I will try your suggestions. Thanks!

Regards,
Davy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top