• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            面對現實,超越自己
            逆水行舟,不進則退
            posts - 269,comments - 32,trackbacks - 0
            來源:
            http://portableapps.com/node/12561
            下載
            http://zer0dev.com/dld/download.php?id=27

            頭文件使用:
            1. !include "ProcFunc.nsh"
            2. 可使用范圍:$var為返回值
            [Section|Function]
            ${ProcFunction} "參數1" "參數2" "..." $var
            [SectionEnd|FunctionEnd]

            ${ProcessExists} "[process]"
                "[process]"            ; Name or PID

                Use with a LogicLib conditional command like If or Unless.
                Evaluates to true if the process exists or false if it does not or
                the CreateToolhelp32Snapshot fails.

            ${GetProcessPID} "[process]" $var
                "[process]"            ; Name or PID
               
                $var(output)          ; -2 - CreateToolhelp32Snapshot failed
                                           ;  0 - process does not exist
                                           ; >0 - PID

            ${GetProcessPath} "[process]" $var
                "[process]"            ; Name or PID
               
                $var(output)          ; -2 - CreateToolhelp32Snapshot failed
                                           ; -1 - OpenProcess failed
                                           ;  0 - process does not exist
                                           ; Or path to process

            ${GetProcessParent} "[process]" $var
                "[process]"            ; Name or PID

                $var(output)          ; -2 - CreateToolhelp32Snapshot failed
                                           ;  0 - process does not exist
                                           ; Or PPID

            ${GetProcessName} "[PID]" $var
                "[PID]"                 ; PID

                $var(output)         ; -2 - CreateToolhelp32Snapshot failed
                                          ;  0 - process does not exist
                                          ; Or process name

            ${EnumProcessPaths} "Function" $var
                "Function"            ; Callback function
                $var(output)         ; -2 - EnumProcesses failed
                                          ;  1 - success

                Function "Function"
                    Pop $var1        ; matching path string
                    Pop $var2        ; matching process PID
                    ...user commands
                    Push [1/0]       ; must return 1 on the stack to continue
                                         ; must return some value or corrupt the stack
                                         ; DO NOT save data in $0-$9
                FunctionEnd

            ${ProcessWait} "[process]" "[timeout]" $var
                "[process]"          ; Name
                "[timeout]"          ; -1 - do not timeout
                                         ; >0 - timeout in milliseconds

                $var(output)        ; -2 - CreateToolhelp32Snapshot failed
                                         ; -1 - operation timed out
                                         ; Or PID

            ${ProcessWait2} "[process]" "[timeout]" $var
                "[process]"          ; Name
                "[timeout]"          ; -1 - do not timeout
                                         ; >0 - timeout in milliseconds

                $var(output)        ; -1 - operation timed out
                                         ; Or PID

            ${ProcessWaitClose} "[process]" "[timeout]" $var
                "[process]"          ; Name
                "[timeout]"          ; -1 - do not timeout
                                         ; >0 - timeout in milliseconds

                $var(output)        ; -1 - operation timed out
                                         ;  0 - process does not exist
                                         ; Or PID of ended process

            ${CloseProcess} "[process]" $var
                "[process]"          ; Name or PID

                $var(output)        ; 0 - process does not exist
                                         ; Or PID of ended process

            ${TerminateProcess} "[process]" $var
                "[process]"          ; Name or PID

                $var(output)        ; -1 - operation failed
                                         ;  0 - process does not exist
                                         ; Or PID of ended process

            ${Execute} "[command]" "[working_dir]" $var
                "[command]"        ; '"X:\path\to\prog.exe" arg1 arg2 "arg3 with space"'
                "[working_dir]"     ; Working directory ("X:\path\to\dir") or nothing ("")

                $var(output)        ; 0 - failed to create process
                                         ; Or PID
            */

            本文轉自:http://www.dreams8.com/forum.php?mod=viewthread&tid=17067&fromuid=1
            posted on 2012-10-18 14:09 王海光 閱讀(867) 評論(0)  編輯 收藏 引用 所屬分類: NSIS
            国内精品九九久久精品| 久久久青草青青国产亚洲免观| 午夜精品久久久久久久久| 91精品国产综合久久婷婷| 青青青青久久精品国产| 亚洲综合久久久| 欧美综合天天夜夜久久| 精品久久久久久国产| 久久av高潮av无码av喷吹| 国产A三级久久精品| 久久高清一级毛片| 久久婷婷国产综合精品| 亚洲精品成人网久久久久久| 久久综合九色综合精品| 色婷婷综合久久久中文字幕| 色综合久久久久综合99| 久久综合九色综合久99| 漂亮人妻被黑人久久精品| 性做久久久久久久久浪潮| 爱做久久久久久| 97久久精品人妻人人搡人人玩| 2021国产精品久久精品| 午夜精品久久久久9999高清| 国内精品久久久久久不卡影院| 久久精品国产网红主播| 久久久久亚洲AV成人片| 欧美黑人激情性久久| 日韩人妻无码精品久久久不卡| 精品伊人久久大线蕉色首页| 亚洲欧美日韩精品久久亚洲区 | 韩国免费A级毛片久久| 精产国品久久一二三产区区别| 香蕉久久永久视频| 性欧美大战久久久久久久 | 久久伊人五月丁香狠狠色| 亚洲国产成人久久综合碰| 久久久久久久综合狠狠综合| 久久久久亚洲AV无码观看 | 成人综合伊人五月婷久久| 漂亮人妻被黑人久久精品| 97久久香蕉国产线看观看|