1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef _HYPERV_COMPUTECORE_H_
|
---|
8 | #define _HYPERV_COMPUTECORE_H_
|
---|
9 |
|
---|
10 | #include <apiset.h>
|
---|
11 | #include <apisetcconv.h>
|
---|
12 | #include <minwindef.h>
|
---|
13 | #include <winapifamily.h>
|
---|
14 |
|
---|
15 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
---|
16 |
|
---|
17 | #include <computedefs.h>
|
---|
18 |
|
---|
19 | #ifdef __cplusplus
|
---|
20 | extern "C" {
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | HRESULT WINAPI HcsEnumerateComputeSystems (PCWSTR query, HCS_OPERATION operation);
|
---|
24 | HRESULT WINAPI HcsEnumerateComputeSystemsInNamespace (PCWSTR idNamespace, PCWSTR query, HCS_OPERATION operation);
|
---|
25 | HCS_OPERATION WINAPI HcsCreateOperation (const void *context, HCS_OPERATION_COMPLETION callback);
|
---|
26 | void WINAPI HcsCloseOperation (HCS_OPERATION operation);
|
---|
27 | void* WINAPI HcsGetOperationContext (HCS_OPERATION operation);
|
---|
28 | HRESULT WINAPI HcsSetOperationContext (HCS_OPERATION operation, const void *context);
|
---|
29 | HCS_SYSTEM WINAPI HcsGetComputeSystemFromOperation (HCS_OPERATION operation);
|
---|
30 | HCS_PROCESS WINAPI HcsGetProcessFromOperation (HCS_OPERATION operation);
|
---|
31 | HCS_OPERATION_TYPE WINAPI HcsGetOperationType (HCS_OPERATION operation);
|
---|
32 | UINT64 WINAPI HcsGetOperationId (HCS_OPERATION operation);
|
---|
33 | HRESULT WINAPI HcsGetOperationResult (HCS_OPERATION operation, PWSTR *resultDocument);
|
---|
34 | HRESULT WINAPI HcsGetOperationResultAndProcessInfo (HCS_OPERATION operation, HCS_PROCESS_INFORMATION *processInformation, PWSTR *resultDocument);
|
---|
35 | HRESULT WINAPI HcsGetProcessorCompatibilityFromSavedState (PCWSTR RuntimeFileName, PCWSTR *ProcessorFeaturesString);
|
---|
36 | HRESULT WINAPI HcsWaitForOperationResult (HCS_OPERATION operation, DWORD timeoutMs, PWSTR *resultDocument);
|
---|
37 | HRESULT WINAPI HcsWaitForOperationResultAndProcessInfo (HCS_OPERATION operation, DWORD timeoutMs, HCS_PROCESS_INFORMATION *processInformation, PWSTR *resultDocument);
|
---|
38 | HRESULT WINAPI HcsSetOperationCallback (HCS_OPERATION operation, const void *context, HCS_OPERATION_COMPLETION callback);
|
---|
39 | HRESULT WINAPI HcsCancelOperation (HCS_OPERATION operation);
|
---|
40 | HRESULT WINAPI HcsCreateComputeSystem (PCWSTR id, PCWSTR configuration, HCS_OPERATION operation, const SECURITY_DESCRIPTOR *securityDescriptor, HCS_SYSTEM *computeSystem);
|
---|
41 | HRESULT WINAPI HcsCreateComputeSystemInNamespace (PCWSTR idNamespace, PCWSTR id, PCWSTR configuration, HCS_OPERATION operation, const HCS_CREATE_OPTIONS *options, HCS_SYSTEM *computeSystem);
|
---|
42 | HRESULT WINAPI HcsOpenComputeSystem (PCWSTR id, DWORD requestedAccess, HCS_SYSTEM *computeSystem);
|
---|
43 | HRESULT WINAPI HcsOpenComputeSystemInNamespace (PCWSTR idNamespace, PCWSTR id, DWORD requestedAccess, HCS_SYSTEM *computeSystem);
|
---|
44 | void WINAPI HcsCloseComputeSystem (HCS_SYSTEM computeSystem);
|
---|
45 | HRESULT WINAPI HcsStartComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
46 | HRESULT WINAPI HcsShutDownComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
47 | HRESULT WINAPI HcsTerminateComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
48 | HRESULT WINAPI HcsCrashComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
49 | HRESULT WINAPI HcsPauseComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
50 | HRESULT WINAPI HcsResumeComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
51 | HRESULT WINAPI HcsSaveComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR options);
|
---|
52 | HRESULT WINAPI HcsGetComputeSystemProperties (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR propertyQuery);
|
---|
53 | HRESULT WINAPI HcsModifyComputeSystem (HCS_SYSTEM computeSystem, HCS_OPERATION operation, PCWSTR configuration, HANDLE identity);
|
---|
54 | HRESULT WINAPI HcsWaitForComputeSystemExit (HCS_SYSTEM computeSystem, DWORD timeoutMs, PWSTR *result);
|
---|
55 | HRESULT WINAPI HcsSetComputeSystemCallback (HCS_SYSTEM computeSystem, HCS_EVENT_OPTIONS callbackOptions, const void *context, HCS_EVENT_CALLBACK callback);
|
---|
56 | HRESULT WINAPI HcsCreateProcess (HCS_SYSTEM computeSystem, PCWSTR processParameters, HCS_OPERATION operation, const SECURITY_DESCRIPTOR *securityDescriptor, HCS_PROCESS *process);
|
---|
57 | HRESULT WINAPI HcsOpenProcess (HCS_SYSTEM computeSystem, DWORD processId, DWORD requestedAccess, HCS_PROCESS *process);
|
---|
58 | void WINAPI HcsCloseProcess (HCS_PROCESS process);
|
---|
59 | HRESULT WINAPI HcsTerminateProcess (HCS_PROCESS process, HCS_OPERATION operation, PCWSTR options);
|
---|
60 | HRESULT WINAPI HcsSignalProcess (HCS_PROCESS process, HCS_OPERATION operation, PCWSTR options);
|
---|
61 | HRESULT WINAPI HcsGetProcessInfo (HCS_PROCESS process, HCS_OPERATION operation);
|
---|
62 | HRESULT WINAPI HcsGetProcessProperties (HCS_PROCESS process, HCS_OPERATION operation, PCWSTR propertyQuery);
|
---|
63 | HRESULT WINAPI HcsModifyProcess (HCS_PROCESS process, HCS_OPERATION operation, PCWSTR settings);
|
---|
64 | HRESULT WINAPI HcsSetProcessCallback (HCS_PROCESS process, HCS_EVENT_OPTIONS callbackOptions, void *context, HCS_EVENT_CALLBACK callback);
|
---|
65 | HRESULT WINAPI HcsWaitForProcessExit (HCS_PROCESS computeSystem, DWORD timeoutMs, PWSTR *result);
|
---|
66 | HRESULT WINAPI HcsGetServiceProperties (PCWSTR propertyQuery, PWSTR *result);
|
---|
67 | HRESULT WINAPI HcsModifyServiceSettings (PCWSTR settings, PWSTR *result);
|
---|
68 | HRESULT WINAPI HcsSubmitWerReport (PCWSTR settings);
|
---|
69 | HRESULT WINAPI HcsCreateEmptyGuestStateFile (PCWSTR guestStateFilePath);
|
---|
70 | HRESULT WINAPI HcsCreateEmptyRuntimeStateFile (PCWSTR runtimeStateFilePath);
|
---|
71 | HRESULT WINAPI HcsGrantVmAccess (PCWSTR vmId, PCWSTR filePath);
|
---|
72 | HRESULT WINAPI HcsRevokeVmAccess (PCWSTR vmId, PCWSTR filePath);
|
---|
73 | HRESULT WINAPI HcsGrantVmGroupAccess (PCWSTR filePath);
|
---|
74 | HRESULT WINAPI HcsRevokeVmGroupAccess (PCWSTR filePath);
|
---|
75 |
|
---|
76 | #ifdef __cplusplus
|
---|
77 | }
|
---|
78 | #endif
|
---|
79 |
|
---|
80 | #endif /* WINAPI_PARTITION_DESKTOP */
|
---|
81 |
|
---|
82 | #endif /* _HYPERV_COMPUTECORE_H_ */
|
---|