一 一成 Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-12 #1 我用shellexecute语句打开c:/iii.exe程序,现在想要得到iii.exe的句柄,怎么写<br>用findwindow我做不到,因为这个程序任务管理器里面隐藏了,我的想法是可不可以直接在打开的<br>时候就得到句柄
我用shellexecute语句打开c:/iii.exe程序,现在想要得到iii.exe的句柄,怎么写<br>用findwindow我做不到,因为这个程序任务管理器里面隐藏了,我的想法是可不可以直接在打开的<br>时候就得到句柄
Q qdyoung Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-12 #2 用createprocess<br><br>--<br>http://www.8421.org
张 张无忌 Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-12 #3 用CreateProcess()很容易做呀,呵呵,返回的哪个参数就是他的进程句柄,
一 一成 Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-12 #6 那怎么用啊,老大,help me<br><br>我记得原来看到过类似于下面的语句,不知是不是我记错了<br>handle:=shellexecute(.....); //打开的时候就得到句柄<br>我没试得起来,这样的语句有没有得到的可能
那怎么用啊,老大,help me<br><br>我记得原来看到过类似于下面的语句,不知是不是我记错了<br>handle:=shellexecute(.....); //打开的时候就得到句柄<br>我没试得起来,这样的语句有没有得到的可能
Q qdyoung Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-12 #7 shellexecute:<br>If the function succeeds, <br>the return value is the instance handle of the application that was run, <br>or the handle of a dynamic data exchange (DDE) server application.<br>
shellexecute:<br>If the function succeeds, <br>the return value is the instance handle of the application that was run, <br>or the handle of a dynamic data exchange (DDE) server application.<br>
T talentboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-28 #9 Delphi的帮助中说:<br><br>BOOL CreateProcess(<br><br> LPCTSTR lpApplicationName, // pointer to name of executable module <br> LPTSTR lpCommandLine, // pointer to command line string<br> LPSECURITY_ATTRIBUTES lpProcessAttributes, // pointer to process security attributes <br> LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to thread security attributes <br> BOOL bInheritHandles, // handle inheritance flag <br> DWORD dwCreationFlags, // creation flags <br> LPVOID lpEnvironment, // pointer to new environment block <br> LPCTSTR lpCurrentDirectory, // pointer to current directory name <br> LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO <br> LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION <br> [8D]
Delphi的帮助中说:<br><br>BOOL CreateProcess(<br><br> LPCTSTR lpApplicationName, // pointer to name of executable module <br> LPTSTR lpCommandLine, // pointer to command line string<br> LPSECURITY_ATTRIBUTES lpProcessAttributes, // pointer to process security attributes <br> LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to thread security attributes <br> BOOL bInheritHandles, // handle inheritance flag <br> DWORD dwCreationFlags, // creation flags <br> LPVOID lpEnvironment, // pointer to new environment block <br> LPCTSTR lpCurrentDirectory, // pointer to current directory name <br> LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO <br> LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION <br> [8D]