blob: 7a68c174c375ee5762c1e2622098320a4aedb8dd (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#pragma once
// 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.
#if defined(__cplusplus)
extern "C" {
#endif
// structs
typedef struct _BURN_APPROVED_EXE
{
LPWSTR sczId;
LPWSTR sczKey;
LPWSTR sczValueName;
BOOL fWin64;
} BURN_APPROVED_EXE;
typedef struct _BURN_APPROVED_EXES
{
BURN_APPROVED_EXE* rgApprovedExes;
DWORD cApprovedExes;
} BURN_APPROVED_EXES;
typedef struct _BURN_LAUNCH_APPROVED_EXE
{
HWND hwndParent;
LPWSTR sczId;
LPWSTR sczExecutablePath;
LPWSTR sczArguments;
DWORD dwWaitForInputIdleTimeout;
} BURN_LAUNCH_APPROVED_EXE;
// function declarations
HRESULT ApprovedExesParseFromXml(
__in BURN_APPROVED_EXES* pApprovedExes,
__in IXMLDOMNode* pixnBundle
);
void ApprovedExesUninitialize(
__in BURN_APPROVED_EXES* pApprovedExes
);
void ApprovedExesUninitializeLaunch(
__in BURN_LAUNCH_APPROVED_EXE* pLaunchApprovedExe
);
HRESULT ApprovedExesFindById(
__in BURN_APPROVED_EXES* pApprovedExes,
__in_z LPCWSTR wzId,
__out BURN_APPROVED_EXE** ppApprovedExe
);
HRESULT ApprovedExesLaunch(
__in BURN_VARIABLES* pVariables,
__in BURN_LAUNCH_APPROVED_EXE* pLaunchApprovedExe,
__out DWORD* pdwProcessId
);
HRESULT ApprovedExesVerifySecureLocation(
__in BURN_CACHE* pCache,
__in BURN_VARIABLES* pVariables,
__in LPCWSTR wzExecutablePath
);
#if defined(__cplusplus)
}
#endif
|