----- Original Message ----- 
From: "Michael Ellery" <[EMAIL PROTECTED]>
To: "'perl-win32-users'" <[email protected]>
Sent: Tuesday, April 29, 2008 5:24 AM
Subject: Win32::Process::Create


> ..I use this function pretty regularly to spawn procs on windows, but
> I've often wanted to minimize the console or main window that was
> launched.  Does anyone know how to do this?  In the corresponding WIN32
> API, there is a STARTUPINFO structure that allows this, but looks like
> it's not part of the Win32::Process API.  Advice appreciated.

Jst a couple of thoughts - I don't have time to test any of this out at the 
moment.

What happens if you launch the script using the wperl executable instead of 
the perl executable ?

Have you checked the various flags constants ? From the docs:

------------------------------------------
EXPORTS
    The following constants are exported by default:

            CREATE_DEFAULT_ERROR_MODE
            CREATE_NEW_CONSOLE
            CREATE_NEW_PROCESS_GROUP
            CREATE_NO_WINDOW
            CREATE_SEPARATE_WOW_VDM
            CREATE_SUSPENDED
            CREATE_UNICODE_ENVIRONMENT
            DEBUG_ONLY_THIS_PROCESS
            DEBUG_PROCESS
            DETACHED_PROCESS
            HIGH_PRIORITY_CLASS
            IDLE_PRIORITY_CLASS
            INFINITE
            NORMAL_PRIORITY_CLASS
            REALTIME_PRIORITY_CLASS
            THREAD_PRIORITY_ABOVE_NORMAL
            THREAD_PRIORITY_BELOW_NORMAL
            THREAD_PRIORITY_ERROR_RETURN
            THREAD_PRIORITY_HIGHEST
            THREAD_PRIORITY_IDLE
            THREAD_PRIORITY_LOWEST
            THREAD_PRIORITY_NORMAL
            THREAD_PRIORITY_TIME_CRITICAL

    The following additional constants are exported by request only:

            STILL_ACTIVE
------------------------------------------

I was thinking specifically of CREATE_NO_WINDOW constant (but perhaps that 
does something else).

Cheers,
Rob 

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to