  W i n E x e c (   )   f u n c t i o n 
 
 W i n E x e c (   s t r C o m m a n d ,   o p t n u m S t a t e ,   o p t n u m S y n c ,   " o p t t a g R e t u r n O r H a n d l e "   ) 
 
 
 
 
 
 D e s c r i p t i o n :   E x e c u t e s   a   W i n d o w s   c o m m a n d   l i n e . 
 
 
 
 
 
 P a r a m e t e r s : 
 
 
         s t r C o m m a n d   -   S t r i n g   t a g   c o n t a i n i n g   t h e   c o m m a n d   l i n e   t o   e x e c u t e . 
 
 
 
 
 
         o p t n u m S t a t e   -   O p t i o n a l   n u m e r i c   t a g   c o n t a i n i n g   a n   i n t e g e r   t h a t   d e f i n e s   t h e   i n i t i a l   s t a t e   o f   a   n e w   a p p l i c a t i o n   ( T h e   d e f a u l t   i s   1 ) : 
 
 
             "   0 :   H i d e s   t h e   a p p l i c a t i o n   a n d   g i v e s   c o n t r o l   t o   a n o t h e r   o n e . 
 
 
             "   1 :   A c t i v a t e s   a n d   d i s p l a y s   t h e   a p p l i c a t i o n . 
 
 
             "   2 :   A c t i v a t e s   t h e   a p p l i c a t i o n   a n d   d i s p l a y s   i t   a s   a n   i c o n . 
 
 
             "   3 :   A c t i v a t e s   t h e   a p p l i c a t i o n   a n d   m a x i m i z e s   i t . 
 
 
             "   4 :   S h o w s   t h e   a p p l i c a t i o n   w i t h   i t s   r e c e n t   s i z e .   T h e   a p p l i c a t i o n   i s   s t i l l   a c t i v e . 
 
 
             "   7 :   S h o w s   t h e   a p p l i c a t i o n   a s   a n   i c o n .   T h e   a p p l i c a t i o n   i s   s t i l l   a c t i v e .   
 
       o p t n u m S y n c   -   O p t i o n a l   n u m e r i c   t a g   o r   c o n s t a n t   t h a t   s p e c i f i e s   i f   t h e   f u n c t i o n   w i l l   e x e c u t e   s y n c h r o n o u s l y   o r   a s y n c h r o n o u s l y .   W h e n   e x e c u t i n g   s y n c h r o n o u s l y ,   t h e   f u n c t i o n   w i l l   r e t u r n   w h e n   t h e   e x e c u t a b l e   f i n i s h   i t s   e x e c u t i o n .   W h e n   e x e c u t i n g   a s y n c h r o n o u s l y   t h e   f u n c t i o n   w i l l   r e t u r n   i m m e d i a t e l y   ( T h e   d e f a u l t   i s   0 ) : 
 
 
             "   0 :   A s y n c h r o n o u s   m o d e . 
 
 
             "   1 :   S y n c h r o n o u s   m o d e . 
 
 
 
 
 
         " o p t t a g R e t u r n O r H a n d l e "   -   Y o u   s h o u l d   s p e c i f y   a   s t r i n g   w i t h   t h e   t a g   n a m e   t h a t   w i l l   r e c e i v e   e i t h e r   t h e   R e t u r n   c o d e   ( w h e n   e x e c u t i n g   S y n c h r o n o u s l y )   o f   t h e   e x e c u t a b l e   f i l e   o r   t h e   p r o g r a m   h a n d l e   t h a t   c a n   b e   u s e d   i n   t h e   W i n E x e c I s R u n n i n g   f u n c t i o n   t o   d e t e r m i n e   w h e t h e r   t h e   e x e c u t a b l e   i s   s t i l l   r u n n i n g . 
 
 
 
 
 
     R e t u r n e d   V a l u e s : 
 
 
         0   -   C o m m a n d   w a s   n o t   e x e c u t e d   s u c c e s s f u l l y . 
 
 
         1   -   C o m m a n d   w a s   e x e c u t e d   s u c c e s s f u l l y . 
 
 