-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathcreate_process_AHKV2.ahk
38 lines (38 loc) · 1 KB
/
create_process_AHKV2.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CreateProcess(
lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
lpStartupInfo,
lpProcessInformation ){
/*
BOOL CreateProcessW(
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
);
*/
return dllcall('Kernel32.dll\CreateProcess',
'ptr', lpApplicationName,
'ptr', lpCommandLine,
'ptr', lpProcessAttributes,
'ptr', lpThreadAttributes,
'int', bInheritHandles,
'uint', dwCreationFlags,
'ptr', lpEnvironment,
'ptr', lpCurrentDirectory,
'ptr', lpStartupInfo,
'ptr', lpProcessInformation,
'int')
}