diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/procutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/procutil.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/procutil.h b/src/libs/dutil/WixToolset.DUtil/inc/procutil.h new file mode 100644 index 00000000..00f3f358 --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/procutil.h | |||
@@ -0,0 +1,75 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | |||
5 | #ifdef __cplusplus | ||
6 | extern "C" { | ||
7 | #endif | ||
8 | |||
9 | // structs | ||
10 | typedef struct _PROC_FILESYSTEMREDIRECTION | ||
11 | { | ||
12 | BOOL fDisabled; | ||
13 | LPVOID pvRevertState; | ||
14 | } PROC_FILESYSTEMREDIRECTION; | ||
15 | |||
16 | HRESULT DAPI ProcElevated( | ||
17 | __in HANDLE hProcess, | ||
18 | __out BOOL* pfElevated | ||
19 | ); | ||
20 | |||
21 | HRESULT DAPI ProcWow64( | ||
22 | __in HANDLE hProcess, | ||
23 | __out BOOL* pfWow64 | ||
24 | ); | ||
25 | HRESULT DAPI ProcDisableWowFileSystemRedirection( | ||
26 | __in PROC_FILESYSTEMREDIRECTION* pfsr | ||
27 | ); | ||
28 | HRESULT DAPI ProcRevertWowFileSystemRedirection( | ||
29 | __in PROC_FILESYSTEMREDIRECTION* pfsr | ||
30 | ); | ||
31 | |||
32 | HRESULT DAPI ProcExec( | ||
33 | __in_z LPCWSTR wzExecutablePath, | ||
34 | __in_z_opt LPCWSTR wzCommandLine, | ||
35 | __in int nCmdShow, | ||
36 | __out HANDLE *phProcess | ||
37 | ); | ||
38 | HRESULT DAPI ProcExecute( | ||
39 | __in_z LPWSTR wzCommand, | ||
40 | __out HANDLE *phProcess, | ||
41 | __out_opt HANDLE *phChildStdIn, | ||
42 | __out_opt HANDLE *phChildStdOutErr | ||
43 | ); | ||
44 | HRESULT DAPI ProcWaitForCompletion( | ||
45 | __in HANDLE hProcess, | ||
46 | __in DWORD dwTimeout, | ||
47 | __out DWORD *pReturnCode | ||
48 | ); | ||
49 | HRESULT DAPI ProcWaitForIds( | ||
50 | __in_ecount(cProcessIds) const DWORD* pdwProcessIds, | ||
51 | __in DWORD cProcessIds, | ||
52 | __in DWORD dwMilliseconds | ||
53 | ); | ||
54 | HRESULT DAPI ProcCloseIds( | ||
55 | __in_ecount(cProcessIds) const DWORD* pdwProcessIds, | ||
56 | __in DWORD cProcessIds | ||
57 | ); | ||
58 | |||
59 | // following code in proc2utl.cpp due to dependency on PSAPI.DLL. | ||
60 | HRESULT DAPI ProcFindAllIdsFromExeName( | ||
61 | __in_z LPCWSTR wzExeName, | ||
62 | __out DWORD** ppdwProcessIds, | ||
63 | __out DWORD* pcProcessIds | ||
64 | ); | ||
65 | |||
66 | // following code in proc3utl.cpp due to dependency on Wtsapi32.DLL. | ||
67 | HRESULT DAPI ProcExecuteAsInteractiveUser( | ||
68 | __in_z LPCWSTR wzExecutablePath, | ||
69 | __in_z LPCWSTR wzCommand, | ||
70 | __out HANDLE *phProcess | ||
71 | ); | ||
72 | |||
73 | #ifdef __cplusplus | ||
74 | } | ||
75 | #endif | ||