已知进程句柄,如何知道此进程的主窗口句柄
1.已知进程句柄,如何获得此进程的主窗口的句柄.
2.已经主窗口句柄如何获取当前进程
b := CreateProcess('c:\windows\System32\calc.exe'), //lpApplicationName: PChar
nil, //lpCommandLine: PChar
nil, //lpProcessAttributes: PSecurityAttributes
nil, //lpThreadAttributes: PSecurityAttributes
True, //bInheritHandles: BOOL
CREATE_NEW_CONSOLE,
nil,
PChar(Ddir),
StartInfo,
ProceInfo);
我现在通过Createprocess创进了一个进程,可我现在想知道calc.exe的主窗口句柄,如何操作?