• <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 王海光 閱讀(879) 評論(0)  編輯 收藏 引用 所屬分類: NSIS
            av无码久久久久不卡免费网站 | 国产精品毛片久久久久久久| 久久综合噜噜激激的五月天| 人妻无码中文久久久久专区| 久久这里只有精品首页| 久久久久久伊人高潮影院| 国产无套内射久久久国产| 99久久亚洲综合精品网站| 伊人久久综合精品无码AV专区| 久久久久久人妻无码| 伊人色综合久久天天人守人婷 | 久久久久久亚洲精品影院| 久久久午夜精品| 色综合久久中文字幕综合网| 日韩亚洲国产综合久久久| 久久综合九色综合精品| 久久精品国内一区二区三区| 久久91精品久久91综合| 区亚洲欧美一级久久精品亚洲精品成人网久久久久| 久久免费看黄a级毛片| 亚洲精品高清久久| 久久婷婷激情综合色综合俺也去| 亚洲AV伊人久久青青草原| 国内精品欧美久久精品| 久久国产精品久久国产精品| 久久国产免费观看精品3| 久久99国产精品久久99小说| 久久久久国产| 色播久久人人爽人人爽人人片aV| 激情久久久久久久久久| 久久777国产线看观看精品| av午夜福利一片免费看久久| 大伊人青草狠狠久久| 国产精品久久国产精品99盘| www.久久精品| yellow中文字幕久久网 | 99精品久久精品一区二区| 久久青青草原亚洲av无码app | 久久精品国产男包| 国内高清久久久久久| 精品久久久久久久无码|