• <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>
            面對現(xiàn)實,超越自己
            逆水行舟,不進則退
            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} "參數(shù)1" "參數(shù)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
            */

            本文轉(zhuǎn)自:http://www.dreams8.com/forum.php?mod=viewthread&tid=17067&fromuid=1
            posted on 2012-10-18 14:09 王海光 閱讀(879) 評論(0)  編輯 收藏 引用 所屬分類: NSIS
            久久受www免费人成_看片中文| 亚洲午夜久久久| 93精91精品国产综合久久香蕉| 久久久久一区二区三区| 久久一区二区三区免费| 久久亚洲精品无码aⅴ大香| 国产精品一区二区久久国产| 精品水蜜桃久久久久久久| 久久亚洲精品中文字幕| 国产精品伊人久久伊人电影 | 欧洲精品久久久av无码电影| 青青草国产精品久久久久| 久久久久亚洲AV无码专区首JN| 99久久婷婷国产综合精品草原 | 国产精品美女久久久久| 国产一区二区久久久| 亚洲精品高清国产一久久| 久久AV无码精品人妻糸列| 天堂无码久久综合东京热| 久久免费精品视频| 99精品国产在热久久| 久久偷看各类wc女厕嘘嘘| 2021最新久久久视精品爱| 久久久久黑人强伦姧人妻| 热99re久久国超精品首页| 777米奇久久最新地址| 72种姿势欧美久久久久大黄蕉| 久久中文字幕精品| 欧美与黑人午夜性猛交久久久| 天天综合久久久网| 久久综合久久综合久久综合| 精品国产一区二区三区久久久狼| 99久久免费国产精品特黄| 亚洲国产精品嫩草影院久久 | 国产成年无码久久久免费| 久久人人添人人爽添人人片牛牛| 无码8090精品久久一区| 亚洲国产成人精品91久久久 | 久久精品无码一区二区WWW| 久久久国产亚洲精品| 久久久SS麻豆欧美国产日韩|