dua command EXECUTEPROCESS

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Hi Davy,

you can use the followinf code to hide console.
executeProcess.StartInfo.UseShellExecute = false;
 
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.
 
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.
 
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
 
Back
Top