• <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
            日本WV一本一道久久香蕉| 日韩va亚洲va欧美va久久| 国产成人久久精品激情| 99国产精品久久| 久久久久婷婷| 久久久久人妻精品一区二区三区 | 国产免费久久精品99re丫y| 久久久久青草线蕉综合超碰| 久久无码人妻一区二区三区午夜| 婷婷综合久久中文字幕| 亚洲国产成人乱码精品女人久久久不卡| 亚洲日本久久久午夜精品| 久久精品国产半推半就| 精品国产青草久久久久福利| 99热精品久久只有精品| 亚洲精品无码久久久| www.久久热.com| 天天躁日日躁狠狠久久| 亚洲一级Av无码毛片久久精品| 精品国产一区二区三区久久久狼| 久久久精品久久久久特色影视| 久久精品人人槡人妻人人玩AV| 色综合久久88色综合天天 | 97精品伊人久久久大香线蕉| 午夜精品久久久久久毛片| 一级女性全黄久久生活片免费 | 国产日韩久久久精品影院首页| 久久99精品久久久大学生| 欧美麻豆久久久久久中文| 91精品国产色综久久| 国产欧美久久一区二区| 777米奇久久最新地址| 无码人妻久久一区二区三区| 免费精品久久天干天干| 日韩十八禁一区二区久久| 久久无码精品一区二区三区| 久久成人国产精品一区二区| 91精品国产高清久久久久久91| 成人国内精品久久久久一区| 男女久久久国产一区二区三区| 久久人人爽人人人人片av|