Super Shell
Super Shell
SESHO""IN#O" = &H$ Public Enu% enS" S" HI#E = & S" NOR'A( = $ S" 'A)I'I*E = + S" 'INI'I*E = , En- Enu% Private T.pe PROCESS INFOR'ATION /Process As (on0 /T/rea- As (on0 -1ProcessI- As (on0 -1T/rea-I- As (on0 En- T.pe Private T.pe START!PINFO cb As (on0 lpReserve- As Strin0 lp#es2top As Strin0 lpTitle As Strin0 -1) As (on0 -13 As (on0 -1)Si4e As (on0 -13Si4e As (on0 -1)CountC/ars As (on0 -13CountC/ars As (on0 -1FillAttribute As (on0 -1Fla0s As (on0 1S/o1"in-o1 As Inte0er cbReserve-5 As Inte0er lpReserve-5 As 6.te /St-Input As (on0 /St-Output As (on0 /St-Error As (on0 En- T.pe T.pe SEC!RIT3 ATTRI6!TES n(en0t/ As (on0 lpSecurit.#escriptor As (on0 bIn/eritHan-le As (on0 En- T.pe Public Enu% enPriorit. Class NOR'A( PRIORIT3 C(ASS = &H5& I#(E PRIORIT3 C(ASS = &H7& HI8H PRIORIT3 C(ASS = &H9& En- Enu% Private #eclare Function CreateProcess (ib :2ernel+5: Alias :CreateProcessA: ;6.<al lpApplicationNa%e As Strin0= 6.<al lpCo%%an-(ine As Strin0= lpProcessAttributes As SEC!RIT3 ATTRI6!TES= lpT/rea-Attributes As SEC!RIT3 ATTRI6!TES= 6.<al bIn/eritHan-les As (on0= 6.<al -1CreationFla0s As (on0= lpEnviron%ent As An.= 6.<al lpCurrent#riector. As Strin0= lpStartupIn>o As START!PINFO= lpProcessIn>or%ation As PROCESS INFOR'ATION? As (on0 Private #eclare Function "aitForSin0leOb@ect (ib :2ernel+5: (on0? As (on0 ;6.<al /Han-le As (on0= 6.<al -1'illisecon-s As
Public Function SuperS/ell;6.<al App As Strin0= 6.<al "or2#ir As Strin0= As enS"= 6.<al Priorit. Class As nPriorit. Class? As 6oolean #i% #i% #i% 'Not #i% #i% pclass As (on0 sin>o As START!PINFO pin>o As PROCESS INFOR'ATION use-= but nee-esec$ As SEC!RIT3 ATTRI6!TES sec5 As SEC!RIT3 ATTRI6!TES
sec$An(en0t/ = (en;sec$? sec5An(en0t/ = (en;sec5? sin>oAcb = (en;sin>o? sin>oA-1Fla0s = STARTF !SESHO""IN#O" sin>oA1S/o1"in-o1 = start si4e pclass = Priorit. Class I> CreateProcess;vbNullStrin0= App= sec$= sec5= False= pclass= &&= "or2#ir= sin>o= pin>o? T/en "aitForSin0leOb@ect pin>oA/Process= -1'illisecon-s SuperS/ell = True Else SuperS/ell = False En- I> En- Function