Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +2 -0
- miniCUDA124/bin/nppif64_12.dll +3 -0
- miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/msdia140.dll +3 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EvColl.h +291 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EventSys.Idl +729 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EventSys.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.Idl +1115 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDispid.h +242 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.h +237 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.idl +69 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxCom.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx_i.c +398 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxCom_i.c +128 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxDev.h +221 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxExt.h +143 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxMmc.h +51 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxRoute.h +154 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.h +860 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.idl +238 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhErrors.h +201 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhStatus.h +78 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhSvcCtl.h +115 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FileHC.h +904 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FileOpen.Dlg +197 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Filter.h +338 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Filter.idl +160 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Filterr.h +177 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FindText.Dlg +73 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Font.Dlg +128 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FrQuery.h +128 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/event.xsd +204 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eventlogquery.xsd +25 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eventman.xsd +1332 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evntcons.h +373 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evr.h +2000 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evr.idl +1756 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evr9.h +592 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/expandedresources.h +57 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fci.h +483 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fdi.h +1082 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fdi_fci_types.h +173 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/featurestagingapi.h +109 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fibersapi.h +105 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fileapi.h +1500 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fileapifromapp.h +186 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filtereg.h +400 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filtereg.idl +94 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filterpipeline.h +0 -0
.gitattributes
CHANGED
|
@@ -127,3 +127,5 @@ miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/dpcmi.dll filter=lfs diff=lfs
|
|
| 127 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c1xx.dll filter=lfs diff=lfs merge=lfs -text
|
| 128 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/link.exe filter=lfs diff=lfs merge=lfs -text
|
| 129 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 127 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c1xx.dll filter=lfs diff=lfs merge=lfs -text
|
| 128 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/link.exe filter=lfs diff=lfs merge=lfs -text
|
| 129 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll filter=lfs diff=lfs merge=lfs -text
|
| 130 |
+
miniCUDA124/bin/nppif64_12.dll filter=lfs diff=lfs merge=lfs -text
|
| 131 |
+
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/msdia140.dll filter=lfs diff=lfs merge=lfs -text
|
miniCUDA124/bin/nppif64_12.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99a96a55b89c6f4247b27faf6c2534fefc45d12047d6930b31ba35af51e5305f
|
| 3 |
+
size 99532288
|
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/msdia140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0f3dacc4ec4fa254e817eb5ad1c8f5f844948722d51e478bd0d61c07444507a
|
| 3 |
+
size 1549704
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EvColl.h
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
/*++
|
| 2 |
+
Copyright (C) Microsoft Corporation. All rights reserved.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
evcoll.h
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
Event Collector API
|
| 12 |
+
|
| 13 |
+
--*/
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
#ifndef __EVCOLL_H__
|
| 17 |
+
#define __EVCOLL_H__
|
| 18 |
+
#include <winapifamily.h>
|
| 19 |
+
|
| 20 |
+
#pragma region Desktop Family
|
| 21 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
#ifdef __cplusplus
|
| 25 |
+
extern "C"
|
| 26 |
+
{
|
| 27 |
+
#endif
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
typedef HANDLE EC_HANDLE;
|
| 31 |
+
typedef HANDLE EC_OBJECT_ARRAY_PROPERTY_HANDLE;
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
//
|
| 35 |
+
// Access Control Permissions
|
| 36 |
+
//
|
| 37 |
+
|
| 38 |
+
/*--------------------------------------------------------------------------
|
| 39 |
+
Subscription Definitions
|
| 40 |
+
--------------------------------------------------------------------------*/
|
| 41 |
+
|
| 42 |
+
typedef enum _EC_SUBSCRIPTION_PROPERTY_ID
|
| 43 |
+
{
|
| 44 |
+
EcSubscriptionEnabled = 0, // EcVarTypeBoolean
|
| 45 |
+
EcSubscriptionEventSources, // EcVarObjectArrayPropertyHandle
|
| 46 |
+
EcSubscriptionEventSourceAddress, // EcVarTypeString
|
| 47 |
+
EcSubscriptionEventSourceEnabled, // EcVarTypeBoolean
|
| 48 |
+
EcSubscriptionEventSourceUserName, // EcVarTypeString
|
| 49 |
+
EcSubscriptionEventSourcePassword, // EcVarTypeString
|
| 50 |
+
EcSubscriptionDescription, // EcVarTypeString
|
| 51 |
+
EcSubscriptionURI, // EcVarTypeString
|
| 52 |
+
EcSubscriptionConfigurationMode, // EcVarTypeUInt32, EC_SUBSCRIPTION_CONFIGURATION_MODE
|
| 53 |
+
EcSubscriptionExpires, // EcVarTypeDateTime
|
| 54 |
+
EcSubscriptionQuery, // EcVarTypeString
|
| 55 |
+
EcSubscriptionTransportName, // EcVarTypeString
|
| 56 |
+
EcSubscriptionTransportPort, // EcVarTypeUInt32
|
| 57 |
+
EcSubscriptionDeliveryMode, // EcVarTypeUInt32, EC_SUBSCRIPTION_DELIVERY_MODE
|
| 58 |
+
EcSubscriptionDeliveryMaxItems, // EcVarTypeUInt32
|
| 59 |
+
EcSubscriptionDeliveryMaxLatencyTime, // EcVarTypeUInt32
|
| 60 |
+
EcSubscriptionHeartbeatInterval, // EcVarTypeUInt32
|
| 61 |
+
EcSubscriptionLocale, // EcVarTypeString
|
| 62 |
+
EcSubscriptionContentFormat, // EcVarTypeUInt32, EC_SUBSCRIPTION_CONTENT_FORMAT
|
| 63 |
+
EcSubscriptionLogFile, // EcVarTypeString
|
| 64 |
+
EcSubscriptionPublisherName, // EcVarTypeString
|
| 65 |
+
EcSubscriptionCredentialsType, // EcVarTypeUInt32, EC_SUBSCRIPTION_CREDENTIALS_TYPE
|
| 66 |
+
EcSubscriptionCommonUserName, // EcVarTypeString
|
| 67 |
+
EcSubscriptionCommonPassword, // EcVarTypeString
|
| 68 |
+
EcSubscriptionHostName, // EcVarTypeString
|
| 69 |
+
EcSubscriptionReadExistingEvents, // EcVarTypeBoolean
|
| 70 |
+
EcSubscriptionDialect, // EcVarTypeString
|
| 71 |
+
EcSubscriptionType, // EcVarTypeUInt32, EC_SUBSCRIPTION_TYPE
|
| 72 |
+
EcSubscriptionAllowedIssuerCAs, // EcVarTypeString | EcArrayBitMask
|
| 73 |
+
EcSubscriptionAllowedSubjects, // EcVarTypeString | EcArrayBitMask
|
| 74 |
+
EcSubscriptionDeniedSubjects, // EcVarTypeString | EcArrayBitMask
|
| 75 |
+
EcSubscriptionAllowedSourceDomainComputers, // EcVarTypeString SDDL
|
| 76 |
+
EcSubscriptionPropertyIdEND
|
| 77 |
+
} EC_SUBSCRIPTION_PROPERTY_ID;
|
| 78 |
+
|
| 79 |
+
typedef enum _EC_SUBSCRIPTION_CREDENTIALS_TYPE {
|
| 80 |
+
EcSubscriptionCredDefault = 0,
|
| 81 |
+
EcSubscriptionCredNegotiate,
|
| 82 |
+
EcSubscriptionCredDigest,
|
| 83 |
+
EcSubscriptionCredBasic,
|
| 84 |
+
EcSubscriptionCredLocalMachine
|
| 85 |
+
} EC_SUBSCRIPTION_CREDENTIALS_TYPE;
|
| 86 |
+
|
| 87 |
+
typedef enum _EC_SUBSCRIPTION_TYPE {
|
| 88 |
+
EcSubscriptionTypeSourceInitiated = 0,
|
| 89 |
+
EcSubscriptionTypeCollectorInitiated = 1
|
| 90 |
+
} EC_SUBSCRIPTION_TYPE;
|
| 91 |
+
|
| 92 |
+
typedef enum _EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID
|
| 93 |
+
{
|
| 94 |
+
EcSubscriptionRunTimeStatusActive = 0, // EcVarTypeUInt32, EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS
|
| 95 |
+
EcSubscriptionRunTimeStatusLastError, // EcVarTypeUInt32
|
| 96 |
+
EcSubscriptionRunTimeStatusLastErrorMessage, // EcVarTypeString
|
| 97 |
+
EcSubscriptionRunTimeStatusLastErrorTime, // EcVarTypeDateTime
|
| 98 |
+
EcSubscriptionRunTimeStatusNextRetryTime, // EcVarTypeDateTime
|
| 99 |
+
EcSubscriptionRunTimeStatusEventSources, // EcVarTypeString | ArrayBitMask
|
| 100 |
+
EcSubscriptionRunTimeStatusLastHeartbeatTime, // EcVarTypeDateTime
|
| 101 |
+
EcSubscriptionRunTimeStatusInfoIdEND
|
| 102 |
+
} EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID;
|
| 103 |
+
|
| 104 |
+
typedef enum _EC_VARIANT_TYPE
|
| 105 |
+
{
|
| 106 |
+
EcVarTypeNull = 0,
|
| 107 |
+
EcVarTypeBoolean,
|
| 108 |
+
EcVarTypeUInt32,
|
| 109 |
+
EcVarTypeDateTime,
|
| 110 |
+
EcVarTypeString,
|
| 111 |
+
EcVarObjectArrayPropertyHandle
|
| 112 |
+
} EC_VARIANT_TYPE;
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
#define EC_VARIANT_TYPE_MASK 0x7f
|
| 116 |
+
#define EC_VARIANT_TYPE_ARRAY 128
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
typedef struct _EC_VARIANT
|
| 120 |
+
{
|
| 121 |
+
union
|
| 122 |
+
{
|
| 123 |
+
BOOL BooleanVal;
|
| 124 |
+
UINT32 UInt32Val;
|
| 125 |
+
ULONGLONG DateTimeVal;
|
| 126 |
+
LPCWSTR StringVal;
|
| 127 |
+
PBYTE BinaryVal;
|
| 128 |
+
BOOL* BooleanArr;
|
| 129 |
+
INT32* Int32Arr;
|
| 130 |
+
LPWSTR* StringArr;
|
| 131 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE PropertyHandleVal;
|
| 132 |
+
};
|
| 133 |
+
|
| 134 |
+
DWORD Count; // number of elements not length in bytes. Used for arrays
|
| 135 |
+
// and binary/string types.
|
| 136 |
+
DWORD Type;
|
| 137 |
+
|
| 138 |
+
} EC_VARIANT, *PEC_VARIANT;
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
#define EC_READ_ACCESS 1
|
| 143 |
+
#define EC_WRITE_ACCESS 2
|
| 144 |
+
|
| 145 |
+
#define EC_OPEN_ALWAYS 0
|
| 146 |
+
#define EC_CREATE_NEW 1
|
| 147 |
+
#define EC_OPEN_EXISTING 2
|
| 148 |
+
|
| 149 |
+
typedef enum _EC_SUBSCRIPTION_CONFIGURATION_MODE
|
| 150 |
+
{
|
| 151 |
+
EcConfigurationModeNormal = 0,
|
| 152 |
+
EcConfigurationModeCustom,
|
| 153 |
+
EcConfigurationModeMinLatency,
|
| 154 |
+
EcConfigurationModeMinBandwidth
|
| 155 |
+
|
| 156 |
+
} EC_SUBSCRIPTION_CONFIGURATION_MODE;
|
| 157 |
+
|
| 158 |
+
typedef enum _EC_SUBSCRIPTION_DELIVERY_MODE
|
| 159 |
+
{
|
| 160 |
+
EcDeliveryModePull = 1,
|
| 161 |
+
EcDeliveryModePush
|
| 162 |
+
|
| 163 |
+
} EC_SUBSCRIPTION_DELIVERY_MODE;
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
typedef enum _EC_SUBSCRIPTION_CONTENT_FORMAT
|
| 167 |
+
{
|
| 168 |
+
EcContentFormatEvents = 1,
|
| 169 |
+
EcContentFormatRenderedText
|
| 170 |
+
} EC_SUBSCRIPTION_CONTENT_FORMAT;
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
typedef enum _EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS
|
| 174 |
+
{
|
| 175 |
+
EcRuntimeStatusActiveStatusDisabled = 1,
|
| 176 |
+
EcRuntimeStatusActiveStatusActive,
|
| 177 |
+
EcRuntimeStatusActiveStatusInactive,
|
| 178 |
+
EcRuntimeStatusActiveStatusTrying
|
| 179 |
+
} EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS;
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
EC_HANDLE WINAPI EcOpenSubscriptionEnum(
|
| 183 |
+
DWORD Flags
|
| 184 |
+
);
|
| 185 |
+
|
| 186 |
+
BOOL WINAPI EcEnumNextSubscription(
|
| 187 |
+
EC_HANDLE SubscriptionEnum,
|
| 188 |
+
DWORD SubscriptionNameBufferSize,
|
| 189 |
+
_Out_writes_to_opt_(SubscriptionNameBufferSize,*SubscriptionNameBufferUsed)
|
| 190 |
+
LPWSTR SubscriptionNameBuffer,
|
| 191 |
+
_Out_ PDWORD SubscriptionNameBufferUsed
|
| 192 |
+
);
|
| 193 |
+
|
| 194 |
+
EC_HANDLE WINAPI EcOpenSubscription(
|
| 195 |
+
LPCWSTR SubscriptionName,
|
| 196 |
+
DWORD AccessMask,
|
| 197 |
+
DWORD Flags
|
| 198 |
+
);
|
| 199 |
+
|
| 200 |
+
BOOL WINAPI EcSetSubscriptionProperty(
|
| 201 |
+
EC_HANDLE Subscription,
|
| 202 |
+
EC_SUBSCRIPTION_PROPERTY_ID PropertyId,
|
| 203 |
+
DWORD Flags,
|
| 204 |
+
PEC_VARIANT PropertyValue
|
| 205 |
+
);
|
| 206 |
+
|
| 207 |
+
BOOL WINAPI EcGetSubscriptionProperty(
|
| 208 |
+
EC_HANDLE Subscription,
|
| 209 |
+
EC_SUBSCRIPTION_PROPERTY_ID PropertyId,
|
| 210 |
+
DWORD Flags,
|
| 211 |
+
DWORD PropertyValueBufferSize,
|
| 212 |
+
PEC_VARIANT PropertyValueBuffer,
|
| 213 |
+
_Out_ PDWORD PropertyValueBufferUsed
|
| 214 |
+
);
|
| 215 |
+
|
| 216 |
+
BOOL WINAPI EcSaveSubscription(
|
| 217 |
+
EC_HANDLE Subscription,
|
| 218 |
+
DWORD Flags
|
| 219 |
+
);
|
| 220 |
+
|
| 221 |
+
BOOL WINAPI EcDeleteSubscription(
|
| 222 |
+
LPCWSTR SubscriptionName,
|
| 223 |
+
DWORD Flags
|
| 224 |
+
);
|
| 225 |
+
|
| 226 |
+
BOOL WINAPI EcGetObjectArraySize(
|
| 227 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
|
| 228 |
+
_Out_ PDWORD ObjectArraySize
|
| 229 |
+
);
|
| 230 |
+
|
| 231 |
+
BOOL WINAPI EcSetObjectArrayProperty(
|
| 232 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
|
| 233 |
+
EC_SUBSCRIPTION_PROPERTY_ID PropertyId,
|
| 234 |
+
DWORD ArrayIndex,
|
| 235 |
+
DWORD Flags,
|
| 236 |
+
PEC_VARIANT PropertyValue
|
| 237 |
+
);
|
| 238 |
+
|
| 239 |
+
BOOL WINAPI EcGetObjectArrayProperty(
|
| 240 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
|
| 241 |
+
EC_SUBSCRIPTION_PROPERTY_ID PropertyId,
|
| 242 |
+
DWORD ArrayIndex,
|
| 243 |
+
DWORD Flags,
|
| 244 |
+
DWORD PropertyValueBufferSize,
|
| 245 |
+
PEC_VARIANT PropertyValueBuffer,
|
| 246 |
+
_Out_ PDWORD PropertyValueBufferUsed
|
| 247 |
+
);
|
| 248 |
+
|
| 249 |
+
BOOL WINAPI EcInsertObjectArrayElement(
|
| 250 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
|
| 251 |
+
DWORD ArrayIndex
|
| 252 |
+
);
|
| 253 |
+
|
| 254 |
+
BOOL WINAPI EcRemoveObjectArrayElement(
|
| 255 |
+
EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
|
| 256 |
+
DWORD ArrayIndex
|
| 257 |
+
);
|
| 258 |
+
|
| 259 |
+
BOOL WINAPI EcGetSubscriptionRunTimeStatus(
|
| 260 |
+
LPCWSTR SubscriptionName,
|
| 261 |
+
EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID StatusInfoId,
|
| 262 |
+
LPCWSTR EventSourceName,
|
| 263 |
+
DWORD Flags,
|
| 264 |
+
DWORD StatusValueBufferSize,
|
| 265 |
+
PEC_VARIANT StatusValueBuffer,
|
| 266 |
+
_Out_ PDWORD StatusValueBufferUsed
|
| 267 |
+
);
|
| 268 |
+
|
| 269 |
+
BOOL WINAPI EcRetrySubscription(
|
| 270 |
+
LPCWSTR SubscriptionName,
|
| 271 |
+
LPCWSTR EventSourceName,
|
| 272 |
+
DWORD Flags
|
| 273 |
+
);
|
| 274 |
+
|
| 275 |
+
BOOL WINAPI EcClose(
|
| 276 |
+
EC_HANDLE Object
|
| 277 |
+
);
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
#ifdef __cplusplus
|
| 281 |
+
}
|
| 282 |
+
#end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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
////////////////////////////////// -*- C++ -*- /////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// EventSystem.idl : IDL source for EventSystem.dll
|
| 4 |
+
//
|
| 5 |
+
// Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
|
| 6 |
+
// This file will be processed by the MIDL tool to produce the type library
|
| 7 |
+
// (EventSystem.tlb) and marshalling code.
|
| 8 |
+
//
|
| 9 |
+
// --------------------------------------------------------------------------
|
| 10 |
+
|
| 11 |
+
cpp_quote("#include <winapifamily.h>")
|
| 12 |
+
|
| 13 |
+
#pragma region Desktop Family
|
| 14 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 15 |
+
|
| 16 |
+
import "oaidl.idl";
|
| 17 |
+
import "ocidl.idl";
|
| 18 |
+
|
| 19 |
+
// Event System ProgID's
|
| 20 |
+
cpp_quote ("#define PROGID_EventSystem OLESTR(\"EventSystem.EventSystem\")")
|
| 21 |
+
cpp_quote ("#define PROGID_EventPublisher OLESTR(\"EventSystem.EventPublisher\")")
|
| 22 |
+
cpp_quote ("#define PROGID_EventClass OLESTR(\"EventSystem.EventClass\")")
|
| 23 |
+
cpp_quote ("#define PROGID_EventSubscription OLESTR(\"EventSystem.EventSubscription\")")
|
| 24 |
+
cpp_quote ("#define PROGID_EventPublisherCollection OLESTR(\"EventSystem.EventPublisherCollection\")")
|
| 25 |
+
cpp_quote ("#define PROGID_EventClassCollection OLESTR(\"EventSystem.EventClassCollection\")")
|
| 26 |
+
cpp_quote ("#define PROGID_EventSubscriptionCollection OLESTR(\"EventSystem.EventSubscriptionCollection\")")
|
| 27 |
+
cpp_quote ("#define PROGID_EventSubsystem OLESTR(\"EventSystem.EventSubsystem\")")
|
| 28 |
+
|
| 29 |
+
// Event System object change events
|
| 30 |
+
cpp_quote ("#define EVENTSYSTEM_PUBLISHER_ID OLESTR(\"{d0564c30-9df4-11d1-a281-00c04fca0aa7}\")")
|
| 31 |
+
cpp_quote ("#define EVENTSYSTEM_SUBSYSTEM_CLSID OLESTR(\"{503c1fd8-b605-11d2-a92d-006008c60e24}\")")
|
| 32 |
+
|
| 33 |
+
//midl_pragma warning(disable: 2039) // oleautomation conformance
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
interface IEnumEventObject;
|
| 37 |
+
interface IEventObjectCollection;
|
| 38 |
+
interface IEventControl;
|
| 39 |
+
interface IMultiInterfaceEventControl;
|
| 40 |
+
|
| 41 |
+
// --------------------------------------------------------------------------
|
| 42 |
+
//
|
| 43 |
+
// IEventSystem - Deprecated interface - Use COMAdmin interfaces instead.
|
| 44 |
+
//
|
| 45 |
+
// --------------------------------------------------------------------------
|
| 46 |
+
|
| 47 |
+
[
|
| 48 |
+
object,
|
| 49 |
+
uuid(4E14FB9F-2E22-11D1-9964-00C04FBBB345),
|
| 50 |
+
dual,
|
| 51 |
+
proxy,
|
| 52 |
+
helpstring("IEventSystem Interface"),
|
| 53 |
+
pointer_default(unique)
|
| 54 |
+
]
|
| 55 |
+
interface IEventSystem : IDispatch
|
| 56 |
+
{
|
| 57 |
+
cpp_quote("// *****************************************************************")
|
| 58 |
+
cpp_quote("// This is a Deprecated interface - Use COMAdmin interfaces instead.")
|
| 59 |
+
cpp_quote("// *****************************************************************")
|
| 60 |
+
[id(1), helpstring("method Query")]
|
| 61 |
+
HRESULT Query([in] BSTR progID,
|
| 62 |
+
[in] BSTR queryCriteria,
|
| 63 |
+
[out] int* errorIndex,
|
| 64 |
+
[out,retval] IUnknown** ppInterface);
|
| 65 |
+
|
| 66 |
+
[id(2), helpstring("method Store")]
|
| 67 |
+
HRESULT Store([in] BSTR ProgID,
|
| 68 |
+
[in] IUnknown* pInterface);
|
| 69 |
+
|
| 70 |
+
[id(3), helpstring("method Remove")]
|
| 71 |
+
HRESULT Remove([in] BSTR progID,
|
| 72 |
+
[in] BSTR queryCriteria,
|
| 73 |
+
[out] int* errorIndex);
|
| 74 |
+
|
| 75 |
+
[id(4), propget, helpstring("method get_EventObjectChangeEventClassID")]
|
| 76 |
+
HRESULT EventObjectChangeEventClassID([out,retval] BSTR* pbstrEventClassID);
|
| 77 |
+
|
| 78 |
+
[id(5), helpstring("method QueryS")]
|
| 79 |
+
HRESULT QueryS([in] BSTR progID,
|
| 80 |
+
[in] BSTR queryCriteria,
|
| 81 |
+
[out,retval] IUnknown** ppInterface);
|
| 82 |
+
|
| 83 |
+
[id(6), helpstring("method RemoveS")]
|
| 84 |
+
HRESULT RemoveS([in] BSTR progID,
|
| 85 |
+
[in] BSTR queryCriteria);
|
| 86 |
+
};
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
// --------------------------------------------------------------------------
|
| 90 |
+
//
|
| 91 |
+
// IEventPublisher -- Do Not Use.
|
| 92 |
+
//
|
| 93 |
+
// --------------------------------------------------------------------------
|
| 94 |
+
|
| 95 |
+
[
|
| 96 |
+
object,
|
| 97 |
+
uuid(E341516B-2E32-11D1-9964-00C04FBBB345),
|
| 98 |
+
dual,
|
| 99 |
+
proxy,
|
| 100 |
+
helpstring("IEventPublisher Interface"),
|
| 101 |
+
pointer_default(unique)
|
| 102 |
+
]
|
| 103 |
+
interface IEventPublisher : IDispatch
|
| 104 |
+
{
|
| 105 |
+
cpp_quote("// ********************************************")
|
| 106 |
+
cpp_quote("// This is a Deprecated interface - Do Not Use.")
|
| 107 |
+
cpp_quote("// ********************************************")
|
| 108 |
+
[propget, id(1), helpstring("property PublisherID")]
|
| 109 |
+
HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID);
|
| 110 |
+
[propput, id(1), helpstring("property PublisherID")]
|
| 111 |
+
HRESULT PublisherID([in] BSTR bstrPublisherID);
|
| 112 |
+
|
| 113 |
+
[propget, id(2), helpstring("property PublisherName")]
|
| 114 |
+
HRESULT PublisherName([out,retval] BSTR* pbstrPublisherName);
|
| 115 |
+
[propput, id(2), helpstring("property PublisherName")]
|
| 116 |
+
HRESULT PublisherName([in] BSTR bstrPublisherName);
|
| 117 |
+
|
| 118 |
+
[propget, id(3), helpstring("property PublisherType")]
|
| 119 |
+
HRESULT PublisherType([out,retval] BSTR* pbstrPublisherType);
|
| 120 |
+
[propput, id(3), helpstring("property PublisherType")]
|
| 121 |
+
HRESULT PublisherType([in] BSTR bstrPublisherType);
|
| 122 |
+
|
| 123 |
+
[propget, id(4), helpstring("property OwnerSID")]
|
| 124 |
+
HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID);
|
| 125 |
+
[propput, id(4), helpstring("property OwnerSID")]
|
| 126 |
+
HRESULT OwnerSID([in] BSTR bstrOwnerSID);
|
| 127 |
+
|
| 128 |
+
[propget, id(5), helpstring("property Description")]
|
| 129 |
+
HRESULT Description([out,retval] BSTR* pbstrDescription);
|
| 130 |
+
[propput, id(5), helpstring("property Description")]
|
| 131 |
+
HRESULT Description([in] BSTR bstrDescription);
|
| 132 |
+
|
| 133 |
+
[id(6), helpstring("method GetDefaultProperty")]
|
| 134 |
+
HRESULT GetDefaultProperty([in] BSTR bstrPropertyName,
|
| 135 |
+
[out,retval] VARIANT* propertyValue);
|
| 136 |
+
[id(7), helpstring("method PutDefaultProperty")]
|
| 137 |
+
HRESULT PutDefaultProperty([in] BSTR bstrPropertyName,
|
| 138 |
+
[in] VARIANT* propertyValue);
|
| 139 |
+
[id(8), helpstring("method RemoveDefaultProperty")]
|
| 140 |
+
HRESULT RemoveDefaultProperty([in] BSTR bstrPropertyName);
|
| 141 |
+
[id(9), helpstring("method GetDefaultPropertyCollection")]
|
| 142 |
+
HRESULT GetDefaultPropertyCollection([out,retval] IEventObjectCollection** collection);
|
| 143 |
+
};
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
// --------------------------------------------------------------------------
|
| 147 |
+
//
|
| 148 |
+
// IEventClass -- event component
|
| 149 |
+
//
|
| 150 |
+
// --------------------------------------------------------------------------
|
| 151 |
+
|
| 152 |
+
[
|
| 153 |
+
object,
|
| 154 |
+
uuid(fb2b72a0-7a68-11d1-88f9-0080c7d771bf),
|
| 155 |
+
dual,
|
| 156 |
+
proxy,
|
| 157 |
+
helpstring("IEventClass Interface"),
|
| 158 |
+
pointer_default(unique)
|
| 159 |
+
]
|
| 160 |
+
interface IEventClass : IDispatch
|
| 161 |
+
{
|
| 162 |
+
[propget, id(1), helpstring("property EventClassID")]
|
| 163 |
+
HRESULT EventClassID([out,retval] BSTR* pbstrEventClassID);
|
| 164 |
+
[propput, id(1), helpstring("property EventClassID")]
|
| 165 |
+
HRESULT EventClassID([in] BSTR bstrEventClassID);
|
| 166 |
+
|
| 167 |
+
[propget, id(2), helpstring("property EventClassName")]
|
| 168 |
+
HRESULT EventClassName([out,retval] BSTR* pbstrEventClassName);
|
| 169 |
+
[propput, id(2), helpstring("property EventClassName")]
|
| 170 |
+
HRESULT EventClassName([in] BSTR bstrEventClassName);
|
| 171 |
+
|
| 172 |
+
[propget, id(3), helpstring("property OwnerSID")]
|
| 173 |
+
HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID);
|
| 174 |
+
[propput, id(3), helpstring("property OwnerSID")]
|
| 175 |
+
HRESULT OwnerSID([in] BSTR bstrOwnerSID);
|
| 176 |
+
|
| 177 |
+
[propget, id(4), helpstring("property FiringInterfaceID")]
|
| 178 |
+
HRESULT FiringInterfaceID([out,retval] BSTR* pbstrFiringInterfaceID);
|
| 179 |
+
[propput, id(4), helpstring("property FiringInterfaceID")]
|
| 180 |
+
HRESULT FiringInterfaceID([in] BSTR bstrFiringInterfaceID);
|
| 181 |
+
|
| 182 |
+
[propget, id(5), helpstring("property Description")]
|
| 183 |
+
HRESULT Description([out,retval] BSTR* pbstrDescription);
|
| 184 |
+
[propput, id(5), helpstring("property Description")]
|
| 185 |
+
HRESULT Description([in] BSTR bstrDescription);
|
| 186 |
+
|
| 187 |
+
[propget, id(6), helpstring("property CustomConfigCLSID")]
|
| 188 |
+
HRESULT CustomConfigCLSID([out,retval] BSTR* pbstrCustomConfigCLSID);
|
| 189 |
+
[propput, id(6), helpstring("property CustomConfigCLSID")]
|
| 190 |
+
HRESULT CustomConfigCLSID([in] BSTR bstrCustomConfigCLSID);
|
| 191 |
+
|
| 192 |
+
[propget, id(7), helpstring("property TypeLib")]
|
| 193 |
+
HRESULT TypeLib([out,retval] BSTR* pbstrTypeLib);
|
| 194 |
+
[propput, id(7), helpstring("property TypeLib")]
|
| 195 |
+
HRESULT TypeLib([in] BSTR bstrTypeLib);
|
| 196 |
+
};
|
| 197 |
+
|
| 198 |
+
[
|
| 199 |
+
object,
|
| 200 |
+
uuid(fb2b72a1-7a68-11d1-88f9-0080c7d771bf),
|
| 201 |
+
dual,
|
| 202 |
+
proxy,
|
| 203 |
+
helpstring("IEventClass2 Interface"),
|
| 204 |
+
pointer_default(unique)
|
| 205 |
+
]
|
| 206 |
+
interface IEventClass2 : IEventClass
|
| 207 |
+
{
|
| 208 |
+
[id(8), propget, helpstring("property PublisherID")]
|
| 209 |
+
HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID);
|
| 210 |
+
[id(8), propput, helpstring("property PublisherID")]
|
| 211 |
+
HRESULT PublisherID([in] BSTR bstrPublisherID);
|
| 212 |
+
|
| 213 |
+
[id(9), propget, helpstring("property MultiInterfacePublisherFilterCLSID")]
|
| 214 |
+
HRESULT MultiInterfacePublisherFilterCLSID([out,retval] BSTR* pbstrPubFilCLSID);
|
| 215 |
+
[id(9), propput, helpstring("property MultiInterfacePublisherFilterCLSID")]
|
| 216 |
+
HRESULT MultiInterfacePublisherFilterCLSID([in] BSTR bstrPubFilCLSID);
|
| 217 |
+
|
| 218 |
+
[id(10), propget, helpstring("property AllowInprocActivation")]
|
| 219 |
+
HRESULT AllowInprocActivation([out,retval]BOOL* pfAllowInprocActivation);
|
| 220 |
+
[id(10), propput, helpstring("property AllowInprocActivation")]
|
| 221 |
+
HRESULT AllowInprocActivation([in]BOOL fAllowInprocActivation);
|
| 222 |
+
|
| 223 |
+
[id(11), propget, helpstring("property FireInParallel")]
|
| 224 |
+
HRESULT FireInParallel([out,retval]BOOL* pfFireInParallel);
|
| 225 |
+
[id(11), propput, helpstring("property FireInParallel")]
|
| 226 |
+
HRESULT FireInParallel([in]BOOL fFireInParallel);
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
// --------------------------------------------------------------------------
|
| 230 |
+
//
|
| 231 |
+
// IEventSubscription -- event system subscriptions
|
| 232 |
+
//
|
| 233 |
+
// --------------------------------------------------------------------------
|
| 234 |
+
|
| 235 |
+
[
|
| 236 |
+
object,
|
| 237 |
+
uuid(4A6B0E15-2E38-11D1-9965-00C04FBBB345),
|
| 238 |
+
dual,
|
| 239 |
+
proxy,
|
| 240 |
+
helpstring("IEventSubscription Interface"),
|
| 241 |
+
pointer_default(unique)
|
| 242 |
+
]
|
| 243 |
+
interface IEventSubscription : IDispatch
|
| 244 |
+
{
|
| 245 |
+
[propget, id(1), helpstring("property SubscriptionID")]
|
| 246 |
+
HRESULT SubscriptionID([out,retval] BSTR* pbstrSubscriptionID);
|
| 247 |
+
[propput, id(1), helpstring("property SubscriptionID")]
|
| 248 |
+
HRESULT SubscriptionID([in] BSTR bstrSubscriptionID);
|
| 249 |
+
|
| 250 |
+
[propget, id(2), helpstring("property SubscriptionName")]
|
| 251 |
+
HRESULT SubscriptionName([out,retval] BSTR* pbstrSubscriptionName);
|
| 252 |
+
[propput, id(2), helpstring("property SubscriptionName")]
|
| 253 |
+
HRESULT SubscriptionName([in] BSTR bstrSubscriptionName);
|
| 254 |
+
|
| 255 |
+
[propget, id(3), helpstring("property PublisherID")]
|
| 256 |
+
HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID);
|
| 257 |
+
[propput, id(3), helpstring("property PublisherID")]
|
| 258 |
+
HRESULT PublisherID([in] BSTR bstrPublisherID);
|
| 259 |
+
|
| 260 |
+
[propget, id(4), helpstring("property EventClassID")]
|
| 261 |
+
HRESULT EventClassID([out,retval] BSTR* pbstrEventClassID);
|
| 262 |
+
[propput, id(4), helpstring("property EventClassID")]
|
| 263 |
+
HRESULT EventClassID([in] BSTR bstrEventClassID);
|
| 264 |
+
|
| 265 |
+
[propget, id(5), helpstring("property MethodName")]
|
| 266 |
+
HRESULT MethodName([out,retval] BSTR* pbstrMethodName);
|
| 267 |
+
[propput, id(5), helpstring("property MethodName")]
|
| 268 |
+
HRESULT MethodName([in] BSTR bstrMethodName);
|
| 269 |
+
|
| 270 |
+
[propget, id(6), helpstring("property SubscriberCLSID")]
|
| 271 |
+
HRESULT SubscriberCLSID([out,retval] BSTR* pbstrSubscriberCLSID);
|
| 272 |
+
[propput, id(6), helpstring("property SubscriberCLSID")]
|
| 273 |
+
HRESULT SubscriberCLSID([in] BSTR bstrSubscriberCLSID);
|
| 274 |
+
|
| 275 |
+
[propget, id(7), helpstring("property SubscriberInterface")]
|
| 276 |
+
HRESULT SubscriberInterface([out,retval] IUnknown** ppSubscriberInterface);
|
| 277 |
+
[propput, id(7), helpstring("property SubscriberInterface")]
|
| 278 |
+
HRESULT SubscriberInterface([in] IUnknown* pSubscriberInterface);
|
| 279 |
+
|
| 280 |
+
[propget, id(8), helpstring("property PerUser")]
|
| 281 |
+
HRESULT PerUser([out,retval] BOOL* pfPerUser);
|
| 282 |
+
[propput, id(8), helpstring("property PerUser")]
|
| 283 |
+
HRESULT PerUser([in] BOOL fPerUser);
|
| 284 |
+
|
| 285 |
+
[propget, id(9), helpstring("property OwnerSID")]
|
| 286 |
+
HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID);
|
| 287 |
+
[propput, id(9), helpstring("property OwnerSID")]
|
| 288 |
+
HRESULT OwnerSID([in] BSTR bstrOwnerSID);
|
| 289 |
+
|
| 290 |
+
[propget, id(10), helpstring("property Enabled")]
|
| 291 |
+
HRESULT Enabled([out,retval] BOOL* pfEnabled);
|
| 292 |
+
[propput, id(10), helpstring("property Enabled")]
|
| 293 |
+
HRESULT Enabled([in] BOOL fEnabled);
|
| 294 |
+
|
| 295 |
+
[propget, id(11), helpstring("property Description")]
|
| 296 |
+
HRESULT Description([out,retval] BSTR* pbstrDescription);
|
| 297 |
+
[propput, id(11), helpstring("property Description")]
|
| 298 |
+
HRESULT Description([in] BSTR bstrDescription);
|
| 299 |
+
|
| 300 |
+
[propget, id(12), helpstring("property MachineName")]
|
| 301 |
+
HRESULT MachineName([out,retval] BSTR* pbstrMachineName);
|
| 302 |
+
[propput, id(12), helpstring("property MachineName")]
|
| 303 |
+
HRESULT MachineName([in] BSTR bstrMachineName);
|
| 304 |
+
|
| 305 |
+
[id(13), helpstring("method GetPublisherProperty")]
|
| 306 |
+
HRESULT GetPublisherProperty([in] BSTR bstrPropertyName,
|
| 307 |
+
[out,retval] VARIANT* propertyValue);
|
| 308 |
+
[id(14), helpstring("method PutPublisherProperty")]
|
| 309 |
+
HRESULT PutPublisherProperty([in] BSTR bstrPropertyName,
|
| 310 |
+
[in] VARIANT* propertyValue);
|
| 311 |
+
[id(15), helpstring("method RemovePublisherProperty")]
|
| 312 |
+
HRESULT RemovePublisherProperty([in] BSTR bstrPropertyName);
|
| 313 |
+
[id(16), helpstring("method GetPublisherPropertyCollection")]
|
| 314 |
+
HRESULT GetPublisherPropertyCollection([out,retval] IEventObjectCollection** collection);
|
| 315 |
+
|
| 316 |
+
[id(17), helpstring("method GetSubscriberProperty")]
|
| 317 |
+
HRESULT GetSubscriberProperty([in] BSTR bstrPropertyName,
|
| 318 |
+
[out,retval] VARIANT* propertyValue);
|
| 319 |
+
[id(18), helpstring("method PutSubscriberProperty")]
|
| 320 |
+
HRESULT PutSubscriberProperty([in] BSTR bstrPropertyName,
|
| 321 |
+
[in] VARIANT* propertyValue);
|
| 322 |
+
[id(19), helpstring("method RemoveSubscriberProperty")]
|
| 323 |
+
HRESULT RemoveSubscriberProperty([in] BSTR bstrPropertyName);
|
| 324 |
+
[id(20), helpstring("method GetSubscriberPropertyCollection")]
|
| 325 |
+
HRESULT GetSubscriberPropertyCollection([out,retval] IEventObjectCollection** collection);
|
| 326 |
+
|
| 327 |
+
[id(21), propget, helpstring("property InterfaceID")]
|
| 328 |
+
HRESULT InterfaceID([out,retval] BSTR* pbstrInterfaceID);
|
| 329 |
+
[id(21), propput, helpstring("property InterfaceID")]
|
| 330 |
+
HRESULT InterfaceID([in] BSTR bstrInterfaceID);
|
| 331 |
+
};
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
[
|
| 335 |
+
object,
|
| 336 |
+
uuid(e0498c93-4efe-11d1-9971-00c04fbbb345),
|
| 337 |
+
dual,
|
| 338 |
+
proxy,
|
| 339 |
+
helpstring("IFiringControl Interface"),
|
| 340 |
+
pointer_default(unique)
|
| 341 |
+
]
|
| 342 |
+
interface IFiringControl : IDispatch {
|
| 343 |
+
[id(1), helpstring("Fire a single subscription")]
|
| 344 |
+
HRESULT FireSubscription([in] IEventSubscription* subscription);
|
| 345 |
+
};
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
// --------------------------------------------------------------------------
|
| 349 |
+
//
|
| 350 |
+
// IPublisherFilter - Deprecated interface - Use IMultiInterfacePublisherFilter instead.
|
| 351 |
+
//
|
| 352 |
+
// --------------------------------------------------------------------------
|
| 353 |
+
|
| 354 |
+
[
|
| 355 |
+
object,
|
| 356 |
+
uuid(465e5cc0-7b26-11d1-88fb-0080c7d771bf),
|
| 357 |
+
helpstring("IPublisherFilter Interface"),
|
| 358 |
+
pointer_default(unique)
|
| 359 |
+
]
|
| 360 |
+
interface IPublisherFilter : IUnknown
|
| 361 |
+
{
|
| 362 |
+
cpp_quote("// ****************************************************************************")
|
| 363 |
+
cpp_quote("// This is a Deprecated interface - Use IMultiInterfacePublisherFilter instead.")
|
| 364 |
+
cpp_quote("// ****************************************************************************")
|
| 365 |
+
[helpstring("User-called method to initialize the publisher filter after it is installed")]
|
| 366 |
+
HRESULT Initialize([in] BSTR methodName, [in,unique] IDispatch* dispUserDefined);
|
| 367 |
+
|
| 368 |
+
[helpstring("Prepare to fire all subscriptions in your collection")]
|
| 369 |
+
HRESULT PrepareToFire([in] BSTR methodName, [in] IFiringControl* firingControl);
|
| 370 |
+
};
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
// --------------------------------------------------------------------------
|
| 374 |
+
//
|
| 375 |
+
// IMultiInterfacePublisherFilter
|
| 376 |
+
//
|
| 377 |
+
// --------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
[
|
| 380 |
+
object,
|
| 381 |
+
uuid(465e5cc1-7b26-11d1-88fb-0080c7d771bf),
|
| 382 |
+
helpstring("IMultiInterfacePublisherFilter Interface"),
|
| 383 |
+
pointer_default(unique)
|
| 384 |
+
]
|
| 385 |
+
interface IMultiInterfacePublisherFilter : IUnknown
|
| 386 |
+
{
|
| 387 |
+
[helpstring("User-called method to initialize the publisher filter after it is installed")]
|
| 388 |
+
HRESULT Initialize([in] IMultiInterfaceEventControl* pEIC);
|
| 389 |
+
|
| 390 |
+
[helpstring("Prepare to fire all subscriptions in your collection")]
|
| 391 |
+
HRESULT PrepareToFire([in] REFIID iid,
|
| 392 |
+
[in] BSTR methodName,
|
| 393 |
+
[in] IFiringControl* firingControl);
|
| 394 |
+
};
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
// --------------------------------------------------------------------------
|
| 398 |
+
//
|
| 399 |
+
// IEventObjectChange
|
| 400 |
+
//
|
| 401 |
+
// --------------------------------------------------------------------------
|
| 402 |
+
|
| 403 |
+
[
|
| 404 |
+
object,
|
| 405 |
+
uuid(F4A07D70-2E25-11D1-9964-00C04FBBB345),
|
| 406 |
+
helpstring("IEventObjectChange Interface"),
|
| 407 |
+
pointer_default(unique)
|
| 408 |
+
]
|
| 409 |
+
interface IEventObjectChange : IUnknown
|
| 410 |
+
{
|
| 411 |
+
typedef enum {
|
| 412 |
+
[helpstring("A new object was added")]
|
| 413 |
+
EOC_NewObject,
|
| 414 |
+
[helpstring("An existing object was modified")]
|
| 415 |
+
EOC_ModifiedObject,
|
| 416 |
+
[helpstring("An existing object was deleted")]
|
| 417 |
+
EOC_DeletedObject
|
| 418 |
+
} EOC_ChangeType;
|
| 419 |
+
|
| 420 |
+
[helpstring("method ChangedSubscription")]
|
| 421 |
+
HRESULT ChangedSubscription([in] EOC_ChangeType changeType,
|
| 422 |
+
[in] BSTR bstrSubscriptionID);
|
| 423 |
+
|
| 424 |
+
[helpstring("method ChangedEventClass")]
|
| 425 |
+
HRESULT ChangedEventClass([in] EOC_ChangeType changeType,
|
| 426 |
+
[in] BSTR bstrEventClassID);
|
| 427 |
+
|
| 428 |
+
[helpstring("method ChangedPublisher")]
|
| 429 |
+
HRESULT ChangedPublisher([in] EOC_ChangeType changeType,
|
| 430 |
+
[in] BSTR bstrPublisherID);
|
| 431 |
+
};
|
| 432 |
+
|
| 433 |
+
// --------------------------------------------------------------------------
|
| 434 |
+
//
|
| 435 |
+
// IEventObjectChange2
|
| 436 |
+
//
|
| 437 |
+
// --------------------------------------------------------------------------
|
| 438 |
+
cpp_quote( "#ifndef _COMEVENTSYSCHANGEINFO_" )
|
| 439 |
+
cpp_quote( "#define _COMEVENTSYSCHANGEINFO_" )
|
| 440 |
+
|
| 441 |
+
|
| 442 |
+
typedef [hidden] struct
|
| 443 |
+
{
|
| 444 |
+
DWORD cbSize; // size of this struct
|
| 445 |
+
EOC_ChangeType changeType; // the type of change that was made
|
| 446 |
+
BSTR objectId; // the EventClassID or SubscriptionID affected.
|
| 447 |
+
BSTR partitionId; // the EventClassPartitionID or SubscriberPartitionID affected.
|
| 448 |
+
BSTR applicationId; // the EventClassApplicationID or SubscriberApplicationID affected.
|
| 449 |
+
GUID reserved [10];
|
| 450 |
+
} COMEVENTSYSCHANGEINFO ;
|
| 451 |
+
|
| 452 |
+
cpp_quote( "#endif // _COMEVENTSYSCHANGEINFO_" )
|
| 453 |
+
|
| 454 |
+
[
|
| 455 |
+
object,
|
| 456 |
+
uuid(7701A9C3-BD68-438f-83E0-67BF4F53A422),
|
| 457 |
+
helpstring("IEventObjectChange2 Interface"),
|
| 458 |
+
pointer_default(unique)
|
| 459 |
+
]
|
| 460 |
+
interface IEventObjectChange2 : IUnknown
|
| 461 |
+
{
|
| 462 |
+
[helpstring("method ChangedSubscription")]
|
| 463 |
+
HRESULT ChangedSubscription([in] COMEVENTSYSCHANGEINFO* pInfo);
|
| 464 |
+
|
| 465 |
+
[helpstring("method ChangedEventClass")]
|
| 466 |
+
HRESULT ChangedEventClass([in] COMEVENTSYSCHANGEINFO* pInfo);
|
| 467 |
+
|
| 468 |
+
};
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
// --------------------------------------------------------------------------
|
| 472 |
+
//
|
| 473 |
+
// IEnumEventObject -- An interface that provides an enumeration of an
|
| 474 |
+
// EventClass, Publisher, or Subscription object.
|
| 475 |
+
//
|
| 476 |
+
// --------------------------------------------------------------------------
|
| 477 |
+
|
| 478 |
+
[
|
| 479 |
+
object,
|
| 480 |
+
uuid(F4A07D63-2E25-11D1-9964-00C04FBBB345),
|
| 481 |
+
helpstring("IEnumEventObject Interface"),
|
| 482 |
+
pointer_default(unique)
|
| 483 |
+
]
|
| 484 |
+
interface IEnumEventObject : IUnknown
|
| 485 |
+
{
|
| 486 |
+
[id(1), helpstring("method Clone")]
|
| 487 |
+
HRESULT Clone([out] IEnumEventObject** ppInterface);
|
| 488 |
+
|
| 489 |
+
[id(3), helpstring("method Next")]
|
| 490 |
+
HRESULT Next([in] ULONG cReqElem,
|
| 491 |
+
[out,size_is(cReqElem), length_is(*cRetElem)] IUnknown** ppInterface,
|
| 492 |
+
[out] ULONG* cRetElem);
|
| 493 |
+
|
| 494 |
+
[id(4), helpstring("method Reset")]
|
| 495 |
+
HRESULT Reset();
|
| 496 |
+
|
| 497 |
+
[id(5), helpstring("method Skip")]
|
| 498 |
+
HRESULT Skip([in] ULONG cSkipElem);
|
| 499 |
+
};
|
| 500 |
+
|
| 501 |
+
[
|
| 502 |
+
object,
|
| 503 |
+
uuid(f89ac270-d4eb-11d1-b682-00805fc79216),
|
| 504 |
+
dual,
|
| 505 |
+
proxy,
|
| 506 |
+
helpstring("IEventObjectCollection Interface"),
|
| 507 |
+
pointer_default(unique)
|
| 508 |
+
]
|
| 509 |
+
interface IEventObjectCollection : IDispatch
|
| 510 |
+
{
|
| 511 |
+
[id(DISPID_NEWENUM), propget, restricted, helpstring("Create new IEnumVARIANT")]
|
| 512 |
+
HRESULT _NewEnum([out,retval] IUnknown** ppUnkEnum);
|
| 513 |
+
|
| 514 |
+
[id(DISPID_VALUE), propget]
|
| 515 |
+
HRESULT Item([in] BSTR objectID, [out,retval] VARIANT* pItem);
|
| 516 |
+
|
| 517 |
+
[id(1), propget, helpstring("Create new IEnumEventObject")]
|
| 518 |
+
HRESULT NewEnum([out,retval] IEnumEventObject** ppEnum);
|
| 519 |
+
|
| 520 |
+
[id(2), propget, helpstring("Number of items in the collection")]
|
| 521 |
+
HRESULT Count([out,retval] long* pCount);
|
| 522 |
+
|
| 523 |
+
[id(3), helpstring("Add an item to the collection")]
|
| 524 |
+
HRESULT Add([in] VARIANT* item, [in] BSTR objectID);
|
| 525 |
+
|
| 526 |
+
[id(4), helpstring("Remove an item from the collection")]
|
| 527 |
+
HRESULT Remove([in] BSTR objectID);
|
| 528 |
+
}
|
| 529 |
+
|
| 530 |
+
|
| 531 |
+
// --------------------------------------------------------------------------
|
| 532 |
+
//
|
| 533 |
+
// IEventProperty -- An interface that represents a name/property pair.
|
| 534 |
+
//
|
| 535 |
+
// --------------------------------------------------------------------------
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
[
|
| 539 |
+
object,
|
| 540 |
+
uuid(da538ee2-f4de-11d1-b6bb-00805fc79216),
|
| 541 |
+
dual,
|
| 542 |
+
proxy,
|
| 543 |
+
helpstring("IEventProperty Interface"),
|
| 544 |
+
pointer_default(unique)
|
| 545 |
+
]
|
| 546 |
+
interface IEventProperty : IDispatch
|
| 547 |
+
{
|
| 548 |
+
[id(1), propget, helpstring("property Name")]
|
| 549 |
+
HRESULT Name([out,retval] BSTR* propertyName);
|
| 550 |
+
[id(1), propput, helpstring("property Name")]
|
| 551 |
+
HRESULT Name([in] BSTR propertyName);
|
| 552 |
+
|
| 553 |
+
[id(2), propget, helpstring("property Value")]
|
| 554 |
+
HRESULT Value([out,retval] VARIANT* propertyValue);
|
| 555 |
+
[id(2), propput, helpstring("property Value")]
|
| 556 |
+
HRESULT Value([in] VARIANT* propertyValue);
|
| 557 |
+
};
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
// --------------------------------------------------------------------------
|
| 561 |
+
//
|
| 562 |
+
// IEventControl - Deprecated interface - Use IMultiInterfaceEventControl instead.
|
| 563 |
+
//
|
| 564 |
+
// --------------------------------------------------------------------------
|
| 565 |
+
|
| 566 |
+
[
|
| 567 |
+
object,
|
| 568 |
+
uuid(0343e2f4-86f6-11d1-b760-00c04fb926af),
|
| 569 |
+
dual,
|
| 570 |
+
proxy,
|
| 571 |
+
helpstring("IEventControl Interface"),
|
| 572 |
+
pointer_default(unique)
|
| 573 |
+
]
|
| 574 |
+
interface IEventControl : IDispatch
|
| 575 |
+
{
|
| 576 |
+
cpp_quote("// *************************************************************************")
|
| 577 |
+
cpp_quote("// This is a Deprecated interface - Use IMultiInterfaceEventControl instead.")
|
| 578 |
+
cpp_quote("// *************************************************************************")
|
| 579 |
+
[id(1), helpstring("method SetPublisherFilter")]
|
| 580 |
+
HRESULT SetPublisherFilter([in] BSTR methodName,
|
| 581 |
+
[in,unique] IPublisherFilter* pPublisherFilter);
|
| 582 |
+
|
| 583 |
+
[propget, id(2), helpstring("property AllowInprocActivation")]
|
| 584 |
+
HRESULT AllowInprocActivation([out,retval] BOOL* pfAllowInprocActivation);
|
| 585 |
+
[propput, id(2), helpstring("property AllowInprocActivation")]
|
| 586 |
+
HRESULT AllowInprocActivation([in] BOOL fAllowInprocActivation);
|
| 587 |
+
|
| 588 |
+
[id(3), helpstring("Get a self-updating collection of subscriptions to a given method")]
|
| 589 |
+
HRESULT GetSubscriptions([in,unique] BSTR methodName,
|
| 590 |
+
[in,unique] BSTR optionalCriteria,
|
| 591 |
+
[in,unique] int* optionalErrorIndex,
|
| 592 |
+
[out,retval] IEventObjectCollection** ppCollection);
|
| 593 |
+
[id(4), helpstring("Establish the default query to use when not filtering")]
|
| 594 |
+
HRESULT SetDefaultQuery([in] BSTR methodName,
|
| 595 |
+
[in] BSTR criteria,
|
| 596 |
+
[out,retval] int* errorIndex);
|
| 597 |
+
};
|
| 598 |
+
|
| 599 |
+
|
| 600 |
+
[
|
| 601 |
+
object,
|
| 602 |
+
uuid(0343e2f5-86f6-11d1-b760-00c04fb926af),
|
| 603 |
+
helpstring("IMultiInterfaceEventControl Interface"),
|
| 604 |
+
pointer_default(unique)
|
| 605 |
+
]
|
| 606 |
+
interface IMultiInterfaceEventControl : IUnknown
|
| 607 |
+
{
|
| 608 |
+
[helpstring("method SetMultiInterfacePublisherFilter")]
|
| 609 |
+
HRESULT SetMultiInterfacePublisherFilter([in,unique] IMultiInterfacePublisherFilter* classFilter);
|
| 610 |
+
|
| 611 |
+
[helpstring("Get a self-updating collection of subscriptions to an IID/method")]
|
| 612 |
+
HRESULT GetSubscriptions([in] REFIID eventIID,
|
| 613 |
+
[in,unique] BSTR bstrMethodName,
|
| 614 |
+
[in,unique] BSTR optionalCriteria,
|
| 615 |
+
[in,unique] int* optionalErrorIndex,
|
| 616 |
+
[out,retval] IEventObjectCollection** ppCollection);
|
| 617 |
+
|
| 618 |
+
[helpstring("Establish the default query to use when not filtering.")]
|
| 619 |
+
HRESULT SetDefaultQuery([in] REFIID eventIID,
|
| 620 |
+
[in] BSTR bstrMethodName,
|
| 621 |
+
[in] BSTR bstrCriteria,
|
| 622 |
+
[out,retval] int* errorIndex);
|
| 623 |
+
|
| 624 |
+
[propget, helpstring("property AllowInprocActivation")]
|
| 625 |
+
HRESULT AllowInprocActivation([out,retval] BOOL* pfAllowInprocActivation);
|
| 626 |
+
[propput, helpstring("property AllowInprocActivation")]
|
| 627 |
+
HRESULT AllowInprocActivation([in] BOOL fAllowInprocActivation);
|
| 628 |
+
|
| 629 |
+
[propget, helpstring("property FireInParallel")]
|
| 630 |
+
HRESULT FireInParallel([out,retval] BOOL* pfFireInParallel);
|
| 631 |
+
[propput, helpstring("property FireInParallel")]
|
| 632 |
+
HRESULT FireInParallel([in] BOOL fFireInParallel);
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
[
|
| 636 |
+
object,
|
| 637 |
+
uuid(784121F1-62A6-4b89-855F-D65F296DE83A),
|
| 638 |
+
helpstring("IDontSupportEventSubscription Interface"),
|
| 639 |
+
pointer_default(unique)
|
| 640 |
+
]
|
| 641 |
+
interface IDontSupportEventSubscription : IUnknown
|
| 642 |
+
{
|
| 643 |
+
// No methods (except IUnknown). This interface just serves to let an object indicate
|
| 644 |
+
// it does not wish to support event subscriptions.
|
| 645 |
+
};
|
| 646 |
+
|
| 647 |
+
|
| 648 |
+
////////////////////////////////////////////////////////////////////////////////
|
| 649 |
+
//
|
| 650 |
+
// Classes....
|
| 651 |
+
//
|
| 652 |
+
////////////////////////////////////////////////////////////////////////////////
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
[
|
| 656 |
+
uuid(e81221dc-c4d8-11d1-b653-00805fc79216),
|
| 657 |
+
version(1.0),
|
| 658 |
+
helpstring("EventSystem 1.0 Type Library")
|
| 659 |
+
]
|
| 660 |
+
library DummyEventSystemLib
|
| 661 |
+
{
|
| 662 |
+
importlib("stdole2.tlb");
|
| 663 |
+
importlib("stdole32.tlb");
|
| 664 |
+
|
| 665 |
+
[
|
| 666 |
+
uuid(4E14FBA2-2E22-11D1-9964-00C04FBBB345),
|
| 667 |
+
helpstring("CEventSystem Class")
|
| 668 |
+
]
|
| 669 |
+
coclass CEventSystem
|
| 670 |
+
{
|
| 671 |
+
[default] interface IEventSystem;
|
| 672 |
+
};
|
| 673 |
+
|
| 674 |
+
[
|
| 675 |
+
uuid(ab944620-79c6-11d1-88f9-0080c7d771bf),
|
| 676 |
+
version(1.0)
|
| 677 |
+
]
|
| 678 |
+
coclass CEventPublisher
|
| 679 |
+
{
|
| 680 |
+
[default] interface IEventPublisher;
|
| 681 |
+
};
|
| 682 |
+
|
| 683 |
+
[
|
| 684 |
+
uuid(cdbec9c0-7a68-11d1-88f9-0080c7d771bf),
|
| 685 |
+
version(1.0)
|
| 686 |
+
]
|
| 687 |
+
coclass CEventClass
|
| 688 |
+
{
|
| 689 |
+
[default] interface IEventClass;
|
| 690 |
+
};
|
| 691 |
+
|
| 692 |
+
[
|
| 693 |
+
uuid(7542e960-79c7-11d1-88f9-0080c7d771bf),
|
| 694 |
+
version(1.0)
|
| 695 |
+
]
|
| 696 |
+
coclass CEventSubscription
|
| 697 |
+
{
|
| 698 |
+
[default] interface IEventSubscription;
|
| 699 |
+
};
|
| 700 |
+
|
| 701 |
+
// EventObjectChange is the EventClassID used by COM+ Events to
|
| 702 |
+
// publish IEventObjectChange notifications.
|
| 703 |
+
[
|
| 704 |
+
uuid(d0565000-9df4-11d1-a281-00c04fca0aa7),
|
| 705 |
+
version(1.0)
|
| 706 |
+
]
|
| 707 |
+
coclass EventObjectChange
|
| 708 |
+
{
|
| 709 |
+
[default] interface IEventObjectChange;
|
| 710 |
+
};
|
| 711 |
+
|
| 712 |
+
// EventObjectChange2 is the EventClassID used by COM+ Events to
|
| 713 |
+
// publish IEventObjectChange2 notifications.
|
| 714 |
+
[
|
| 715 |
+
uuid(BB07BACD-CD56-4e63-A8FF-CBF0355FB9F4),
|
| 716 |
+
version(1.0)
|
| 717 |
+
]
|
| 718 |
+
coclass EventObjectChange2
|
| 719 |
+
{
|
| 720 |
+
[default] interface IEventObjectChange2;
|
| 721 |
+
};
|
| 722 |
+
|
| 723 |
+
}
|
| 724 |
+
|
| 725 |
+
//midl_pragma warning(default: 2039) // oleautomation conformance
|
| 726 |
+
|
| 727 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 728 |
+
#pragma endregion
|
| 729 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EventSys.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.Idl
ADDED
|
@@ -0,0 +1,1115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+-------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Microsoft Windows
|
| 4 |
+
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 5 |
+
//
|
| 6 |
+
//;begin_internal
|
| 7 |
+
//
|
| 8 |
+
// NOTE: exdisp's tlb is registered through ieframe.man. You MUST update
|
| 9 |
+
// ieframe.man to include any registration changes you cause here.
|
| 10 |
+
//
|
| 11 |
+
//;end_internal
|
| 12 |
+
//
|
| 13 |
+
//--------------------------------------------------------------------------
|
| 14 |
+
|
| 15 |
+
cpp_quote("//=--------------------------------------------------------------------------=")
|
| 16 |
+
cpp_quote("// exdisp.h")
|
| 17 |
+
cpp_quote("//=--------------------------------------------------------------------------=")
|
| 18 |
+
cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.")
|
| 19 |
+
cpp_quote("//")
|
| 20 |
+
cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
|
| 21 |
+
cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
|
| 22 |
+
cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
|
| 23 |
+
cpp_quote("// PARTICULAR PURPOSE.")
|
| 24 |
+
cpp_quote("//=--------------------------------------------------------------------------=")
|
| 25 |
+
cpp_quote("")
|
| 26 |
+
|
| 27 |
+
cpp_quote("#include <winapifamily.h>")
|
| 28 |
+
|
| 29 |
+
#pragma region Desktop Family
|
| 30 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 31 |
+
|
| 32 |
+
import "ocidl.idl";
|
| 33 |
+
import "docobj.idl";
|
| 34 |
+
|
| 35 |
+
#include <olectl.h>
|
| 36 |
+
#include "exdispid.h"
|
| 37 |
+
|
| 38 |
+
cpp_quote("#define SID_SkipHung IID_IEnumVARIANT")
|
| 39 |
+
|
| 40 |
+
[
|
| 41 |
+
uuid(EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B), // LIBID_ShDocVw
|
| 42 |
+
helpstring("Microsoft Internet Controls"),
|
| 43 |
+
lcid(0x0000),
|
| 44 |
+
version(1.1)
|
| 45 |
+
]
|
| 46 |
+
library SHDocVw {
|
| 47 |
+
|
| 48 |
+
importlib("stdole2.tlb");
|
| 49 |
+
|
| 50 |
+
[
|
| 51 |
+
uuid(EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B), // IID_IWebBrowser
|
| 52 |
+
helpstring("Web Browser interface"),
|
| 53 |
+
helpcontext(0x0000),
|
| 54 |
+
hidden,
|
| 55 |
+
dual,
|
| 56 |
+
oleautomation,
|
| 57 |
+
odl
|
| 58 |
+
]
|
| 59 |
+
interface IWebBrowser : IDispatch
|
| 60 |
+
{
|
| 61 |
+
[id(100), helpstring("Navigates to the previous item in the history list."), helpcontext(0x0000)]
|
| 62 |
+
HRESULT GoBack();
|
| 63 |
+
[id(101), helpstring("Navigates to the next item in the history list."), helpcontext(0x0000)]
|
| 64 |
+
HRESULT GoForward();
|
| 65 |
+
[id(102), helpstring("Go home/start page."), helpcontext(0x0000)]
|
| 66 |
+
HRESULT GoHome();
|
| 67 |
+
[id(103), helpstring("Go Search Page."), helpcontext(0x0000)]
|
| 68 |
+
HRESULT GoSearch();
|
| 69 |
+
|
| 70 |
+
[id(104), helpstring("Navigates to a URL or file."), helpcontext(0x0000)]
|
| 71 |
+
HRESULT Navigate([in] BSTR URL,
|
| 72 |
+
[in, optional, unique] VARIANT * Flags,
|
| 73 |
+
[in, optional, unique] VARIANT * TargetFrameName,
|
| 74 |
+
[in, optional, unique] VARIANT * PostData,
|
| 75 |
+
[in, optional, unique] VARIANT * Headers);
|
| 76 |
+
typedef
|
| 77 |
+
[
|
| 78 |
+
uuid(14EE5380-A378-11cf-A731-00A0C9082637),
|
| 79 |
+
helpstring("Constants for WebBrowser navigation flags")
|
| 80 |
+
]
|
| 81 |
+
enum BrowserNavConstants {
|
| 82 |
+
[helpstring("Open in new window")] navOpenInNewWindow = 0x0001,
|
| 83 |
+
[helpstring("Exclude from history list")] navNoHistory = 0x0002,
|
| 84 |
+
[helpstring("Don't read from cache")] navNoReadFromCache = 0x0004,
|
| 85 |
+
[helpstring("Don't write from cache")] navNoWriteToCache = 0x0008,
|
| 86 |
+
[helpstring("Try other sites on failure")] navAllowAutosearch = 0x0010,
|
| 87 |
+
[helpstring("OpenBrowserBar")] navBrowserBar = 0x0020,
|
| 88 |
+
[helpstring("Hyperlink")] navHyperlink = 0x0040,
|
| 89 |
+
[helpstring("Enforce restricted zone")] navEnforceRestricted = 0x0080,
|
| 90 |
+
[helpstring("Apply new window management")] navNewWindowsManaged = 0x0100,
|
| 91 |
+
[helpstring("Untrusted download")] navUntrustedForDownload = 0x0200,
|
| 92 |
+
[helpstring("Trusted for ActiveX prompt")] navTrustedForActiveX = 0x0400,
|
| 93 |
+
[helpstring("Open in new tab")] navOpenInNewTab = 0x0800,
|
| 94 |
+
[helpstring("Open in a background tab")] navOpenInBackgroundTab = 0x1000,
|
| 95 |
+
[helpstring("Maintain the wordwheel text")] navKeepWordWheelText = 0x2000,
|
| 96 |
+
[helpstring("Virtual tab across MIC levels")] navVirtualTab = 0x4000,
|
| 97 |
+
[helpstring("Block x-domain redirects")] navBlockRedirectsXDomain = 0x8000,
|
| 98 |
+
[helpstring("Force open in foreground tab")] navOpenNewForegroundTab = 0x10000,
|
| 99 |
+
[helpstring("Travel Log nav with screenshot")] navTravelLogScreenshot = 0x20000,
|
| 100 |
+
[helpstring("Defer unload of virtual tab")] navDeferUnload = 0x40000,
|
| 101 |
+
[helpstring("Speculative navigate")] navSpeculative = 0x80000,
|
| 102 |
+
[helpstring("Suggest open in new window")] navSuggestNewWindow = 0x100000,
|
| 103 |
+
[helpstring("Suggest open in new tab")] navSuggestNewTab = 0x200000,
|
| 104 |
+
[helpstring("Reserved")] navReserved1 = 0x400000,
|
| 105 |
+
[helpstring("HP navigation")] navHomepageNavigate = 0x800000,
|
| 106 |
+
[helpstring("Treat nav as refresh")] navRefresh = 0x1000000,
|
| 107 |
+
[helpstring("Host initiated navigation")] navHostNavigation = 0x2000000,
|
| 108 |
+
[helpstring("Reserved")] navReserved2 = 0x4000000,
|
| 109 |
+
[helpstring("Reserved")] navReserved3 = 0x8000000,
|
| 110 |
+
[helpstring("Reserved")] navReserved4 = 0x10000000,
|
| 111 |
+
[helpstring("Reserved")] navReserved5 = 0x20000000,
|
| 112 |
+
[helpstring("Reserved")] navReserved6 = 0x40000000,
|
| 113 |
+
[helpstring("Reserved")] navReserved7 = 0x80000000,
|
| 114 |
+
} BrowserNavConstants;
|
| 115 |
+
|
| 116 |
+
cpp_quote("//;begin_internal")
|
| 117 |
+
cpp_quote("#define navUserInitiatedAction navReserved1")
|
| 118 |
+
cpp_quote("#define navDisableDownloadSave navReserved2")
|
| 119 |
+
cpp_quote("#define navServerRedirectedVtabSwitch navReserved3")
|
| 120 |
+
cpp_quote("#define navVtabSwitchNotUserInitiatedAction navReserved4")
|
| 121 |
+
cpp_quote("#define navCheckDontShowNeedIE navReserved5")
|
| 122 |
+
cpp_quote("#define navCheckDontShowNeedHVSI navReserved6")
|
| 123 |
+
cpp_quote("#define navCheckDontShowHVSINeedHost navReserved7")
|
| 124 |
+
cpp_quote("//;end_internal")
|
| 125 |
+
|
| 126 |
+
[id(DISPID_REFRESH), helpstring("Refresh the currently viewed page."), helpcontext(0x0000)]
|
| 127 |
+
HRESULT Refresh();
|
| 128 |
+
|
| 129 |
+
// The standard Refresh takes no parameters and we need some... use a new name
|
| 130 |
+
[id(105), helpstring("Refresh the currently viewed page."), helpcontext(0x0000)]
|
| 131 |
+
HRESULT Refresh2([in, optional, unique] VARIANT * Level);
|
| 132 |
+
|
| 133 |
+
typedef
|
| 134 |
+
[
|
| 135 |
+
uuid(C317C261-A991-11cf-A731-00A0C9082637),
|
| 136 |
+
helpstring("Constants for Refresh")
|
| 137 |
+
]
|
| 138 |
+
enum RefreshConstants { // must map to these in sdk\inc\docobj.h
|
| 139 |
+
[helpstring("Refresh normal")] REFRESH_NORMAL = 0, //== OLECMDIDF_REFRESH_NORMAL
|
| 140 |
+
[helpstring("Refresh if expired")] REFRESH_IFEXPIRED = 1, //== OLECMDIDF_REFRESH_IFEXPIRED
|
| 141 |
+
[helpstring("Refresh completely")] REFRESH_COMPLETELY = 3 //== OLECMDIDF_REFRESH_COMPLETELY
|
| 142 |
+
} RefreshConstants;
|
| 143 |
+
|
| 144 |
+
[id(106), helpstring("Stops opening a file."), helpcontext(0x0000)]
|
| 145 |
+
HRESULT Stop();
|
| 146 |
+
|
| 147 |
+
// Automation heirarchy...
|
| 148 |
+
[id(200), propget, helpstring("Returns the application automation object if accessible, this automation object otherwise.."), helpcontext(0x0000)]
|
| 149 |
+
HRESULT Application([out,retval] IDispatch** ppDisp);
|
| 150 |
+
|
| 151 |
+
[id(201), propget, helpstring("Returns the automation object of the container/parent if one exists or this automation object."), helpcontext(0x0000)]
|
| 152 |
+
HRESULT Parent([out,retval] IDispatch** ppDisp);
|
| 153 |
+
|
| 154 |
+
[id(202), propget, helpstring("Returns the container/parent automation object, if any."), helpcontext(0x0000)]
|
| 155 |
+
HRESULT Container([out,retval] IDispatch** ppDisp);
|
| 156 |
+
|
| 157 |
+
[id(203), propget, helpstring("Returns the active Document automation object, if any."), helpcontext(0x0000)]
|
| 158 |
+
HRESULT Document([out,retval] IDispatch** ppDisp);
|
| 159 |
+
|
| 160 |
+
[id(204), propget, helpstring("Returns True if this is the top level object."), helpcontext(0x0000)]
|
| 161 |
+
HRESULT TopLevelContainer([out, retval] VARIANT_BOOL* pBool);
|
| 162 |
+
|
| 163 |
+
[id(205), propget, helpstring("Returns the type of the contained document object."), helpcontext(0x0000)]
|
| 164 |
+
HRESULT Type([out,retval] BSTR* Type);
|
| 165 |
+
|
| 166 |
+
// Window stuff...
|
| 167 |
+
[id(206), propget, helpstring("The horizontal position (pixels) of the frame window relative to the screen/container."), helpcontext(0x0000)]
|
| 168 |
+
HRESULT Left([out, retval] long *pl);
|
| 169 |
+
[id(206), propput]
|
| 170 |
+
HRESULT Left([in] long Left);
|
| 171 |
+
[id(207), propget, helpstring("The vertical position (pixels) of the frame window relative to the screen/container."), helpcontext(0x0000)]
|
| 172 |
+
HRESULT Top([out, retval] long *pl);
|
| 173 |
+
[id(207), propput]
|
| 174 |
+
HRESULT Top([in] long Top);
|
| 175 |
+
[id(208), propget, helpstring("The horizontal dimension (pixels) of the frame window/object."), helpcontext(0x0000)]
|
| 176 |
+
HRESULT Width([out, retval] long *pl);
|
| 177 |
+
[id(208), propput]
|
| 178 |
+
HRESULT Width([in] long Width);
|
| 179 |
+
[id(209), propget, helpstring("The vertical dimension (pixels) of the frame window/object."), helpcontext(0x0000)]
|
| 180 |
+
HRESULT Height([out, retval] long *pl);
|
| 181 |
+
[id(209), propput]
|
| 182 |
+
HRESULT Height([in] long Height);
|
| 183 |
+
|
| 184 |
+
// WebBrowser stuff...
|
| 185 |
+
[id(210), propget, helpstring("Gets the short (UI-friendly) name of the URL/file currently viewed."), helpcontext(0x0000)]
|
| 186 |
+
HRESULT LocationName([out,retval] BSTR *LocationName);
|
| 187 |
+
|
| 188 |
+
[id(211), propget, helpstring("Gets the full URL/path currently viewed."), helpcontext(0x0000)]
|
| 189 |
+
HRESULT LocationURL([out,retval] BSTR * LocationURL);
|
| 190 |
+
|
| 191 |
+
// Added a property to see if the viewer is currenly busy or not...
|
| 192 |
+
[id(212), propget, helpstring("Query to see if something is still in progress."), helpcontext(0x0000)]
|
| 193 |
+
HRESULT Busy([out,retval] VARIANT_BOOL *pBool);
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
[
|
| 197 |
+
uuid(EAB22AC2-30C1-11CF-A7EB-0000C05BAE0B), // DIID_DWebBrowserEvents
|
| 198 |
+
helpstring("Web Browser Control Events (old)"),
|
| 199 |
+
hidden
|
| 200 |
+
]
|
| 201 |
+
dispinterface DWebBrowserEvents
|
| 202 |
+
{
|
| 203 |
+
properties:
|
| 204 |
+
methods:
|
| 205 |
+
[id(DISPID_BEFORENAVIGATE), helpstring("Fired when a new hyperlink is being navigated to."), helpcontext(0x0000)]
|
| 206 |
+
void BeforeNavigate([in] BSTR URL, long Flags, BSTR TargetFrameName, VARIANT * PostData, BSTR Headers, [in, out]VARIANT_BOOL * Cancel);
|
| 207 |
+
|
| 208 |
+
[id(DISPID_NAVIGATECOMPLETE), helpstring("Fired when the document being navigated to becomes visible and enters the navigation stack."), helpcontext(0x0000)]
|
| 209 |
+
void NavigateComplete([in] BSTR URL );
|
| 210 |
+
|
| 211 |
+
[id(DISPID_STATUSTEXTCHANGE), helpstring("Statusbar text changed."), helpcontext(0x0000)]
|
| 212 |
+
void StatusTextChange([in]BSTR Text);
|
| 213 |
+
|
| 214 |
+
[id(DISPID_PROGRESSCHANGE), helpstring("Fired when download progress is updated."), helpcontext(0x0000)]
|
| 215 |
+
void ProgressChange([in] long Progress, [in] long ProgressMax);
|
| 216 |
+
|
| 217 |
+
[id(DISPID_DOWNLOADCOMPLETE), helpstring("Download of page complete."), helpcontext(0x0000)]
|
| 218 |
+
void DownloadComplete();
|
| 219 |
+
|
| 220 |
+
[id(DISPID_COMMANDSTATECHANGE), helpstring("The enabled state of a command changed"), helpcontext(0x0000)]
|
| 221 |
+
void CommandStateChange([in] long Command, [in] VARIANT_BOOL Enable);
|
| 222 |
+
|
| 223 |
+
[id(DISPID_DOWNLOADBEGIN), helpstring("Download of a page started."), helpcontext(0x000)]
|
| 224 |
+
void DownloadBegin();
|
| 225 |
+
|
| 226 |
+
[id(DISPID_NEWWINDOW), helpstring("Fired when a new window should be created."), helpcontext(0x0000)]
|
| 227 |
+
void NewWindow([in] BSTR URL, [in] long Flags, [in] BSTR TargetFrameName, [in] VARIANT * PostData, [in] BSTR Headers, [in,out] VARIANT_BOOL * Processed);
|
| 228 |
+
|
| 229 |
+
[id(DISPID_TITLECHANGE), helpstring("Document title changed."), helpcontext(0x0000)]
|
| 230 |
+
void TitleChange([in]BSTR Text);
|
| 231 |
+
|
| 232 |
+
[id(DISPID_FRAMEBEFORENAVIGATE), helpstring("Fired when a new hyperlink is being navigated to in a frame."), helpcontext(0x0000)]
|
| 233 |
+
void FrameBeforeNavigate([in] BSTR URL, long Flags, BSTR TargetFrameName, VARIANT * PostData, BSTR Headers, [in, out]VARIANT_BOOL * Cancel);
|
| 234 |
+
|
| 235 |
+
[id(DISPID_FRAMENAVIGATECOMPLETE), helpstring("Fired when a new hyperlink is being navigated to in a frame."), helpcontext(0x0000)]
|
| 236 |
+
void FrameNavigateComplete([in] BSTR URL );
|
| 237 |
+
|
| 238 |
+
[id(DISPID_FRAMENEWWINDOW), helpstring("Fired when a new window should be created."), helpcontext(0x0000)]
|
| 239 |
+
void FrameNewWindow([in] BSTR URL, [in] long Flags, [in] BSTR TargetFrameName, [in] VARIANT * PostData, [in] BSTR Headers, [in,out] VARIANT_BOOL * Processed);
|
| 240 |
+
|
| 241 |
+
// The following are IWebBrowserApp specific:
|
| 242 |
+
//
|
| 243 |
+
[id(DISPID_QUIT), helpstring("Fired when application is quiting."), helpcontext(0x0000)]
|
| 244 |
+
void Quit([in, out] VARIANT_BOOL * Cancel);
|
| 245 |
+
|
| 246 |
+
[id(DISPID_WINDOWMOVE), helpstring("Fired when window has been moved."), helpcontext(0x0000)]
|
| 247 |
+
void WindowMove();
|
| 248 |
+
|
| 249 |
+
[id(DISPID_WINDOWRESIZE), helpstring("Fired when window has been sized."), helpcontext(0x0000)]
|
| 250 |
+
void WindowResize();
|
| 251 |
+
|
| 252 |
+
[id(DISPID_WINDOWACTIVATE), helpstring("Fired when window has been activated."), helpcontext(0x0000)]
|
| 253 |
+
void WindowActivate();
|
| 254 |
+
|
| 255 |
+
[id(DISPID_PROPERTYCHANGE), helpstring("Fired when the PutProperty method has been called."), helpcontext(0x0000)]
|
| 256 |
+
void PropertyChange([in] BSTR Property);
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
typedef
|
| 260 |
+
[
|
| 261 |
+
uuid(34A226E0-DF30-11CF-89A9-00A0C9054129),
|
| 262 |
+
helpstring("Constants for WebBrowser CommandStateChange")
|
| 263 |
+
]
|
| 264 |
+
enum CommandStateChangeConstants {
|
| 265 |
+
[helpstring("Command Change")] CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF,
|
| 266 |
+
[helpstring("Navigate Forward")] CSC_NAVIGATEFORWARD = 0x00000001,
|
| 267 |
+
[helpstring("Navigate Back")] CSC_NAVIGATEBACK = 0x00000002,
|
| 268 |
+
} CommandStateChangeConstants;
|
| 269 |
+
|
| 270 |
+
[
|
| 271 |
+
uuid(0002DF05-0000-0000-C000-000000000046), // IID_IWebBrowserApp
|
| 272 |
+
helpstring("Web Browser Application Interface."),
|
| 273 |
+
helpcontext(0x0000),
|
| 274 |
+
hidden,
|
| 275 |
+
oleautomation,
|
| 276 |
+
dual
|
| 277 |
+
]
|
| 278 |
+
interface IWebBrowserApp : IWebBrowser
|
| 279 |
+
{
|
| 280 |
+
[id(300), helpstring("Exits application and closes the open document."), helpcontext(0x0000)]
|
| 281 |
+
HRESULT Quit();
|
| 282 |
+
|
| 283 |
+
[id(301), helpstring("Converts client sizes into window sizes."), helpcontext(0x0000)]
|
| 284 |
+
HRESULT ClientToWindow([in,out] int* pcx, [in,out] int* pcy);
|
| 285 |
+
|
| 286 |
+
[id(302), helpstring("Associates vtValue with the name szProperty in the context of the object."), helpcontext(0x0000)]
|
| 287 |
+
HRESULT PutProperty([in] BSTR Property, [in] VARIANT vtValue);
|
| 288 |
+
|
| 289 |
+
[id(303), helpstring("Retrieve the Associated value for the property vtValue in the context of the object."), helpcontext(0x0000)]
|
| 290 |
+
HRESULT GetProperty([in] BSTR Property, [out, retval] VARIANT *pvtValue);
|
| 291 |
+
|
| 292 |
+
[id(0), propget, helpstring("Returns name of the application."), helpcontext(0x0000)]
|
| 293 |
+
HRESULT Name([out,retval] BSTR* Name);
|
| 294 |
+
|
| 295 |
+
[id(DISPID_HWND), propget, helpstring("Returns the HWND of the current IE window."), helpcontext(0x0000)]
|
| 296 |
+
HRESULT HWND([out,retval] SHANDLE_PTR * pHWND);
|
| 297 |
+
|
| 298 |
+
[id(400), propget, helpstring("Returns file specification of the application, including path."), helpcontext(0x0000)]
|
| 299 |
+
HRESULT FullName([out,retval] BSTR* FullName);
|
| 300 |
+
|
| 301 |
+
[id(401), propget, helpstring("Returns the path to the application."), helpcontext(0x0000)]
|
| 302 |
+
HRESULT Path([out,retval] BSTR* Path);
|
| 303 |
+
|
| 304 |
+
[id(402), propget, helpstring("Determines whether the application is visible or hidden."), helpcontext(0x0000)]
|
| 305 |
+
HRESULT Visible([out, retval] VARIANT_BOOL* pBool);
|
| 306 |
+
[id(402), propput, helpstring("Determines whether the application is visible or hidden."), helpcontext(0x0000)]
|
| 307 |
+
HRESULT Visible([in] VARIANT_BOOL Value);
|
| 308 |
+
|
| 309 |
+
[id(403), propget, helpstring("Turn on or off the statusbar."), helpcontext(0x0000)]
|
| 310 |
+
HRESULT StatusBar([out, retval] VARIANT_BOOL* pBool);
|
| 311 |
+
[id(403), propput, helpstring("Turn on or off the statusbar."), helpcontext(0x0000)]
|
| 312 |
+
HRESULT StatusBar([in] VARIANT_BOOL Value);
|
| 313 |
+
|
| 314 |
+
[id(404), propget, helpstring("Text of Status window."), helpcontext(0x0000)]
|
| 315 |
+
HRESULT StatusText([out, retval] BSTR *StatusText);
|
| 316 |
+
[id(404), propput, helpstring("Text of Status window."), helpcontext(0x0000)]
|
| 317 |
+
HRESULT StatusText([in] BSTR StatusText);
|
| 318 |
+
|
| 319 |
+
[id(405), propget, helpstring("Controls which toolbar is shown."), helpcontext(0x0000)]
|
| 320 |
+
HRESULT ToolBar([out, retval] int * Value);
|
| 321 |
+
[id(405), propput, helpstring("Controls which toolbar is shown."), helpcontext(0x0000)]
|
| 322 |
+
HRESULT ToolBar([in] int Value);
|
| 323 |
+
|
| 324 |
+
[id(406), propget, helpstring("Controls whether menubar is shown."), helpcontext(0x0000)]
|
| 325 |
+
HRESULT MenuBar([out, retval] VARIANT_BOOL * Value);
|
| 326 |
+
[id(406), propput, helpstring("Controls whether menubar is shown."), helpcontext(0x0000)]
|
| 327 |
+
HRESULT MenuBar([in] VARIANT_BOOL Value);
|
| 328 |
+
|
| 329 |
+
[id(407), propget, helpstring("Maximizes window and turns off statusbar, toolbar, menubar, and titlebar."), helpcontext(0x0000)]
|
| 330 |
+
HRESULT FullScreen([out, retval] VARIANT_BOOL * pbFullScreen);
|
| 331 |
+
[id(407), propput, helpstring("Maximizes window and turns off statusbar, toolbar, menubar, and titlebar."), helpcontext(0x0000)]
|
| 332 |
+
HRESULT FullScreen([in] VARIANT_BOOL bFullScreen);
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
[
|
| 336 |
+
uuid(D30C1661-CDAF-11d0-8A3E-00C04FC9E26E), // IID_IWebBrowser2
|
| 337 |
+
helpstring("Web Browser Interface for IE4."),
|
| 338 |
+
helpcontext(0x0000),
|
| 339 |
+
hidden,
|
| 340 |
+
oleautomation,
|
| 341 |
+
dual
|
| 342 |
+
]
|
| 343 |
+
interface IWebBrowser2 : IWebBrowserApp
|
| 344 |
+
{
|
| 345 |
+
[id(500), helpstring("Navigates to a URL or file or pidl."), helpcontext(0x0000)]
|
| 346 |
+
HRESULT Navigate2([in] VARIANT * URL,
|
| 347 |
+
[in, optional, unique] VARIANT * Flags,
|
| 348 |
+
[in, optional, unique] VARIANT * TargetFrameName,
|
| 349 |
+
[in, optional, unique] VARIANT * PostData,
|
| 350 |
+
[in, optional, unique] VARIANT * Headers);
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
[id(501), helpstring("IOleCommandTarget::QueryStatus"), helpcontext(0x0000)]
|
| 354 |
+
HRESULT QueryStatusWB([in] OLECMDID cmdID, [out, retval] OLECMDF * pcmdf);
|
| 355 |
+
[id(502), helpstring("IOleCommandTarget::Exec"), helpcontext(0x0000)]
|
| 356 |
+
HRESULT ExecWB([in] OLECMDID cmdID, [in] OLECMDEXECOPT cmdexecopt, [in, optional, unique] VARIANT * pvaIn, [in, out, optional, unique] VARIANT * pvaOut);
|
| 357 |
+
[id(503), helpstring("Set BrowserBar to Clsid"), helpcontext(0x0000)]
|
| 358 |
+
HRESULT ShowBrowserBar( [in] VARIANT * pvaClsid,
|
| 359 |
+
[in, optional, unique] VARIANT * pvarShow,
|
| 360 |
+
[in, optional, unique] VARIANT * pvarSize );
|
| 361 |
+
|
| 362 |
+
[id(DISPID_READYSTATE), propget, bindable]
|
| 363 |
+
HRESULT ReadyState([retval, out] READYSTATE * plReadyState);
|
| 364 |
+
|
| 365 |
+
[id(550), propget, helpstring("Controls if the frame is offline (read from cache)"), helpcontext(0x0000)]
|
| 366 |
+
HRESULT Offline([out, retval] VARIANT_BOOL * pbOffline);
|
| 367 |
+
[id(550), propput, helpstring("Controls if the frame is offline (read from cache)"), helpcontext(0x0000)]
|
| 368 |
+
HRESULT Offline([in] VARIANT_BOOL bOffline);
|
| 369 |
+
|
| 370 |
+
[id(551), propget, helpstring("Controls if any dialog boxes can be shown"), helpcontext(0x0000)]
|
| 371 |
+
HRESULT Silent([out, retval] VARIANT_BOOL * pbSilent);
|
| 372 |
+
[id(551), propput, helpstring("Controls if any dialog boxes can be shown"), helpcontext(0x0000)]
|
| 373 |
+
HRESULT Silent([in] VARIANT_BOOL bSilent);
|
| 374 |
+
|
| 375 |
+
[id(552), propget, helpstring("Registers OC as a top-level browser (for target name resolution)"), helpcontext(0x0000)]
|
| 376 |
+
HRESULT RegisterAsBrowser([out, retval] VARIANT_BOOL * pbRegister);
|
| 377 |
+
[id(552), propput, helpstring("Registers OC as a top-level browser (for target name resolution)"), helpcontext(0x0000)]
|
| 378 |
+
HRESULT RegisterAsBrowser([in] VARIANT_BOOL bRegister);
|
| 379 |
+
|
| 380 |
+
[id(553), propget, helpstring("Registers OC as a drop target for navigation"), helpcontext(0x0000)]
|
| 381 |
+
HRESULT RegisterAsDropTarget([out, retval] VARIANT_BOOL * pbRegister);
|
| 382 |
+
[id(553), propput, helpstring("Registers OC as a drop target for navigation"), helpcontext(0x0000)]
|
| 383 |
+
HRESULT RegisterAsDropTarget([in] VARIANT_BOOL bRegister);
|
| 384 |
+
|
| 385 |
+
[id(554), propget, helpstring("Controls if the browser is in theater mode"), helpcontext(0x0000)]
|
| 386 |
+
HRESULT TheaterMode([out, retval] VARIANT_BOOL * pbRegister);
|
| 387 |
+
[id(554), propput, helpstring("Controls if the browser is in theater mode"), helpcontext(0x0000)]
|
| 388 |
+
HRESULT TheaterMode([in] VARIANT_BOOL bRegister);
|
| 389 |
+
|
| 390 |
+
[id(555), propget, helpstring("Controls whether address bar is shown"), helpcontext(0x0000)]
|
| 391 |
+
HRESULT AddressBar([out, retval] VARIANT_BOOL * Value);
|
| 392 |
+
[id(555), propput, helpstring("Controls whether address bar is shown"), helpcontext(0x0000)]
|
| 393 |
+
HRESULT AddressBar([in] VARIANT_BOOL Value);
|
| 394 |
+
|
| 395 |
+
[id(556), propget, helpstring("Controls whether the window is resizable"), helpcontext(0x0000)]
|
| 396 |
+
HRESULT Resizable([out, retval] VARIANT_BOOL * Value);
|
| 397 |
+
[id(556), propput, helpstring("Controls whether the window is resizable"), helpcontext(0x0000)]
|
| 398 |
+
HRESULT Resizable([in] VARIANT_BOOL Value);
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
typedef
|
| 402 |
+
[
|
| 403 |
+
uuid(65507BE0-91A8-11d3-A845-009027220E6D),
|
| 404 |
+
helpstring("Constants for WebBrowser security icon notification")
|
| 405 |
+
]
|
| 406 |
+
enum SecureLockIconConstants {
|
| 407 |
+
secureLockIconUnsecure = 0x0000,
|
| 408 |
+
secureLockIconMixed = 0x0001,
|
| 409 |
+
secureLockIconSecureUnknownBits = 0x0002,
|
| 410 |
+
secureLockIconSecure40Bit = 0x0003,
|
| 411 |
+
secureLockIconSecure56Bit = 0x0004,
|
| 412 |
+
secureLockIconSecureFortezza = 0x0005,
|
| 413 |
+
secureLockIconSecure128Bit = 0x0006,
|
| 414 |
+
} SecureLockIconConstants;
|
| 415 |
+
|
| 416 |
+
typedef
|
| 417 |
+
[
|
| 418 |
+
uuid(a8317d46-03cb-4975-ae94-85e9f2e1d020),
|
| 419 |
+
helpstring("Constants for WebBrowser NewProcess notification")
|
| 420 |
+
]
|
| 421 |
+
enum NewProcessCauseConstants {
|
| 422 |
+
ProtectedModeRedirect = 0x0001,
|
| 423 |
+
} NewProcessCauseConstants;
|
| 424 |
+
|
| 425 |
+
[
|
| 426 |
+
uuid(34A715A0-6587-11D0-924A-0020AFC7AC4D), // IID_DWebBrowserEvents2
|
| 427 |
+
helpstring("Web Browser Control events interface"),
|
| 428 |
+
hidden
|
| 429 |
+
]
|
| 430 |
+
dispinterface DWebBrowserEvents2
|
| 431 |
+
{
|
| 432 |
+
properties:
|
| 433 |
+
methods:
|
| 434 |
+
[id(DISPID_STATUSTEXTCHANGE), helpstring("Statusbar text changed."), helpcontext(0x0000)]
|
| 435 |
+
void StatusTextChange([in]BSTR Text);
|
| 436 |
+
|
| 437 |
+
[id(DISPID_PROGRESSCHANGE), helpstring("Fired when download progress is updated."), helpcontext(0x0000)]
|
| 438 |
+
void ProgressChange([in] long Progress, [in] long ProgressMax);
|
| 439 |
+
|
| 440 |
+
[id(DISPID_COMMANDSTATECHANGE), helpstring("The enabled state of a command changed."), helpcontext(0x0000)]
|
| 441 |
+
void CommandStateChange([in] long Command, [in] VARIANT_BOOL Enable);
|
| 442 |
+
|
| 443 |
+
[id(DISPID_DOWNLOADBEGIN), helpstring("Download of a page started."), helpcontext(0x000)]
|
| 444 |
+
void DownloadBegin();
|
| 445 |
+
|
| 446 |
+
[id(DISPID_DOWNLOADCOMPLETE), helpstring("Download of page complete."), helpcontext(0x0000)]
|
| 447 |
+
void DownloadComplete();
|
| 448 |
+
|
| 449 |
+
[id(DISPID_TITLECHANGE), helpstring("Document title changed."), helpcontext(0x0000)]
|
| 450 |
+
void TitleChange([in] BSTR Text);
|
| 451 |
+
|
| 452 |
+
[id(DISPID_PROPERTYCHANGE), helpstring("Fired when the PutProperty method has been called."), helpcontext(0x0000)]
|
| 453 |
+
void PropertyChange([in] BSTR szProperty);
|
| 454 |
+
|
| 455 |
+
// New events for IE40:
|
| 456 |
+
//
|
| 457 |
+
[id(DISPID_BEFORENAVIGATE2), helpstring("Fired before navigate occurs in the given WebBrowser (window or frameset element). The processing of this navigation may be modified."), helpcontext(0x0000)]
|
| 458 |
+
void BeforeNavigate2([in] IDispatch* pDisp,
|
| 459 |
+
[in] VARIANT * URL, [in] VARIANT * Flags, [in] VARIANT * TargetFrameName, [in] VARIANT * PostData, [in] VARIANT * Headers,
|
| 460 |
+
[in,out] VARIANT_BOOL * Cancel);
|
| 461 |
+
|
| 462 |
+
[id(DISPID_NEWWINDOW2), helpstring("A new, hidden, non-navigated WebBrowser window is needed."), helpcontext(0x0000)]
|
| 463 |
+
void NewWindow2([in, out] IDispatch** ppDisp, [in, out] VARIANT_BOOL * Cancel);
|
| 464 |
+
|
| 465 |
+
[id(DISPID_NAVIGATECOMPLETE2), helpstring("Fired when the document being navigated to becomes visible and enters the navigation stack."), helpcontext(0x0000)]
|
| 466 |
+
void NavigateComplete2([in] IDispatch* pDisp, [in] VARIANT * URL );
|
| 467 |
+
|
| 468 |
+
[id(DISPID_DOCUMENTCOMPLETE), helpstring("Fired when the document being navigated to reaches ReadyState_Complete."), helpcontext(0x0000)]
|
| 469 |
+
void DocumentComplete([in] IDispatch* pDisp, [in] VARIANT * URL );
|
| 470 |
+
|
| 471 |
+
[id(DISPID_ONQUIT), helpstring("Fired when application is quiting."), helpcontext(0x0000)]
|
| 472 |
+
void OnQuit();
|
| 473 |
+
|
| 474 |
+
[id(DISPID_ONVISIBLE), helpstring("Fired when the window should be shown/hidden"), helpcontext(0x0000)]
|
| 475 |
+
void OnVisible([in] VARIANT_BOOL Visible);
|
| 476 |
+
|
| 477 |
+
[id(DISPID_ONTOOLBAR), helpstring("Fired when the toolbar should be shown/hidden"), helpcontext(0x0000)]
|
| 478 |
+
void OnToolBar([in] VARIANT_BOOL ToolBar);
|
| 479 |
+
|
| 480 |
+
[id(DISPID_ONMENUBAR), helpstring("Fired when the menubar should be shown/hidden"), helpcontext(0x0000)]
|
| 481 |
+
void OnMenuBar([in] VARIANT_BOOL MenuBar);
|
| 482 |
+
|
| 483 |
+
[id(DISPID_ONSTATUSBAR), helpstring("Fired when the statusbar should be shown/hidden"), helpcontext(0x0000)]
|
| 484 |
+
void OnStatusBar([in] VARIANT_BOOL StatusBar);
|
| 485 |
+
|
| 486 |
+
[id(DISPID_ONFULLSCREEN), helpstring("Fired when fullscreen mode should be on/off"), helpcontext(0x0000)]
|
| 487 |
+
void OnFullScreen([in] VARIANT_BOOL FullScreen);
|
| 488 |
+
|
| 489 |
+
[id(DISPID_ONTHEATERMODE), helpstring("Fired when theater mode should be on/off"), helpcontext(0x0000)]
|
| 490 |
+
void OnTheaterMode([in] VARIANT_BOOL TheaterMode);
|
| 491 |
+
|
| 492 |
+
// New events for IE 5.5
|
| 493 |
+
|
| 494 |
+
[id(DISPID_WINDOWSETRESIZABLE), helpstring("Fired when the host window should allow/disallow resizing"), helpcontext(0x0000)]
|
| 495 |
+
void WindowSetResizable([in] VARIANT_BOOL Resizable);
|
| 496 |
+
|
| 497 |
+
[id(DISPID_WINDOWSETLEFT), helpstring("Fired when the host window should change its Left coordinate"), helpcontext(0x0000)]
|
| 498 |
+
void WindowSetLeft([in] long Left);
|
| 499 |
+
|
| 500 |
+
[id(DISPID_WINDOWSETTOP), helpstring("Fired when the host window should change its Top coordinate"), helpcontext(0x0000)]
|
| 501 |
+
void WindowSetTop([in] long Top);
|
| 502 |
+
|
| 503 |
+
[id(DISPID_WINDOWSETWIDTH), helpstring("Fired when the host window should change its width"), helpcontext(0x0000)]
|
| 504 |
+
void WindowSetWidth([in] long Width);
|
| 505 |
+
|
| 506 |
+
[id(DISPID_WINDOWSETHEIGHT), helpstring("Fired when the host window should change its height"), helpcontext(0x0000)]
|
| 507 |
+
void WindowSetHeight([in] long Height);
|
| 508 |
+
|
| 509 |
+
[id(DISPID_WINDOWCLOSING), helpstring("Fired when the WebBrowser is about to be closed by script"), helpcontext(0x0000)]
|
| 510 |
+
void WindowClosing([in] VARIANT_BOOL IsChildWindow, [in, out] VARIANT_BOOL * Cancel);
|
| 511 |
+
|
| 512 |
+
[id(DISPID_CLIENTTOHOSTWINDOW), helpstring("Fired to request client sizes be converted to host window sizes"), helpcontext(0x0000)]
|
| 513 |
+
void ClientToHostWindow([in, out] long* CX, [in, out] long* CY);
|
| 514 |
+
|
| 515 |
+
[id(DISPID_SETSECURELOCKICON), helpstring("Fired to indicate the security level of the current web page contents"), helpcontext(0x0000)]
|
| 516 |
+
void SetSecureLockIcon([in] long SecureLockIcon);
|
| 517 |
+
|
| 518 |
+
[id(DISPID_FILEDOWNLOAD), helpstring("Fired to indicate the File Download dialog is opening"), helpcontext(0x0000)]
|
| 519 |
+
void FileDownload([in] VARIANT_BOOL ActiveDocument, [in, out] VARIANT_BOOL * Cancel);
|
| 520 |
+
|
| 521 |
+
// New events for IE 6.0
|
| 522 |
+
|
| 523 |
+
[id(DISPID_NAVIGATEERROR), helpstring("Fired when a binding error occurs (window or frameset element)."), helpcontext(0x0000)]
|
| 524 |
+
void NavigateError([in] IDispatch* pDisp, [in] VARIANT* URL, [in] VARIANT* Frame, [in] VARIANT* StatusCode, [in,out] VARIANT_BOOL* Cancel);
|
| 525 |
+
|
| 526 |
+
[id(DISPID_PRINTTEMPLATEINSTANTIATION), helpstring("Fired when a print template is instantiated."), helpcontext(0x0000)]
|
| 527 |
+
void PrintTemplateInstantiation([in] IDispatch* pDisp);
|
| 528 |
+
|
| 529 |
+
[id(DISPID_PRINTTEMPLATETEARDOWN), helpstring("Fired when a print template destroyed."), helpcontext(0x0000)]
|
| 530 |
+
void PrintTemplateTeardown([in] IDispatch* pDisp);
|
| 531 |
+
|
| 532 |
+
[id(DISPID_UPDATEPAGESTATUS), helpstring("Fired when a page is spooled. When it is fired can be changed by a custom template."), helpcontext(0x0000)]
|
| 533 |
+
void UpdatePageStatus([in] IDispatch* pDisp, [in] VARIANT* nPage, [in] VARIANT* fDone);
|
| 534 |
+
|
| 535 |
+
[id(DISPID_PRIVACYIMPACTEDSTATECHANGE), helpstring("Fired when the global privacy impacted state changes"), helpcontext(0x0000)]
|
| 536 |
+
void PrivacyImpactedStateChange([in] VARIANT_BOOL bImpacted);
|
| 537 |
+
|
| 538 |
+
[id(DISPID_NEWWINDOW3), helpstring("A new, hidden, non-navigated WebBrowser window is needed."), helpcontext(0x0000)]
|
| 539 |
+
void NewWindow3([in, out] IDispatch** ppDisp, [in, out] VARIANT_BOOL * Cancel, [in] DWORD dwFlags, [in] BSTR bstrUrlContext, [in] BSTR bstrUrl);
|
| 540 |
+
|
| 541 |
+
// New events for IE 7.0
|
| 542 |
+
|
| 543 |
+
[id(DISPID_SETPHISHINGFILTERSTATUS), helpstring("Fired to indicate the progress and status of the Phishing Filter analysis of the current web page"), helpcontext(0x0000)]
|
| 544 |
+
void SetPhishingFilterStatus([in] long PhishingFilterStatus);
|
| 545 |
+
|
| 546 |
+
[id(DISPID_WINDOWSTATECHANGED), helpstring("Fired to indicate that the browser window's visibility or enabled state has changed."), helpcontext(0x0000)]
|
| 547 |
+
void WindowStateChanged([in] DWORD dwWindowStateFlags, [in] DWORD dwValidFlagsMask);
|
| 548 |
+
|
| 549 |
+
// New Events for IE 8.0
|
| 550 |
+
[id(DISPID_NEWPROCESS), helpstring("A new, hidden, non-navigated process is created to handle the navigation."), helpcontext(0x0000)]
|
| 551 |
+
void NewProcess([in] long lCauseFlag, [in] IDispatch* pWB2, [in, out] VARIANT_BOOL * Cancel);
|
| 552 |
+
|
| 553 |
+
[id(DISPID_THIRDPARTYURLBLOCKED), helpstring("Fired when a third-party URL is blocked."), helpcontext(0x0000)]
|
| 554 |
+
void ThirdPartyUrlBlocked([in] VARIANT* URL, [in] DWORD dwCount);
|
| 555 |
+
|
| 556 |
+
[id(DISPID_REDIRECTXDOMAINBLOCKED), helpstring("Fired when a x-domain redirect is blocked."), helpcontext(0x0000)]
|
| 557 |
+
void RedirectXDomainBlocked([in] IDispatch* pDisp, [in] VARIANT* StartURL, [in] VARIANT* RedirectURL, [in] VARIANT* Frame, [in] VARIANT* StatusCode);
|
| 558 |
+
|
| 559 |
+
// New Events for IE 10.0
|
| 560 |
+
[id(DISPID_BEFORESCRIPTEXECUTE), helpstring("Fired prior to the first script execution."), helpcontext(0x0000)]
|
| 561 |
+
void BeforeScriptExecute([in] IDispatch* pDispWindow);
|
| 562 |
+
|
| 563 |
+
[id(DISPID_WEBWORKERSTARTED), helpstring("Fired after a Web Worker has been started."), helpcontext(0x0000)]
|
| 564 |
+
void WebWorkerStarted([in] DWORD dwUniqueID, [in] BSTR bstrWorkerLabel);
|
| 565 |
+
|
| 566 |
+
[id(DISPID_WEBWORKERFINISHED), helpstring("Fired after a Web Worker has closed"), helpcontext(0x0000)]
|
| 567 |
+
void WebWorkerFinsihed([in] DWORD dwUniqueID);
|
| 568 |
+
}
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
[
|
| 573 |
+
uuid(EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B), // v.1 clsid CLSID_WebBrowser_V1
|
| 574 |
+
control,
|
| 575 |
+
helpstring("WebBrowser Control")
|
| 576 |
+
]
|
| 577 |
+
coclass WebBrowser_V1
|
| 578 |
+
{
|
| 579 |
+
interface IWebBrowser2;
|
| 580 |
+
[default] interface IWebBrowser;
|
| 581 |
+
[source] dispinterface DWebBrowserEvents2;
|
| 582 |
+
[default, source] dispinterface DWebBrowserEvents;
|
| 583 |
+
}
|
| 584 |
+
|
| 585 |
+
[
|
| 586 |
+
uuid(8856F961-340A-11D0-A96B-00C04FD705A2), // v.2 clsid CLSID_WebBrowser
|
| 587 |
+
control,
|
| 588 |
+
helpstring("WebBrowser Control")
|
| 589 |
+
]
|
| 590 |
+
coclass WebBrowser
|
| 591 |
+
{
|
| 592 |
+
[default] interface IWebBrowser2;
|
| 593 |
+
interface IWebBrowser;
|
| 594 |
+
[default, source] dispinterface DWebBrowserEvents2;
|
| 595 |
+
[source] dispinterface DWebBrowserEvents;
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
[
|
| 599 |
+
uuid(0002DF01-0000-0000-C000-000000000046), // CLSID_InternetExplorer
|
| 600 |
+
helpstring("Internet Explorer Application."),
|
| 601 |
+
]
|
| 602 |
+
coclass InternetExplorer
|
| 603 |
+
{
|
| 604 |
+
[default] interface IWebBrowser2;
|
| 605 |
+
interface IWebBrowserApp;
|
| 606 |
+
[default, source] dispinterface DWebBrowserEvents2;
|
| 607 |
+
[source] dispinterface DWebBrowserEvents;
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
[
|
| 611 |
+
uuid(D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E), // CLSID_InternetExplorerMedium
|
| 612 |
+
helpstring("Internet Explorer Application with default integrity of Medium"),
|
| 613 |
+
]
|
| 614 |
+
coclass InternetExplorerMedium
|
| 615 |
+
{
|
| 616 |
+
[default] interface IWebBrowser2;
|
| 617 |
+
interface IWebBrowserApp;
|
| 618 |
+
[default, source] dispinterface DWebBrowserEvents2;
|
| 619 |
+
[source] dispinterface DWebBrowserEvents;
|
| 620 |
+
}
|
| 621 |
+
|
| 622 |
+
[
|
| 623 |
+
uuid(c08afd90-f2a1-11d1-8455-00a0c91f3880), // CLSID_ShellBrowserWindow
|
| 624 |
+
helpstring("Shell Browser Window."),
|
| 625 |
+
hidden,
|
| 626 |
+
noncreatable,
|
| 627 |
+
]
|
| 628 |
+
coclass ShellBrowserWindow
|
| 629 |
+
{
|
| 630 |
+
[default] interface IWebBrowser2;
|
| 631 |
+
interface IWebBrowserApp;
|
| 632 |
+
[default, source] dispinterface DWebBrowserEvents2;
|
| 633 |
+
[source] dispinterface DWebBrowserEvents;
|
| 634 |
+
}
|
| 635 |
+
|
| 636 |
+
|
| 637 |
+
typedef
|
| 638 |
+
[
|
| 639 |
+
uuid(F41E6981-28E5-11d0-82B4-00A0C90C29C5),
|
| 640 |
+
helpstring("Constants for ShellWindows registration")
|
| 641 |
+
]
|
| 642 |
+
enum ShellWindowTypeConstants {
|
| 643 |
+
[helpstring("Explorer")] SWC_EXPLORER = 0x0,
|
| 644 |
+
[helpstring("Various Browsing Windows")] SWC_BROWSER = 0x00000001,
|
| 645 |
+
[helpstring("3rd Party Browsers")] SWC_3RDPARTY = 0x00000002,
|
| 646 |
+
[helpstring("Creation Callback")] SWC_CALLBACK = 0x00000004,
|
| 647 |
+
[helpstring("The Windows Desktop")] SWC_DESKTOP = 0x00000008,
|
| 648 |
+
} ShellWindowTypeConstants;
|
| 649 |
+
|
| 650 |
+
typedef
|
| 651 |
+
[
|
| 652 |
+
uuid(7716a370-38ca-11d0-a48b-00a0c90a8f39),
|
| 653 |
+
helpstring("Options for ShellWindows FindWindow"),
|
| 654 |
+
hidden
|
| 655 |
+
]
|
| 656 |
+
enum ShellWindowFindWindowOptions {
|
| 657 |
+
[helpstring("Need Dispatch")] SWFO_NEEDDISPATCH = 0x00000001,
|
| 658 |
+
[helpstring("Include Pending")] SWFO_INCLUDEPENDING = 0x00000002,
|
| 659 |
+
[helpstring("Cookie Passed")] SWFO_COOKIEPASSED = 0x00000004,
|
| 660 |
+
} ShellWindowFindWindowOptions;
|
| 661 |
+
|
| 662 |
+
[
|
| 663 |
+
uuid(fe4106e0-399a-11d0-a48c-00a0c90a8f39), // DIID_DShellWindowsEvents
|
| 664 |
+
helpstring("Event interface for IShellWindows"),
|
| 665 |
+
]
|
| 666 |
+
dispinterface DShellWindowsEvents
|
| 667 |
+
{
|
| 668 |
+
properties:
|
| 669 |
+
methods:
|
| 670 |
+
[id(DISPID_WINDOWREGISTERED), helpstring("A new window was registered."), helpcontext(0x0000)]
|
| 671 |
+
void WindowRegistered([in] long lCookie);
|
| 672 |
+
|
| 673 |
+
[id(DISPID_WINDOWREVOKED), helpstring("A new window was revoked."), helpcontext(0x0000)]
|
| 674 |
+
void WindowRevoked([in] long lCookie);
|
| 675 |
+
}
|
| 676 |
+
|
| 677 |
+
[
|
| 678 |
+
uuid(85CB6900-4D95-11CF-960C-0080C7F4EE85), // IID_IShellWindows
|
| 679 |
+
helpstring("Definition of interface IShellWindows"),
|
| 680 |
+
oleautomation,
|
| 681 |
+
dual,
|
| 682 |
+
odl,
|
| 683 |
+
]
|
| 684 |
+
interface IShellWindows : IDispatch
|
| 685 |
+
{
|
| 686 |
+
//Properties
|
| 687 |
+
[propget, helpstring("Get count of open Shell windows")]
|
| 688 |
+
HRESULT Count([out, retval] long *Count);
|
| 689 |
+
|
| 690 |
+
//Methods
|
| 691 |
+
[id(0), helpstring("Return the shell window for the given index")]
|
| 692 |
+
HRESULT Item([in,optional] VARIANT index, [out, retval]IDispatch **Folder);
|
| 693 |
+
|
| 694 |
+
[id(-4), helpstring("Enumerates the figures")]
|
| 695 |
+
HRESULT _NewEnum([out, retval] IUnknown **ppunk);
|
| 696 |
+
|
| 697 |
+
// Some private hidden members to allow shell windows to add and
|
| 698 |
+
// remove themself from the list. We mark them hidden to keep
|
| 699 |
+
// random VB apps from trying to Register...
|
| 700 |
+
[helpstring("Register a window with the list"), hidden]
|
| 701 |
+
HRESULT Register([in] IDispatch *pid,
|
| 702 |
+
[in] long hwnd,
|
| 703 |
+
[in] int swClass,
|
| 704 |
+
[out]long *plCookie);
|
| 705 |
+
|
| 706 |
+
[helpstring("Register a pending open with the list"), hidden]
|
| 707 |
+
HRESULT RegisterPending([in] long lThreadId,
|
| 708 |
+
[in] VARIANT* pvarloc, // will hold pidl that is being opened.
|
| 709 |
+
[in] VARIANT* pvarlocRoot, // Optional root pidl
|
| 710 |
+
[in] int swClass,
|
| 711 |
+
[out]long *plCookie);
|
| 712 |
+
|
| 713 |
+
[helpstring("Remove a window from the list"), hidden]
|
| 714 |
+
HRESULT Revoke([in]long lCookie);
|
| 715 |
+
// As an optimization, each window notifies the new location
|
| 716 |
+
// only when
|
| 717 |
+
// (1) it's being deactivated
|
| 718 |
+
// (2) getFullName is called (we overload it to force update)
|
| 719 |
+
[helpstring("Notifies the new location"), hidden]
|
| 720 |
+
HRESULT OnNavigate([in]long lCookie, [in] VARIANT* pvarLoc);
|
| 721 |
+
[helpstring("Notifies the activation"), hidden]
|
| 722 |
+
HRESULT OnActivated([in]long lCookie, [in] VARIANT_BOOL fActive);
|
| 723 |
+
[helpstring("Find the window based on the location"), hidden]
|
| 724 |
+
HRESULT FindWindowSW([in] VARIANT* pvarLoc,
|
| 725 |
+
[in] VARIANT* pvarLocRoot, /* unused */
|
| 726 |
+
[in] int swClass,
|
| 727 |
+
[out] long * phwnd,
|
| 728 |
+
[in] int swfwOptions,
|
| 729 |
+
[out,retval] IDispatch** ppdispOut);
|
| 730 |
+
[helpstring("Notifies on creation and frame name set"), hidden]
|
| 731 |
+
HRESULT OnCreated([in]long lCookie,[in] IUnknown *punk);
|
| 732 |
+
|
| 733 |
+
[helpstring("Used by IExplore to register different processes"), hidden]
|
| 734 |
+
HRESULT ProcessAttachDetach([in] VARIANT_BOOL fAttach);
|
| 735 |
+
}
|
| 736 |
+
|
| 737 |
+
[
|
| 738 |
+
uuid(9BA05972-F6A8-11CF-A442-00A0C90A8F39), // CLSID_ShellWindows
|
| 739 |
+
helpstring("ShellDispatch Load in Shell Context")
|
| 740 |
+
]
|
| 741 |
+
coclass ShellWindows
|
| 742 |
+
{
|
| 743 |
+
[default] interface IShellWindows;
|
| 744 |
+
[default, source] dispinterface DShellWindowsEvents;
|
| 745 |
+
}
|
| 746 |
+
|
| 747 |
+
[
|
| 748 |
+
uuid(729FE2F8-1EA8-11d1-8F85-00C04FC2FBE1), // IID_IShellUIHelper
|
| 749 |
+
helpstring("Shell UI Helper Control Interface"),
|
| 750 |
+
oleautomation, dual
|
| 751 |
+
]
|
| 752 |
+
interface IShellUIHelper : IDispatch
|
| 753 |
+
{
|
| 754 |
+
[hidden, id(DISPID_RESETFIRSTBOOTMODE)] HRESULT ResetFirstBootMode();
|
| 755 |
+
[hidden, id(DISPID_RESETSAFEMODE)] HRESULT ResetSafeMode();
|
| 756 |
+
[hidden, id(DISPID_REFRESHOFFLINEDESKTOP)] HRESULT RefreshOfflineDesktop();
|
| 757 |
+
[id(DISPID_ADDFAVORITE)] HRESULT AddFavorite([in] BSTR URL, [in, optional, unique] VARIANT *Title);
|
| 758 |
+
[id(DISPID_ADDCHANNEL)] HRESULT AddChannel([in] BSTR URL);
|
| 759 |
+
[id(DISPID_ADDDESKTOPCOMPONENT)] HRESULT AddDesktopComponent([in] BSTR URL, [in] BSTR Type,
|
| 760 |
+
[in, optional, unique] VARIANT *Left,
|
| 761 |
+
[in, optional, unique] VARIANT *Top,
|
| 762 |
+
[in, optional, unique] VARIANT *Width,
|
| 763 |
+
[in, optional, unique] VARIANT *Height);
|
| 764 |
+
[id(DISPID_ISSUBSCRIBED)] HRESULT IsSubscribed([in] BSTR URL, [out,retval] VARIANT_BOOL* pBool);
|
| 765 |
+
[id(DISPID_NAVIGATEANDFIND)] HRESULT NavigateAndFind([in] BSTR URL, [in] BSTR strQuery, [in] VARIANT* varTargetFrame);
|
| 766 |
+
[id(DISPID_IMPORTEXPORTFAVORITES)] HRESULT ImportExportFavorites([in] VARIANT_BOOL fImport, [in] BSTR strImpExpPath);
|
| 767 |
+
[id(DISPID_AUTOCOMPLETESAVEFORM)] HRESULT AutoCompleteSaveForm([in, optional, unique] VARIANT *Form);
|
| 768 |
+
[id(DISPID_AUTOSCAN)] HRESULT AutoScan([in] BSTR strSearch, [in] BSTR strFailureUrl, [in, optional, unique] VARIANT* pvarTargetFrame);
|
| 769 |
+
[hidden, id(DISPID_AUTOCOMPLETEATTACH)] HRESULT AutoCompleteAttach([in, optional, unique] VARIANT *Reserved);
|
| 770 |
+
[id(DISPID_SHOWBROWSERUI)] HRESULT ShowBrowserUI([in] BSTR bstrName, [in] VARIANT *pvarIn, [out, retval] VARIANT *pvarOut);
|
| 771 |
+
}
|
| 772 |
+
|
| 773 |
+
[
|
| 774 |
+
uuid(a7fe6eda-1932-4281-b881-87b31b8bc52c), // IID_IShellUIHelper2
|
| 775 |
+
helpstring("Shell UI Helper Control Interface 2"),
|
| 776 |
+
oleautomation, dual
|
| 777 |
+
]
|
| 778 |
+
interface IShellUIHelper2 : IShellUIHelper
|
| 779 |
+
{
|
| 780 |
+
[id(DISPID_ADDSEARCHPROVIDER)] HRESULT AddSearchProvider([in] BSTR URL);
|
| 781 |
+
[id(DISPID_RUNONCESHOWN)] HRESULT RunOnceShown();
|
| 782 |
+
[id(DISPID_SKIPRUNONCE)] HRESULT SkipRunOnce();
|
| 783 |
+
[id(DISPID_CUSTOMIZESETTINGS)] HRESULT CustomizeSettings(
|
| 784 |
+
[in] VARIANT_BOOL fSQM,
|
| 785 |
+
[in] VARIANT_BOOL fPhishing,
|
| 786 |
+
[in] BSTR bstrLocale);
|
| 787 |
+
[id(DISPID_SQMENABLED)] HRESULT SqmEnabled([out, retval] VARIANT_BOOL* pfEnabled);
|
| 788 |
+
[id(DISPID_PHISHINGENABLED)] HRESULT PhishingEnabled([out, retval] VARIANT_BOOL* pfEnabled);
|
| 789 |
+
[id(DISPID_BRANDIMAGEURI)] HRESULT BrandImageUri([out, retval] BSTR* pbstrUri);
|
| 790 |
+
[id(DISPID_SKIPTABSWELCOME)] HRESULT SkipTabsWelcome();
|
| 791 |
+
[id(DISPID_DIAGNOSECONNECTION)] HRESULT DiagnoseConnection();
|
| 792 |
+
[id(DISPID_CUSTOMIZECLEARTYPE)] HRESULT CustomizeClearType([in] VARIANT_BOOL fSet);
|
| 793 |
+
[id(DISPID_ISSEARCHPROVIDERINSTALLED)] HRESULT IsSearchProviderInstalled([in] BSTR URL, [out, retval] DWORD *pdwResult);
|
| 794 |
+
[id(DISPID_ISSEARCHMIGRATED)] HRESULT IsSearchMigrated([out, retval] VARIANT_BOOL* pfMigrated);
|
| 795 |
+
[id(DISPID_DEFAULTSEARCHPROVIDER)] HRESULT DefaultSearchProvider([out, retval] BSTR* pbstrName);
|
| 796 |
+
[id(DISPID_RUNONCEREQUIREDSETTINGSCOMPLETE)] HRESULT RunOnceRequiredSettingsComplete([in] VARIANT_BOOL fComplete);
|
| 797 |
+
[id(DISPID_RUNONCEHASSHOWN)] HRESULT RunOnceHasShown([out, retval] VARIANT_BOOL* pfShown);
|
| 798 |
+
[id(DISPID_SEARCHGUIDEURL)] HRESULT SearchGuideUrl([out, retval] BSTR* pbstrUrl);
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
+
[
|
| 802 |
+
|
| 803 |
+
uuid(528DF2EC-D419-40bc-9B6D-DCDBF9C1B25D), // IID_IShellUIHelper3
|
| 804 |
+
|
| 805 |
+
helpstring("Shell UI Helper Control Interface 3"),
|
| 806 |
+
oleautomation, dual
|
| 807 |
+
]
|
| 808 |
+
interface IShellUIHelper3 : IShellUIHelper2
|
| 809 |
+
{
|
| 810 |
+
[id(DISPID_ADDSERVICE)] HRESULT AddService([in] BSTR URL);
|
| 811 |
+
[id(DISPID_ISSERVICEINSTALLED)] HRESULT IsServiceInstalled([in] BSTR URL, [in] BSTR Verb, [out, retval] DWORD *pdwResult);
|
| 812 |
+
[id(DISPID_INPRIVATEFILTERINGENABLED)] HRESULT InPrivateFilteringEnabled([out, retval] VARIANT_BOOL *pfEnabled);
|
| 813 |
+
[id(DISPID_ADDTOFAVORITESBAR)] HRESULT AddToFavoritesBar([in] BSTR URL, [in] BSTR Title, [optional, in] VARIANT *Type);
|
| 814 |
+
[id(DISPID_BUILDNEWTABPAGE)] HRESULT BuildNewTabPage();
|
| 815 |
+
[id(DISPID_SETRECENTLYCLOSEDVISIBLE)] HRESULT SetRecentlyClosedVisible([in] VARIANT_BOOL fVisible);
|
| 816 |
+
[id(DISPID_SETACTIVITIESVISIBLE)] HRESULT SetActivitiesVisible([in] VARIANT_BOOL fVisible);
|
| 817 |
+
[id(DISPID_CONTENTDISCOVERYRESET)] HRESULT ContentDiscoveryReset();
|
| 818 |
+
[id(DISPID_SUGGESTEDSITESENABLED)] HRESULT IsSuggestedSitesEnabled([out, retval] VARIANT_BOOL* pfEnabled);
|
| 819 |
+
[id(DISPID_ENABLESUGGESTEDSITES)] HRESULT EnableSuggestedSites([in] VARIANT_BOOL fEnable);
|
| 820 |
+
[id(DISPID_NAVIGATETOSUGGESTEDSITES)] HRESULT NavigateToSuggestedSites([in] BSTR bstrRelativeUrl);
|
| 821 |
+
[id(DISPID_SHOWTABSHELP)] HRESULT ShowTabsHelp();
|
| 822 |
+
[id(DISPID_SHOWINPRIVATEHELP)] HRESULT ShowInPrivateHelp();
|
| 823 |
+
}
|
| 824 |
+
|
| 825 |
+
[
|
| 826 |
+
uuid(B36E6A53-8073-499E-824C-D776330A333E), // IID_IShellUIHelper4
|
| 827 |
+
|
| 828 |
+
helpstring("Shell UI Helper Control Interface 4"),
|
| 829 |
+
oleautomation, dual
|
| 830 |
+
]
|
| 831 |
+
interface IShellUIHelper4 : IShellUIHelper3
|
| 832 |
+
{
|
| 833 |
+
[id(DISPID_ISSITEMODE)] HRESULT msIsSiteMode([out, retval] VARIANT_BOOL *pfSiteMode);
|
| 834 |
+
[id(DISPID_SETTHUMBNAILBUTTONS)] HRESULT msSiteModeShowThumbBar();
|
| 835 |
+
[id(DISPID_ADDTHUMBNAILBUTTONS)] HRESULT msSiteModeAddThumbBarButton([in] BSTR bstrIconURL, [in] BSTR bstrTooltip, [out, retval] VARIANT *pvarButtonID);
|
| 836 |
+
[id(DISPID_UPDATETHUMBNAILBUTTON)] HRESULT msSiteModeUpdateThumbBarButton([in] VARIANT ButtonID, [in] VARIANT_BOOL fEnabled, [in] VARIANT_BOOL fVisible);
|
| 837 |
+
[id(DISPID_SETSITEMODEICONOVERLAY)] HRESULT msSiteModeSetIconOverlay([in] BSTR IconUrl, [optional, in] VARIANT *pvarDescription);
|
| 838 |
+
[id(DISPID_CLEARSITEMODEICONOVERLAY)] HRESULT msSiteModeClearIconOverlay();
|
| 839 |
+
[id(DISPID_ADDSITEMODE)] HRESULT msAddSiteMode();
|
| 840 |
+
[id(DISPID_SITEMODECREATEJUMPLIST)] HRESULT msSiteModeCreateJumpList([in] BSTR bstrHeader);
|
| 841 |
+
[id(DISPID_SITEMODEADDJUMPLISTITEM)] HRESULT msSiteModeAddJumpListItem([in] BSTR bstrName, [in] BSTR bstrActionUri, [in] BSTR bstrIconUri, [optional, in] VARIANT *pvarWindowType);
|
| 842 |
+
[id(DISPID_SITEMODECLEARJUMPLIST)] HRESULT msSiteModeClearJumpList();
|
| 843 |
+
[id(DISPID_SITEMODESHOWJUMPLIST)] HRESULT msSiteModeShowJumpList();
|
| 844 |
+
[id(DISPID_SITEMODEADDBUTTONSTYLE)] HRESULT msSiteModeAddButtonStyle([in] VARIANT uiButtonID, [in] BSTR bstrIconUrl, [in] BSTR bstrTooltip, [out, retval] VARIANT *pvarStyleID);
|
| 845 |
+
[id(DISPID_SITEMODESHOWBUTTONSTYLE)] HRESULT msSiteModeShowButtonStyle([in] VARIANT uiButtonID, [in] VARIANT uiStyleID);
|
| 846 |
+
[id(DISPID_SITEMODEACTIVATE)] HRESULT msSiteModeActivate();
|
| 847 |
+
[id(DISPID_ISSITEMODEFIRSTRUN)] HRESULT msIsSiteModeFirstRun([in] VARIANT_BOOL fPreserveState, [out, retval] VARIANT *puiFirstRun);
|
| 848 |
+
[id(DISPID_ADDTRACKINGPROTECTIONLIST)] HRESULT msAddTrackingProtectionList([in] BSTR URL, [in] BSTR bstrFilterName);
|
| 849 |
+
[id(DISPID_TRACKINGPROTECTIONENABLED)] HRESULT msTrackingProtectionEnabled([out, retval] VARIANT_BOOL *pfEnabled);
|
| 850 |
+
[id(DISPID_ACTIVEXFILTERINGENABLED)] HRESULT msActiveXFilteringEnabled([out, retval] VARIANT_BOOL *pfEnabled);
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
[
|
| 854 |
+
uuid(A2A08B09-103D-4D3F-B91C-EA455CA82EFA), // IID_IShellUIHelper5
|
| 855 |
+
|
| 856 |
+
helpstring("Shell UI Helper Control Interface 5"),
|
| 857 |
+
oleautomation, dual
|
| 858 |
+
]
|
| 859 |
+
interface IShellUIHelper5 : IShellUIHelper4
|
| 860 |
+
{
|
| 861 |
+
[id(DISPID_PROVISIONNETWORKS)] HRESULT msProvisionNetworks([in] BSTR bstrProvisioningXml, [out, retval] VARIANT *puiResult);
|
| 862 |
+
[id(DISPID_REPORTSAFEURL)] HRESULT msReportSafeUrl();
|
| 863 |
+
[id(DISPID_SITEMODEREFRESHBADGE)] HRESULT msSiteModeRefreshBadge();
|
| 864 |
+
[id(DISPID_SITEMODECLEARBADGE)] HRESULT msSiteModeClearBadge();
|
| 865 |
+
[id(DISPID_DIAGNOSECONNECTIONUILESS)] HRESULT msDiagnoseConnectionUILess();
|
| 866 |
+
[id(DISPID_LAUNCHNETWORKCLIENTHELP)] HRESULT msLaunchNetworkClientHelp();
|
| 867 |
+
[id(DISPID_CHANGEDEFAULTBROWSER)] HRESULT msChangeDefaultBrowser([in] VARIANT_BOOL fChange);
|
| 868 |
+
}
|
| 869 |
+
|
| 870 |
+
[
|
| 871 |
+
uuid(987A573E-46EE-4E89-96AB-DDF7F8FDC98C), // IID_IShellUIHelper6
|
| 872 |
+
|
| 873 |
+
helpstring("Shell UI Helper Control Interface 6"),
|
| 874 |
+
oleautomation, dual
|
| 875 |
+
]
|
| 876 |
+
interface IShellUIHelper6 : IShellUIHelper5
|
| 877 |
+
{
|
| 878 |
+
[id(DISPID_STOPPERIODICUPDATE)] HRESULT msStopPeriodicTileUpdate();
|
| 879 |
+
[id(DISPID_STARTPERIODICUPDATE)] HRESULT msStartPeriodicTileUpdate([in] VARIANT pollingUris, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence);
|
| 880 |
+
[id(DISPID_STARTPERIODICUPDATEBATCH)] HRESULT msStartPeriodicTileUpdateBatch([in] VARIANT pollingUris, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence);
|
| 881 |
+
[id(DISPID_CLEARNOTIFICATION)] HRESULT msClearTile();
|
| 882 |
+
[id(DISPID_ENABLENOTIFICATIONQUEUE)] HRESULT msEnableTileNotificationQueue([in] VARIANT_BOOL fChange);
|
| 883 |
+
[id(DISPID_PINNEDSITESTATE)] HRESULT msPinnedSiteState([out, retval] VARIANT *pvarSiteState);
|
| 884 |
+
[id(DISPID_ENABLENOTIFICATIONQUEUESQUARE)] HRESULT msEnableTileNotificationQueueForSquare150x150([in] VARIANT_BOOL fChange);
|
| 885 |
+
[id(DISPID_ENABLENOTIFICATIONQUEUEWIDE)] HRESULT msEnableTileNotificationQueueForWide310x150([in] VARIANT_BOOL fChange);
|
| 886 |
+
[id(DISPID_ENABLENOTIFICATIONQUEUELARGE)] HRESULT msEnableTileNotificationQueueForSquare310x310([in] VARIANT_BOOL fChange);
|
| 887 |
+
[id(DISPID_SCHEDULEDTILENOTIFICATION)] HRESULT msScheduledTileNotification([in] BSTR bstrNotificationXml, [in] BSTR bstrNotificationId, [in] BSTR bstrNotificationTag, [optional, in] VARIANT startTime, [optional, in] VARIANT expirationTime);
|
| 888 |
+
[id(DISPID_REMOVESCHEDULEDTILENOTIFICATION)] HRESULT msRemoveScheduledTileNotification([in] BSTR bstrNotificationId);
|
| 889 |
+
[id(DISPID_STARTBADGEUPDATE)] HRESULT msStartPeriodicBadgeUpdate([in] BSTR pollingUri, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence);
|
| 890 |
+
[id(DISPID_STOPBADGEUPDATE)] HRESULT msStopPeriodicBadgeUpdate();
|
| 891 |
+
[id(DISPID_LAUNCHINTERNETOPTIONS)] HRESULT msLaunchInternetOptions();
|
| 892 |
+
}
|
| 893 |
+
|
| 894 |
+
[
|
| 895 |
+
uuid(60E567C8-9573-4AB2-A264-637C6C161CB1), // IID_IShellUIHelper7
|
| 896 |
+
|
| 897 |
+
helpstring("Shell UI Helper Control Interface 7"),
|
| 898 |
+
oleautomation, dual
|
| 899 |
+
]
|
| 900 |
+
interface IShellUIHelper7 : IShellUIHelper6
|
| 901 |
+
{
|
| 902 |
+
[id(DISPID_GETEXPERIMENTALFLAG)] HRESULT SetExperimentalFlag([in] BSTR bstrFlagString, [in] VARIANT_BOOL vfFlag);
|
| 903 |
+
[id(DISPID_SETEXPERIMENTALFLAG)] HRESULT GetExperimentalFlag([in] BSTR bstrFlagString, [out, retval] VARIANT_BOOL* vfFlag);
|
| 904 |
+
[id(DISPID_SETEXPERIMENTALVALUE)] HRESULT SetExperimentalValue([in] BSTR bstrValueString, [in] DWORD dwValue);
|
| 905 |
+
[id(DISPID_GETEXPERIMENTALVALUE)] HRESULT GetExperimentalValue([in] BSTR bstrValueString, [out, retval] DWORD* pdwValue);
|
| 906 |
+
[id(DISPID_RESETEXPERIMENTALFLAGS)] HRESULT ResetAllExperimentalFlagsAndValues();
|
| 907 |
+
[id(DISPID_GETNEEDIEAUTOLAUNCHFLAG)] HRESULT GetNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [out, retval] VARIANT_BOOL* flag);
|
| 908 |
+
[id(DISPID_SETNEEDIEAUTOLAUNCHFLAG)] HRESULT SetNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [in] VARIANT_BOOL flag);
|
| 909 |
+
[id(DISPID_HASNEEDIEAUTOLAUNCHFLAG)] HRESULT HasNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [out, retval] VARIANT_BOOL* exists);
|
| 910 |
+
[id(DISPID_LAUNCHIE)] HRESULT LaunchIE([in] BSTR bstrUrl, [in] VARIANT_BOOL automated);
|
| 911 |
+
}
|
| 912 |
+
|
| 913 |
+
[
|
| 914 |
+
uuid(66DEBCF2-05B0-4F07-B49B-B96241A65DB2), // IID_IShellUIHelper8
|
| 915 |
+
|
| 916 |
+
helpstring("Shell UI Helper Control Interface 8"),
|
| 917 |
+
oleautomation, dual
|
| 918 |
+
]
|
| 919 |
+
interface IShellUIHelper8 : IShellUIHelper7
|
| 920 |
+
{
|
| 921 |
+
[id(DISPID_GETCVLISTDATA)] HRESULT GetCVListData([out, retval] BSTR* pbstrResult);
|
| 922 |
+
[id(DISPID_GETCVLISTLOCALDATA)] HRESULT GetCVListLocalData([out, retval] BSTR* pbstrResult);
|
| 923 |
+
[id(DISPID_GETEMIELISTDATA)] HRESULT GetEMIEListData([out, retval] BSTR* pbstrResult);
|
| 924 |
+
[id(DISPID_GETEMIELISTLOCALDATA)] HRESULT GetEMIEListLocalData([out, retval] BSTR* pbstrResult);
|
| 925 |
+
[id(DISPID_OPENFAVORITESPANE)] HRESULT OpenFavoritesPane();
|
| 926 |
+
[id(DISPID_OPENFAVORITESSETTINGS)] HRESULT OpenFavoritesSettings();
|
| 927 |
+
[id(DISPID_LAUNCHINHVSI)] HRESULT LaunchInHVSI([in] BSTR bstrUrl);
|
| 928 |
+
}
|
| 929 |
+
|
| 930 |
+
[
|
| 931 |
+
uuid(6cdf73b0-7f2f-451f-bc0f-63e0f3284e54), // IID_IShellUIHelper9
|
| 932 |
+
|
| 933 |
+
helpstring("Shell UI Helper Control Interface 9"),
|
| 934 |
+
oleautomation, dual
|
| 935 |
+
]
|
| 936 |
+
interface IShellUIHelper9 : IShellUIHelper8
|
| 937 |
+
{
|
| 938 |
+
[id(DISPID_GETOSSKU)] HRESULT GetOSSku([out, retval] DWORD* pdwResult);
|
| 939 |
+
}
|
| 940 |
+
|
| 941 |
+
[
|
| 942 |
+
uuid(64AB4BB7-111E-11d1-8F79-00C04FC2FBE1) // CLSID_ShellUIHelper
|
| 943 |
+
]
|
| 944 |
+
coclass ShellUIHelper
|
| 945 |
+
{
|
| 946 |
+
[default] interface IShellUIHelper9;
|
| 947 |
+
}
|
| 948 |
+
|
| 949 |
+
[
|
| 950 |
+
uuid(55136806-B2DE-11D1-B9F2-00A0C98BC547) //DIID_DShellNameSpaceEvents
|
| 951 |
+
]
|
| 952 |
+
dispinterface DShellNameSpaceEvents
|
| 953 |
+
{
|
| 954 |
+
properties:
|
| 955 |
+
methods:
|
| 956 |
+
[id(DISPID_FAVSELECTIONCHANGE)]
|
| 957 |
+
void FavoritesSelectionChange([in] long cItems, [in] long hItem, [in] BSTR strName,
|
| 958 |
+
[in] BSTR strUrl, [in] long cVisits, [in] BSTR strDate,
|
| 959 |
+
[in] BOOL fAvailableOffline);
|
| 960 |
+
[id(DISPID_SELECTIONCHANGE)]
|
| 961 |
+
void SelectionChange();
|
| 962 |
+
[id(DISPID_DOUBLECLICK)]
|
| 963 |
+
void DoubleClick();
|
| 964 |
+
[id(DISPID_INITIALIZED)]
|
| 965 |
+
void Initialized();
|
| 966 |
+
}
|
| 967 |
+
|
| 968 |
+
[
|
| 969 |
+
object,
|
| 970 |
+
uuid(55136804-B2DE-11D1-B9F2-00A0C98BC547), //IID_IShellFavoritesNameSpace
|
| 971 |
+
dual,
|
| 972 |
+
helpstring("IShellFavoritesNameSpace Interface"),
|
| 973 |
+
pointer_default(unique),
|
| 974 |
+
hidden
|
| 975 |
+
]
|
| 976 |
+
interface IShellFavoritesNameSpace : IDispatch
|
| 977 |
+
{
|
| 978 |
+
[id(DISPID_MOVESELECTIONUP), helpstring("method MoveSelectionUp")]
|
| 979 |
+
HRESULT MoveSelectionUp();
|
| 980 |
+
[id(DISPID_MOVESELECTIONDOWN), helpstring("method MoveSelectionDown")]
|
| 981 |
+
HRESULT MoveSelectionDown();
|
| 982 |
+
[id(DISPID_RESETSORT), helpstring("method ResetSort")]
|
| 983 |
+
HRESULT ResetSort();
|
| 984 |
+
[id(DISPID_NEWFOLDER), helpstring("method NewFolder")]
|
| 985 |
+
HRESULT NewFolder();
|
| 986 |
+
[id(DISPID_SYNCHRONIZE), helpstring("method Synchronize")]
|
| 987 |
+
HRESULT Synchronize();
|
| 988 |
+
[id(DISPID_IMPORT), helpstring("method Import")]
|
| 989 |
+
HRESULT Import();
|
| 990 |
+
[id(DISPID_EXPORT), helpstring("method Export")]
|
| 991 |
+
HRESULT Export();
|
| 992 |
+
[id(DISPID_INVOKECONTEXTMENU), helpstring("method InvokeContextMenuCommand")]
|
| 993 |
+
HRESULT InvokeContextMenuCommand([in] BSTR strCommand);
|
| 994 |
+
[id(DISPID_MOVESELECTIONTO), helpstring("method MoveSelectionTo")]
|
| 995 |
+
HRESULT MoveSelectionTo();
|
| 996 |
+
[propget, id(DISPID_SUBSCRIPTIONSENABLED), helpstring("Query to see if subscriptions are enabled")]
|
| 997 |
+
HRESULT SubscriptionsEnabled([out, retval] VARIANT_BOOL *pBool);
|
| 998 |
+
[id(DISPID_CREATESUBSCRIPTION), helpstring("method CreateSubscriptionForSelection")]
|
| 999 |
+
HRESULT CreateSubscriptionForSelection([out, retval] VARIANT_BOOL *pBool);
|
| 1000 |
+
[id(DISPID_DELETESUBSCRIPTION), helpstring("method DeleteSubscriptionForSelection")]
|
| 1001 |
+
HRESULT DeleteSubscriptionForSelection([out, retval] VARIANT_BOOL *pBool);
|
| 1002 |
+
|
| 1003 |
+
[id(DISPID_SETROOT), helpstring("old, use put_Root() instead")]
|
| 1004 |
+
HRESULT SetRoot([in] BSTR bstrFullPath);
|
| 1005 |
+
}
|
| 1006 |
+
|
| 1007 |
+
[
|
| 1008 |
+
object,
|
| 1009 |
+
uuid(e572d3c9-37be-4ae2-825d-d521763e3108), // IID_IShellNameSpace
|
| 1010 |
+
dual,
|
| 1011 |
+
helpstring("IShellNameSpace Interface"),
|
| 1012 |
+
pointer_default(unique),
|
| 1013 |
+
hidden
|
| 1014 |
+
]
|
| 1015 |
+
interface IShellNameSpace : IShellFavoritesNameSpace
|
| 1016 |
+
{
|
| 1017 |
+
[propget, id(DISPID_ENUMOPTIONS), helpstring("options ")]
|
| 1018 |
+
HRESULT EnumOptions([out, retval] LONG *pgrfEnumFlags);
|
| 1019 |
+
[propput, id(DISPID_ENUMOPTIONS), helpstring("options ")]
|
| 1020 |
+
HRESULT EnumOptions([in] LONG lVal);
|
| 1021 |
+
|
| 1022 |
+
[propget, id(DISPID_SELECTEDITEM), helpstring("get the selected item")]
|
| 1023 |
+
HRESULT SelectedItem([out, retval] IDispatch **pItem);
|
| 1024 |
+
[propput, id(DISPID_SELECTEDITEM), helpstring("select an item in the tree")]
|
| 1025 |
+
HRESULT SelectedItem([in] IDispatch *pItem);
|
| 1026 |
+
|
| 1027 |
+
[propget, id(DISPID_ROOT), helpstring("get the root item")]
|
| 1028 |
+
HRESULT Root([out, retval] VARIANT *pvar);
|
| 1029 |
+
[propput, id(DISPID_ROOT), helpstring("set the root")]
|
| 1030 |
+
HRESULT Root([in] VARIANT var);
|
| 1031 |
+
[propget, id(DISPID_DEPTH), helpstring("")]
|
| 1032 |
+
HRESULT Depth([out, retval] int *piDepth);
|
| 1033 |
+
[propput, id(DISPID_DEPTH), helpstring("")]
|
| 1034 |
+
HRESULT Depth([in] int iDepth);
|
| 1035 |
+
[propget, id(DISPID_MODE), helpstring("")]
|
| 1036 |
+
HRESULT Mode([out, retval] UINT *puMode);
|
| 1037 |
+
[propput, id(DISPID_MODE), helpstring("")]
|
| 1038 |
+
HRESULT Mode([in] UINT uMode);
|
| 1039 |
+
[propget, id(DISPID_FLAGS), helpstring("")]
|
| 1040 |
+
HRESULT Flags([out, retval] DWORD *pdwFlags);
|
| 1041 |
+
[propput, id(DISPID_FLAGS), helpstring("")]
|
| 1042 |
+
HRESULT Flags([in] DWORD dwFlags);
|
| 1043 |
+
[propput, id(DISPID_TVFLAGS), helpstring("")]
|
| 1044 |
+
HRESULT TVFlags([in] DWORD dwFlags);
|
| 1045 |
+
[propget, id(DISPID_TVFLAGS), helpstring("")]
|
| 1046 |
+
HRESULT TVFlags([out, retval] DWORD *dwFlags);
|
| 1047 |
+
[propget, id(DISPID_NSCOLUMNS), helpstring("")]
|
| 1048 |
+
HRESULT Columns([out, retval] BSTR *bstrColumns);
|
| 1049 |
+
[propput, id(DISPID_NSCOLUMNS), helpstring("")]
|
| 1050 |
+
HRESULT Columns([in] BSTR bstrColumns);
|
| 1051 |
+
[propget, id(DISPID_COUNTVIEWTYPES), helpstring("number of view types")]
|
| 1052 |
+
HRESULT CountViewTypes([out, retval] int *piTypes);
|
| 1053 |
+
[id(DISPID_SETVIEWTYPE), helpstring("set view type")]
|
| 1054 |
+
HRESULT SetViewType([in] int iType);
|
| 1055 |
+
[id(DISPID_SELECTEDITEMS), helpstring("collection of selected items")]
|
| 1056 |
+
HRESULT SelectedItems([out, retval] IDispatch **ppid);
|
| 1057 |
+
[id(DISPID_EXPAND), helpstring("expands item specified depth")]
|
| 1058 |
+
HRESULT Expand([in] VARIANT var, int iDepth);
|
| 1059 |
+
//[propget,id(DISPID_READYSTATE), helpstring("return ready state of the control")]
|
| 1060 |
+
// HRESULT ReadyState([retval, out] READYSTATE * plReadyState);
|
| 1061 |
+
[id(DISPID_UNSELECTALL), helpstring("unselects all items")]
|
| 1062 |
+
HRESULT UnselectAll();
|
| 1063 |
+
}
|
| 1064 |
+
|
| 1065 |
+
[
|
| 1066 |
+
uuid(55136805-B2DE-11D1-B9F2-00A0C98BC547) // CLSID_ShellNameSpace
|
| 1067 |
+
]
|
| 1068 |
+
coclass ShellNameSpace
|
| 1069 |
+
{
|
| 1070 |
+
[default] interface IShellNameSpace;
|
| 1071 |
+
[default, source] dispinterface DShellNameSpaceEvents;
|
| 1072 |
+
};
|
| 1073 |
+
|
| 1074 |
+
[
|
| 1075 |
+
uuid(F3470F24-15FD-11d2-BB2E-00805FF7EFCA), // IID_IScriptErrorList
|
| 1076 |
+
helpstring("Script Error List Interface"),
|
| 1077 |
+
oleautomation,
|
| 1078 |
+
hidden,
|
| 1079 |
+
dual,
|
| 1080 |
+
]
|
| 1081 |
+
interface IScriptErrorList : IDispatch
|
| 1082 |
+
{
|
| 1083 |
+
// navigation through list of errors
|
| 1084 |
+
[id(DISPID_ADVANCEERROR)] HRESULT advanceError();
|
| 1085 |
+
[id(DISPID_RETREATERROR)] HRESULT retreatError();
|
| 1086 |
+
[id(DISPID_CANADVANCEERROR)] HRESULT canAdvanceError([out, retval] BOOL * pfCanAdvance);
|
| 1087 |
+
[id(DISPID_CANRETREATERROR)] HRESULT canRetreatError([out, retval] BOOL * pfCanRetreat);
|
| 1088 |
+
|
| 1089 |
+
// data access for the current error in the error list
|
| 1090 |
+
[id(DISPID_GETERRORLINE)] HRESULT getErrorLine([out, retval] LONG * plLine);
|
| 1091 |
+
[id(DISPID_GETERRORCHAR)] HRESULT getErrorChar([out, retval] LONG * plChar);
|
| 1092 |
+
[id(DISPID_GETERRORCODE)] HRESULT getErrorCode([out, retval] LONG * plCode);
|
| 1093 |
+
[id(DISPID_GETERRORMSG)] HRESULT getErrorMsg([out, retval] BSTR * pstr);
|
| 1094 |
+
[id(DISPID_GETERRORURL)] HRESULT getErrorUrl([out, retval] BSTR * pstr);
|
| 1095 |
+
|
| 1096 |
+
[id(DISPID_GETALWAYSSHOWLOCKSTATE)] HRESULT getAlwaysShowLockState([out, retval] BOOL * pfAlwaysShowLocked);
|
| 1097 |
+
[id(DISPID_GETDETAILSSTATE)] HRESULT getDetailsPaneOpen([out, retval] BOOL * pfDetailsPaneOpen);
|
| 1098 |
+
[id(DISPID_SETDETAILSSTATE)] HRESULT setDetailsPaneOpen(BOOL fDetailsPaneOpen);
|
| 1099 |
+
[id(DISPID_GETPERERRSTATE)] HRESULT getPerErrorDisplay([out, retval] BOOL * pfPerErrorDisplay);
|
| 1100 |
+
[id(DISPID_SETPERERRSTATE)] HRESULT setPerErrorDisplay(BOOL fPerErrorDisplay);
|
| 1101 |
+
}
|
| 1102 |
+
[
|
| 1103 |
+
uuid(EFD01300-160F-11d2-BB2E-00805FF7EFCA), // CLSID_ScriptErrorList
|
| 1104 |
+
hidden,
|
| 1105 |
+
noncreatable,
|
| 1106 |
+
]
|
| 1107 |
+
coclass CScriptErrorList
|
| 1108 |
+
{
|
| 1109 |
+
[default] interface IScriptErrorList;
|
| 1110 |
+
}
|
| 1111 |
+
|
| 1112 |
+
}; // SHDocVw library
|
| 1113 |
+
|
| 1114 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 1115 |
+
#pragma endregion
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExDispid.h
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef EXDISPID_H_
|
| 2 |
+
//+-------------------------------------------------------------------------
|
| 3 |
+
//
|
| 4 |
+
// Microsoft Windows
|
| 5 |
+
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 6 |
+
//
|
| 7 |
+
// File: exdispid.h
|
| 8 |
+
//
|
| 9 |
+
//--------------------------------------------------------------------------
|
| 10 |
+
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
|
| 13 |
+
#pragma region Desktop Family
|
| 14 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 15 |
+
|
| 16 |
+
//
|
| 17 |
+
// Dispatch IDS for IExplorer Dispatch Events.
|
| 18 |
+
//
|
| 19 |
+
#define DISPID_BEFORENAVIGATE 100 // this is sent before navigation to give a chance to abort
|
| 20 |
+
#define DISPID_NAVIGATECOMPLETE 101 // in async, this is sent when we have enough to show
|
| 21 |
+
#define DISPID_STATUSTEXTCHANGE 102
|
| 22 |
+
#define DISPID_QUIT 103
|
| 23 |
+
#define DISPID_DOWNLOADCOMPLETE 104
|
| 24 |
+
#define DISPID_COMMANDSTATECHANGE 105
|
| 25 |
+
#define DISPID_DOWNLOADBEGIN 106
|
| 26 |
+
#define DISPID_NEWWINDOW 107 // sent when a new window should be created
|
| 27 |
+
#define DISPID_PROGRESSCHANGE 108 // sent when download progress is updated
|
| 28 |
+
#define DISPID_WINDOWMOVE 109 // sent when main window has been moved
|
| 29 |
+
#define DISPID_WINDOWRESIZE 110 // sent when main window has been sized
|
| 30 |
+
#define DISPID_WINDOWACTIVATE 111 // sent when main window has been activated
|
| 31 |
+
#define DISPID_PROPERTYCHANGE 112 // sent when the PutProperty method is called
|
| 32 |
+
#define DISPID_TITLECHANGE 113 // sent when the document title changes
|
| 33 |
+
#define DISPID_TITLEICONCHANGE 114 // sent when the top level window icon may have changed.
|
| 34 |
+
|
| 35 |
+
#define DISPID_FRAMEBEFORENAVIGATE 200
|
| 36 |
+
#define DISPID_FRAMENAVIGATECOMPLETE 201
|
| 37 |
+
#define DISPID_FRAMENEWWINDOW 204
|
| 38 |
+
|
| 39 |
+
#define DISPID_BEFORENAVIGATE2 250 // hyperlink clicked on
|
| 40 |
+
#define DISPID_NEWWINDOW2 251
|
| 41 |
+
#define DISPID_NAVIGATECOMPLETE2 252 // UIActivate new document
|
| 42 |
+
#define DISPID_ONQUIT 253
|
| 43 |
+
#define DISPID_ONVISIBLE 254 // sent when the window goes visible/hidden
|
| 44 |
+
#define DISPID_ONTOOLBAR 255 // sent when the toolbar should be shown/hidden
|
| 45 |
+
#define DISPID_ONMENUBAR 256 // sent when the menubar should be shown/hidden
|
| 46 |
+
#define DISPID_ONSTATUSBAR 257 // sent when the statusbar should be shown/hidden
|
| 47 |
+
#define DISPID_ONFULLSCREEN 258 // sent when kiosk mode should be on/off
|
| 48 |
+
#define DISPID_DOCUMENTCOMPLETE 259 // new document goes ReadyState_Complete
|
| 49 |
+
#define DISPID_ONTHEATERMODE 260 // sent when theater mode should be on/off
|
| 50 |
+
#define DISPID_ONADDRESSBAR 261 // sent when the address bar should be shown/hidden
|
| 51 |
+
#define DISPID_WINDOWSETRESIZABLE 262 // sent to set the style of the host window frame
|
| 52 |
+
#define DISPID_WINDOWCLOSING 263 // sent before script window.close closes the window
|
| 53 |
+
#define DISPID_WINDOWSETLEFT 264 // sent when the put_left method is called on the WebOC
|
| 54 |
+
#define DISPID_WINDOWSETTOP 265 // sent when the put_top method is called on the WebOC
|
| 55 |
+
#define DISPID_WINDOWSETWIDTH 266 // sent when the put_width method is called on the WebOC
|
| 56 |
+
#define DISPID_WINDOWSETHEIGHT 267 // sent when the put_height method is called on the WebOC
|
| 57 |
+
#define DISPID_CLIENTTOHOSTWINDOW 268 // sent during window.open to request conversion of dimensions
|
| 58 |
+
#define DISPID_SETSECURELOCKICON 269 // sent to suggest the appropriate security icon to show
|
| 59 |
+
#define DISPID_FILEDOWNLOAD 270 // Fired to indicate the File Download dialog is opening
|
| 60 |
+
#define DISPID_NAVIGATEERROR 271 // Fired to indicate the a binding error has occured
|
| 61 |
+
#define DISPID_PRIVACYIMPACTEDSTATECHANGE 272 // Fired when the user's browsing experience is impacted
|
| 62 |
+
#define DISPID_NEWWINDOW3 273
|
| 63 |
+
#define DISPID_VIEWUPDATE 281 // Fired when the contents of a shell browser window change
|
| 64 |
+
#define DISPID_SETPHISHINGFILTERSTATUS 282 // Fired by the Phishing Filter API to signal what state the analysis is in
|
| 65 |
+
#define DISPID_WINDOWSTATECHANGED 283 // Fired to indicate that the browser window's visibility or enabled state has changed
|
| 66 |
+
#define DISPID_NEWPROCESS 284 // Fired when a navigation must be redirected due to Protected Mode
|
| 67 |
+
#define DISPID_THIRDPARTYURLBLOCKED 285 // Fired when a third-party url is blocked due to Privacy Advisor
|
| 68 |
+
#define DISPID_REDIRECTXDOMAINBLOCKED 286 // Fired when a x-domain redirect is blocked due to browser nav constant
|
| 69 |
+
#define DISPID_WEBWORKERSTARTED 288
|
| 70 |
+
#define DISPID_WEBWORKERFINISHED 289
|
| 71 |
+
#define DISPID_BEFORESCRIPTEXECUTE 290 // Fired prior to any of a page's script is executed
|
| 72 |
+
|
| 73 |
+
// Printing events
|
| 74 |
+
#define DISPID_PRINTTEMPLATEINSTANTIATION 225 // Fired to indicate that a print template is instantiated
|
| 75 |
+
#define DISPID_PRINTTEMPLATETEARDOWN 226 // Fired to indicate that a print templete is completely gone
|
| 76 |
+
#define DISPID_UPDATEPAGESTATUS 227 // Fired to indicate that the spooling status has changed
|
| 77 |
+
|
| 78 |
+
// define the events for the shell window list
|
| 79 |
+
#define DISPID_WINDOWREGISTERED 200 // Window registered
|
| 80 |
+
#define DISPID_WINDOWREVOKED 201 // Window Revoked
|
| 81 |
+
|
| 82 |
+
#define DISPID_RESETFIRSTBOOTMODE 1
|
| 83 |
+
#define DISPID_RESETSAFEMODE 2
|
| 84 |
+
#define DISPID_REFRESHOFFLINEDESKTOP 3
|
| 85 |
+
#define DISPID_ADDFAVORITE 4
|
| 86 |
+
#define DISPID_ADDCHANNEL 5
|
| 87 |
+
#define DISPID_ADDDESKTOPCOMPONENT 6
|
| 88 |
+
#define DISPID_ISSUBSCRIBED 7
|
| 89 |
+
#define DISPID_NAVIGATEANDFIND 8
|
| 90 |
+
#define DISPID_IMPORTEXPORTFAVORITES 9
|
| 91 |
+
#define DISPID_AUTOCOMPLETESAVEFORM 10
|
| 92 |
+
#define DISPID_AUTOSCAN 11
|
| 93 |
+
#define DISPID_AUTOCOMPLETEATTACH 12
|
| 94 |
+
#define DISPID_SHOWBROWSERUI 13
|
| 95 |
+
#define DISPID_ADDSEARCHPROVIDER 14
|
| 96 |
+
#define DISPID_RUNONCESHOWN 15
|
| 97 |
+
#define DISPID_SKIPRUNONCE 16
|
| 98 |
+
#define DISPID_CUSTOMIZESETTINGS 17
|
| 99 |
+
#define DISPID_SQMENABLED 18
|
| 100 |
+
#define DISPID_PHISHINGENABLED 19
|
| 101 |
+
#define DISPID_BRANDIMAGEURI 20
|
| 102 |
+
#define DISPID_SKIPTABSWELCOME 21
|
| 103 |
+
#define DISPID_DIAGNOSECONNECTION 22
|
| 104 |
+
#define DISPID_CUSTOMIZECLEARTYPE 23
|
| 105 |
+
#define DISPID_ISSEARCHPROVIDERINSTALLED 24
|
| 106 |
+
#define DISPID_ISSEARCHMIGRATED 25
|
| 107 |
+
#define DISPID_DEFAULTSEARCHPROVIDER 26
|
| 108 |
+
#define DISPID_RUNONCEREQUIREDSETTINGSCOMPLETE 27
|
| 109 |
+
#define DISPID_RUNONCEHASSHOWN 28
|
| 110 |
+
#define DISPID_SEARCHGUIDEURL 29
|
| 111 |
+
#define DISPID_ADDSERVICE 30
|
| 112 |
+
#define DISPID_ISSERVICEINSTALLED 31
|
| 113 |
+
#define DISPID_ADDTOFAVORITESBAR 32
|
| 114 |
+
#define DISPID_BUILDNEWTABPAGE 33
|
| 115 |
+
#define DISPID_SETRECENTLYCLOSEDVISIBLE 34
|
| 116 |
+
#define DISPID_SETACTIVITIESVISIBLE 35
|
| 117 |
+
#define DISPID_CONTENTDISCOVERYRESET 36
|
| 118 |
+
#define DISPID_INPRIVATEFILTERINGENABLED 37
|
| 119 |
+
#define DISPID_SUGGESTEDSITESENABLED 38
|
| 120 |
+
#define DISPID_ENABLESUGGESTEDSITES 39
|
| 121 |
+
#define DISPID_NAVIGATETOSUGGESTEDSITES 40
|
| 122 |
+
#define DISPID_SHOWTABSHELP 41
|
| 123 |
+
#define DISPID_SHOWINPRIVATEHELP 42
|
| 124 |
+
#define DISPID_ISSITEMODE 43
|
| 125 |
+
#define DISPID_SETSITEMODEICONOVERLAY 44
|
| 126 |
+
#define DISPID_CLEARSITEMODEICONOVERLAY 45
|
| 127 |
+
#define DISPID_UPDATETHUMBNAILBUTTON 46
|
| 128 |
+
#define DISPID_SETTHUMBNAILBUTTONS 47
|
| 129 |
+
#define DISPID_ADDTHUMBNAILBUTTONS 48
|
| 130 |
+
#define DISPID_ADDSITEMODE 49
|
| 131 |
+
#define DISPID_SETSITEMODEPROPERTIES 50
|
| 132 |
+
#define DISPID_SITEMODECREATEJUMPLIST 51
|
| 133 |
+
#define DISPID_SITEMODEADDJUMPLISTITEM 52
|
| 134 |
+
#define DISPID_SITEMODECLEARJUMPLIST 53
|
| 135 |
+
#define DISPID_SITEMODEADDBUTTONSTYLE 54
|
| 136 |
+
#define DISPID_SITEMODESHOWBUTTONSTYLE 55
|
| 137 |
+
#define DISPID_SITEMODESHOWJUMPLIST 56
|
| 138 |
+
#define DISPID_ADDTRACKINGPROTECTIONLIST 57
|
| 139 |
+
#define DISPID_SITEMODEACTIVATE 58
|
| 140 |
+
#define DISPID_ISSITEMODEFIRSTRUN 59
|
| 141 |
+
#define DISPID_TRACKINGPROTECTIONENABLED 60
|
| 142 |
+
#define DISPID_ACTIVEXFILTERINGENABLED 61
|
| 143 |
+
#define DISPID_PROVISIONNETWORKS 62
|
| 144 |
+
#define DISPID_REPORTSAFEURL 63
|
| 145 |
+
#define DISPID_SITEMODEREFRESHBADGE 64
|
| 146 |
+
#define DISPID_SITEMODECLEARBADGE 65
|
| 147 |
+
#define DISPID_DIAGNOSECONNECTIONUILESS 66
|
| 148 |
+
#define DISPID_LAUNCHNETWORKCLIENTHELP 67
|
| 149 |
+
#define DISPID_CHANGEDEFAULTBROWSER 68
|
| 150 |
+
#define DISPID_STOPPERIODICUPDATE 69
|
| 151 |
+
#define DISPID_STARTPERIODICUPDATE 70
|
| 152 |
+
#define DISPID_CLEARNOTIFICATION 71
|
| 153 |
+
#define DISPID_ENABLENOTIFICATIONQUEUE 72
|
| 154 |
+
#define DISPID_PINNEDSITESTATE 73
|
| 155 |
+
#define DISPID_LAUNCHINTERNETOPTIONS 74
|
| 156 |
+
#define DISPID_STARTPERIODICUPDATEBATCH 75
|
| 157 |
+
#define DISPID_ENABLENOTIFICATIONQUEUESQUARE 76
|
| 158 |
+
#define DISPID_ENABLENOTIFICATIONQUEUEWIDE 77
|
| 159 |
+
#define DISPID_ENABLENOTIFICATIONQUEUELARGE 78
|
| 160 |
+
#define DISPID_SCHEDULEDTILENOTIFICATION 79
|
| 161 |
+
#define DISPID_REMOVESCHEDULEDTILENOTIFICATION 80
|
| 162 |
+
#define DISPID_STARTBADGEUPDATE 81
|
| 163 |
+
#define DISPID_STOPBADGEUPDATE 82
|
| 164 |
+
#define DISPID_ISMETAREFERRERAVAILABLE 83
|
| 165 |
+
#define DISPID_SETEXPERIMENTALFLAG 84
|
| 166 |
+
#define DISPID_GETEXPERIMENTALFLAG 85
|
| 167 |
+
#define DISPID_SETEXPERIMENTALVALUE 86
|
| 168 |
+
#define DISPID_GETEXPERIMENTALVALUE 87
|
| 169 |
+
#define DISPID_HASNEEDIEAUTOLAUNCHFLAG 88
|
| 170 |
+
#define DISPID_GETNEEDIEAUTOLAUNCHFLAG 89
|
| 171 |
+
#define DISPID_SETNEEDIEAUTOLAUNCHFLAG 90
|
| 172 |
+
#define DISPID_LAUNCHIE 91
|
| 173 |
+
#define DISPID_RESETEXPERIMENTALFLAGS 92
|
| 174 |
+
#define DISPID_GETCVLISTDATA 93
|
| 175 |
+
#define DISPID_GETCVLISTLOCALDATA 94
|
| 176 |
+
#define DISPID_GETEMIELISTDATA 95
|
| 177 |
+
#define DISPID_GETEMIELISTLOCALDATA 96
|
| 178 |
+
#define DISPID_OPENFAVORITESPANE 97
|
| 179 |
+
#define DISPID_OPENFAVORITESSETTINGS 98
|
| 180 |
+
#define DISPID_LAUNCHINHVSI 99
|
| 181 |
+
#define DISPID_GETNEEDHVSIAUTOLAUNCHFLAG 100
|
| 182 |
+
#define DISPID_SETNEEDHVSIAUTOLAUNCHFLAG 101
|
| 183 |
+
#define DISPID_HASNEEDHVSIAUTOLAUNCHFLAG 102
|
| 184 |
+
#define DISPID_GETOSSKU 103
|
| 185 |
+
#define DISPID_SETMSDEFAULTS 104
|
| 186 |
+
#define DISPID_SHELLUIHELPERLAST 105
|
| 187 |
+
|
| 188 |
+
#define DISPID_ADVANCEERROR 10
|
| 189 |
+
#define DISPID_RETREATERROR 11
|
| 190 |
+
#define DISPID_CANADVANCEERROR 12
|
| 191 |
+
#define DISPID_CANRETREATERROR 13
|
| 192 |
+
#define DISPID_GETERRORLINE 14
|
| 193 |
+
#define DISPID_GETERRORCHAR 15
|
| 194 |
+
#define DISPID_GETERRORCODE 16
|
| 195 |
+
#define DISPID_GETERRORMSG 17
|
| 196 |
+
#define DISPID_GETERRORURL 18
|
| 197 |
+
#define DISPID_GETDETAILSSTATE 19
|
| 198 |
+
#define DISPID_SETDETAILSSTATE 20
|
| 199 |
+
#define DISPID_GETPERERRSTATE 21
|
| 200 |
+
#define DISPID_SETPERERRSTATE 22
|
| 201 |
+
#define DISPID_GETALWAYSSHOWLOCKSTATE 23
|
| 202 |
+
|
| 203 |
+
// Dispatch IDS for ShellFavoritesNameSpace Dispatch Events.
|
| 204 |
+
//
|
| 205 |
+
#define DISPID_FAVSELECTIONCHANGE 1
|
| 206 |
+
#define DISPID_SELECTIONCHANGE 2
|
| 207 |
+
#define DISPID_DOUBLECLICK 3
|
| 208 |
+
#define DISPID_INITIALIZED 4
|
| 209 |
+
|
| 210 |
+
#define DISPID_MOVESELECTIONUP 1
|
| 211 |
+
#define DISPID_MOVESELECTIONDOWN 2
|
| 212 |
+
#define DISPID_RESETSORT 3
|
| 213 |
+
#define DISPID_NEWFOLDER 4
|
| 214 |
+
#define DISPID_SYNCHRONIZE 5
|
| 215 |
+
#define DISPID_IMPORT 6
|
| 216 |
+
#define DISPID_EXPORT 7
|
| 217 |
+
#define DISPID_INVOKECONTEXTMENU 8
|
| 218 |
+
#define DISPID_MOVESELECTIONTO 9
|
| 219 |
+
#define DISPID_SUBSCRIPTIONSENABLED 10
|
| 220 |
+
#define DISPID_CREATESUBSCRIPTION 11
|
| 221 |
+
#define DISPID_DELETESUBSCRIPTION 12
|
| 222 |
+
#define DISPID_SETROOT 13
|
| 223 |
+
#define DISPID_ENUMOPTIONS 14
|
| 224 |
+
#define DISPID_SELECTEDITEM 15
|
| 225 |
+
#define DISPID_ROOT 16
|
| 226 |
+
#define DISPID_DEPTH 17
|
| 227 |
+
#define DISPID_MODE 18
|
| 228 |
+
#define DISPID_FLAGS 19
|
| 229 |
+
#define DISPID_TVFLAGS 20
|
| 230 |
+
#define DISPID_NSCOLUMNS 21
|
| 231 |
+
#define DISPID_COUNTVIEWTYPES 22
|
| 232 |
+
#define DISPID_SETVIEWTYPE 23
|
| 233 |
+
#define DISPID_SELECTEDITEMS 24
|
| 234 |
+
#define DISPID_EXPAND 25
|
| 235 |
+
#define DISPID_UNSELECTALL 26
|
| 236 |
+
|
| 237 |
+
#define EXDISPID_H_
|
| 238 |
+
|
| 239 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 240 |
+
#pragma endregion
|
| 241 |
+
|
| 242 |
+
#endif // EXDISPID_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.h
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 500
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __extensionvalidation_h__
|
| 34 |
+
#define __extensionvalidation_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IExtensionValidation_FWD_DEFINED__
|
| 51 |
+
#define __IExtensionValidation_FWD_DEFINED__
|
| 52 |
+
typedef interface IExtensionValidation IExtensionValidation;
|
| 53 |
+
|
| 54 |
+
#endif /* __IExtensionValidation_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
/* header files for imported files */
|
| 58 |
+
#include "oaidl.h"
|
| 59 |
+
#include "ocidl.h"
|
| 60 |
+
#include "Mshtml.h"
|
| 61 |
+
|
| 62 |
+
#ifdef __cplusplus
|
| 63 |
+
extern "C"{
|
| 64 |
+
#endif
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
/* interface __MIDL_itf_extensionvalidation_0000_0000 */
|
| 68 |
+
/* [local] */
|
| 69 |
+
|
| 70 |
+
/*******************************************************
|
| 71 |
+
* *
|
| 72 |
+
* Copyright (C) Microsoft. All rights reserved. *
|
| 73 |
+
* *
|
| 74 |
+
*******************************************************/
|
| 75 |
+
#ifdef _MSC_VER
|
| 76 |
+
#pragma once
|
| 77 |
+
#endif
|
| 78 |
+
|
| 79 |
+
#pragma comment(lib,"uuid.lib")
|
| 80 |
+
|
| 81 |
+
#include <winapifamily.h>
|
| 82 |
+
#pragma region Desktop Family
|
| 83 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 84 |
+
typedef
|
| 85 |
+
enum ExtensionValidationContexts
|
| 86 |
+
{
|
| 87 |
+
ExtensionValidationContextNone = 0,
|
| 88 |
+
ExtensionValidationContextDynamic = 0x1,
|
| 89 |
+
ExtensionValidationContextParsed = 0x2
|
| 90 |
+
} ExtensionValidationContexts;
|
| 91 |
+
|
| 92 |
+
typedef
|
| 93 |
+
enum ExtensionValidationResults
|
| 94 |
+
{
|
| 95 |
+
ExtensionValidationResultNone = 0,
|
| 96 |
+
ExtensionValidationResultDoNotInstantiate = 0x1,
|
| 97 |
+
ExtensionValidationResultArrestPageLoad = 0x2
|
| 98 |
+
} ExtensionValidationResults;
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0000_v0_0_c_ifspec;
|
| 103 |
+
extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0000_v0_0_s_ifspec;
|
| 104 |
+
|
| 105 |
+
#ifndef __IExtensionValidation_INTERFACE_DEFINED__
|
| 106 |
+
#define __IExtensionValidation_INTERFACE_DEFINED__
|
| 107 |
+
|
| 108 |
+
/* interface IExtensionValidation */
|
| 109 |
+
/* [uuid][unique][object][local] */
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
EXTERN_C const IID IID_IExtensionValidation;
|
| 113 |
+
|
| 114 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 115 |
+
|
| 116 |
+
MIDL_INTERFACE("7d33f73d-8525-4e0f-87db-830288baff44")
|
| 117 |
+
IExtensionValidation : public IUnknown
|
| 118 |
+
{
|
| 119 |
+
public:
|
| 120 |
+
virtual HRESULT STDMETHODCALLTYPE Validate(
|
| 121 |
+
/* [in] */ REFGUID extensionGuid,
|
| 122 |
+
/* [string][in] */ LPWSTR extensionModulePath,
|
| 123 |
+
/* [in] */ DWORD extensionFileVersionMS,
|
| 124 |
+
/* [in] */ DWORD extensionFileVersionLS,
|
| 125 |
+
/* [in] */ IHTMLDocument2 *htmlDocumentTop,
|
| 126 |
+
/* [in] */ IHTMLDocument2 *htmlDocumentSubframe,
|
| 127 |
+
/* [in] */ IHTMLElement *htmlElement,
|
| 128 |
+
/* [in] */ ExtensionValidationContexts contexts,
|
| 129 |
+
/* [out] */ ExtensionValidationResults *results) = 0;
|
| 130 |
+
|
| 131 |
+
virtual HRESULT STDMETHODCALLTYPE DisplayName(
|
| 132 |
+
/* [string][out] */ LPWSTR *displayName) = 0;
|
| 133 |
+
|
| 134 |
+
};
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
#else /* C style interface */
|
| 138 |
+
|
| 139 |
+
typedef struct IExtensionValidationVtbl
|
| 140 |
+
{
|
| 141 |
+
BEGIN_INTERFACE
|
| 142 |
+
|
| 143 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 144 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 145 |
+
IExtensionValidation * This,
|
| 146 |
+
/* [in] */ REFIID riid,
|
| 147 |
+
/* [annotation][iid_is][out] */
|
| 148 |
+
_COM_Outptr_ void **ppvObject);
|
| 149 |
+
|
| 150 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 151 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 152 |
+
IExtensionValidation * This);
|
| 153 |
+
|
| 154 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 155 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 156 |
+
IExtensionValidation * This);
|
| 157 |
+
|
| 158 |
+
DECLSPEC_XFGVIRT(IExtensionValidation, Validate)
|
| 159 |
+
HRESULT ( STDMETHODCALLTYPE *Validate )(
|
| 160 |
+
IExtensionValidation * This,
|
| 161 |
+
/* [in] */ REFGUID extensionGuid,
|
| 162 |
+
/* [string][in] */ LPWSTR extensionModulePath,
|
| 163 |
+
/* [in] */ DWORD extensionFileVersionMS,
|
| 164 |
+
/* [in] */ DWORD extensionFileVersionLS,
|
| 165 |
+
/* [in] */ IHTMLDocument2 *htmlDocumentTop,
|
| 166 |
+
/* [in] */ IHTMLDocument2 *htmlDocumentSubframe,
|
| 167 |
+
/* [in] */ IHTMLElement *htmlElement,
|
| 168 |
+
/* [in] */ ExtensionValidationContexts contexts,
|
| 169 |
+
/* [out] */ ExtensionValidationResults *results);
|
| 170 |
+
|
| 171 |
+
DECLSPEC_XFGVIRT(IExtensionValidation, DisplayName)
|
| 172 |
+
HRESULT ( STDMETHODCALLTYPE *DisplayName )(
|
| 173 |
+
IExtensionValidation * This,
|
| 174 |
+
/* [string][out] */ LPWSTR *displayName);
|
| 175 |
+
|
| 176 |
+
END_INTERFACE
|
| 177 |
+
} IExtensionValidationVtbl;
|
| 178 |
+
|
| 179 |
+
interface IExtensionValidation
|
| 180 |
+
{
|
| 181 |
+
CONST_VTBL struct IExtensionValidationVtbl *lpVtbl;
|
| 182 |
+
};
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
#ifdef COBJMACROS
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
#define IExtensionValidation_QueryInterface(This,riid,ppvObject) \
|
| 190 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 191 |
+
|
| 192 |
+
#define IExtensionValidation_AddRef(This) \
|
| 193 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 194 |
+
|
| 195 |
+
#define IExtensionValidation_Release(This) \
|
| 196 |
+
( (This)->lpVtbl -> Release(This) )
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
#define IExtensionValidation_Validate(This,extensionGuid,extensionModulePath,extensionFileVersionMS,extensionFileVersionLS,htmlDocumentTop,htmlDocumentSubframe,htmlElement,contexts,results) \
|
| 200 |
+
( (This)->lpVtbl -> Validate(This,extensionGuid,extensionModulePath,extensionFileVersionMS,extensionFileVersionLS,htmlDocumentTop,htmlDocumentSubframe,htmlElement,contexts,results) )
|
| 201 |
+
|
| 202 |
+
#define IExtensionValidation_DisplayName(This,displayName) \
|
| 203 |
+
( (This)->lpVtbl -> DisplayName(This,displayName) )
|
| 204 |
+
|
| 205 |
+
#endif /* COBJMACROS */
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
#endif /* C style interface */
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
#endif /* __IExtensionValidation_INTERFACE_DEFINED__ */
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
/* interface __MIDL_itf_extensionvalidation_0000_0001 */
|
| 217 |
+
/* [local] */
|
| 218 |
+
|
| 219 |
+
EXTERN_C GUID CATID_ExtensionValidation;
|
| 220 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 221 |
+
#pragma endregion
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0001_v0_0_c_ifspec;
|
| 225 |
+
extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0001_v0_0_s_ifspec;
|
| 226 |
+
|
| 227 |
+
/* Additional Prototypes for ALL interfaces */
|
| 228 |
+
|
| 229 |
+
/* end of Additional Prototypes */
|
| 230 |
+
|
| 231 |
+
#ifdef __cplusplus
|
| 232 |
+
}
|
| 233 |
+
#endif
|
| 234 |
+
|
| 235 |
+
#endif
|
| 236 |
+
|
| 237 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.idl
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************
|
| 2 |
+
* *
|
| 3 |
+
* Copyright (C) Microsoft. All rights reserved. *
|
| 4 |
+
* *
|
| 5 |
+
*******************************************************/
|
| 6 |
+
cpp_quote("/*******************************************************")
|
| 7 |
+
cpp_quote(" * *")
|
| 8 |
+
cpp_quote(" * Copyright (C) Microsoft. All rights reserved. *")
|
| 9 |
+
cpp_quote(" * *")
|
| 10 |
+
cpp_quote(" *******************************************************/")
|
| 11 |
+
cpp_quote("#ifdef _MSC_VER")
|
| 12 |
+
cpp_quote("#pragma once")
|
| 13 |
+
cpp_quote("#endif")
|
| 14 |
+
cpp_quote("")
|
| 15 |
+
cpp_quote("#pragma comment(lib,\"uuid.lib\")")
|
| 16 |
+
cpp_quote("")
|
| 17 |
+
cpp_quote("#include <winapifamily.h>")
|
| 18 |
+
|
| 19 |
+
import "oaidl.idl";
|
| 20 |
+
import "ocidl.idl";
|
| 21 |
+
import "Mshtml.idl";
|
| 22 |
+
|
| 23 |
+
#pragma region Desktop Family
|
| 24 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 25 |
+
|
| 26 |
+
typedef enum ExtensionValidationContexts
|
| 27 |
+
{
|
| 28 |
+
ExtensionValidationContextNone = 0x00,
|
| 29 |
+
ExtensionValidationContextDynamic = 0x01,
|
| 30 |
+
ExtensionValidationContextParsed = 0x02,
|
| 31 |
+
} ExtensionValidationContexts;
|
| 32 |
+
|
| 33 |
+
typedef enum ExtensionValidationResults
|
| 34 |
+
{
|
| 35 |
+
ExtensionValidationResultNone = 0x00,
|
| 36 |
+
ExtensionValidationResultDoNotInstantiate = 0x01,
|
| 37 |
+
ExtensionValidationResultArrestPageLoad = 0x02,
|
| 38 |
+
} ExtensionValidationResults;
|
| 39 |
+
|
| 40 |
+
//-------------------------------------------------------------------------
|
| 41 |
+
//
|
| 42 |
+
// IExtensionValidation
|
| 43 |
+
//
|
| 44 |
+
//-------------------------------------------------------------------------
|
| 45 |
+
[
|
| 46 |
+
local,
|
| 47 |
+
object,
|
| 48 |
+
pointer_default(unique),
|
| 49 |
+
uuid(7d33f73d-8525-4e0f-87db-830288baff44)
|
| 50 |
+
]
|
| 51 |
+
interface IExtensionValidation : IUnknown
|
| 52 |
+
{
|
| 53 |
+
HRESULT Validate([in] REFGUID extensionGuid,
|
| 54 |
+
[in, string] LPWSTR extensionModulePath,
|
| 55 |
+
[in] DWORD extensionFileVersionMS,
|
| 56 |
+
[in] DWORD extensionFileVersionLS,
|
| 57 |
+
[in] IHTMLDocument2* htmlDocumentTop,
|
| 58 |
+
[in] IHTMLDocument2* htmlDocumentSubframe,
|
| 59 |
+
[in] IHTMLElement* htmlElement,
|
| 60 |
+
[in] ExtensionValidationContexts contexts,
|
| 61 |
+
[out] ExtensionValidationResults* results);
|
| 62 |
+
|
| 63 |
+
HRESULT DisplayName([out, string] LPWSTR* displayName);
|
| 64 |
+
};
|
| 65 |
+
|
| 66 |
+
cpp_quote("EXTERN_C GUID CATID_ExtensionValidation;")
|
| 67 |
+
|
| 68 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 69 |
+
#pragma endregion
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxCom.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx_i.c
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
|
| 4 |
+
|
| 5 |
+
/* link this file in with the server and any clients */
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 9 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C"{
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#include <rpc.h>
|
| 19 |
+
#include <rpcndr.h>
|
| 20 |
+
|
| 21 |
+
#ifdef _MIDL_USE_GUIDDEF_
|
| 22 |
+
|
| 23 |
+
#ifndef INITGUID
|
| 24 |
+
#define INITGUID
|
| 25 |
+
#include <guiddef.h>
|
| 26 |
+
#undef INITGUID
|
| 27 |
+
#else
|
| 28 |
+
#include <guiddef.h>
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
| 32 |
+
DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
|
| 33 |
+
|
| 34 |
+
#else // !_MIDL_USE_GUIDDEF_
|
| 35 |
+
|
| 36 |
+
#ifndef __IID_DEFINED__
|
| 37 |
+
#define __IID_DEFINED__
|
| 38 |
+
|
| 39 |
+
typedef struct _IID
|
| 40 |
+
{
|
| 41 |
+
unsigned long x;
|
| 42 |
+
unsigned short s1;
|
| 43 |
+
unsigned short s2;
|
| 44 |
+
unsigned char c[8];
|
| 45 |
+
} IID;
|
| 46 |
+
|
| 47 |
+
#endif // __IID_DEFINED__
|
| 48 |
+
|
| 49 |
+
#ifndef CLSID_DEFINED
|
| 50 |
+
#define CLSID_DEFINED
|
| 51 |
+
typedef IID CLSID;
|
| 52 |
+
#endif // CLSID_DEFINED
|
| 53 |
+
|
| 54 |
+
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
| 55 |
+
EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
| 56 |
+
|
| 57 |
+
#endif // !_MIDL_USE_GUIDDEF_
|
| 58 |
+
|
| 59 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxJobStatus,0x8B86F485,0xFD7F,0x4824,0x88,0x6B,0x40,0xC5,0xCA,0xA6,0x17,0xCC);
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxServer,0x475B6469,0x90A5,0x4878,0xA5,0x77,0x17,0xA8,0x6E,0x8E,0x34,0x62);
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDeviceProviders,0x9FB76F62,0x4C7E,0x43A5,0xB6,0xFD,0x50,0x28,0x93,0xF7,0xE1,0x3E);
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDevices,0x9E46783E,0xF34F,0x482E,0xA3,0x60,0x04,0x16,0xBE,0xCB,0xBD,0x96);
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxInboundRouting,0x8148C20F,0x9D52,0x45B1,0xBF,0x96,0x38,0xFC,0x12,0x71,0x35,0x27);
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxFolders,0xDCE3B2A8,0xA7AB,0x42BC,0x9D,0x0A,0x31,0x49,0x45,0x72,0x61,0xA0);
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxLoggingOptions,0x34E64FB9,0x6B31,0x4D32,0x8B,0x27,0xD2,0x86,0xC0,0xC3,0x36,0x06);
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxActivity,0x4B106F97,0x3DF5,0x40F2,0xBC,0x3C,0x44,0xCB,0x81,0x15,0xEB,0xDF);
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRouting,0x25DC05A4,0x9909,0x41BD,0xA9,0x5B,0x7E,0x5D,0x1D,0xEC,0x1D,0x43);
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxReceiptOptions,0x378EFAEB,0x5FCB,0x4AFB,0xB2,0xEE,0xE1,0x6E,0x80,0x61,0x44,0x87);
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxSecurity,0x77B508C1,0x09C0,0x47A2,0x91,0xEB,0xFC,0xE7,0xFD,0xF2,0x69,0x0E);
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDocument,0xB207A246,0x09E3,0x4A4E,0xA7,0xDC,0xFE,0xA3,0x1D,0x29,0x45,0x8F);
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxSender,0x0D879D7D,0xF57A,0x4CC6,0xA6,0xF9,0x3E,0xE5,0xD5,0x27,0xB4,0x6A);
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxRecipient,0x9A3DA3A0,0x538D,0x42b6,0x94,0x44,0xAA,0xA5,0x7D,0x0C,0xE2,0xBC);
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxRecipients,0xB9C9DE5A,0x894E,0x4492,0x9F,0xA3,0x08,0xC6,0x27,0xC1,0x1D,0x5D);
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingArchive,0x76062CC7,0xF714,0x4FBD,0xAA,0x06,0xED,0x6E,0x4A,0x4B,0x70,0xF3);
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingQueue,0x902E64EF,0x8FD8,0x4B75,0x97,0x25,0x60,0x14,0xDF,0x16,0x15,0x45);
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingArchive,0xC9C28F40,0x8D80,0x4E53,0x81,0x0F,0x9A,0x79,0x91,0x9B,0x49,0xFD);
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingQueue,0x80B1DF24,0xD9AC,0x4333,0xB3,0x73,0x48,0x7C,0xED,0xC8,0x0C,0xE5);
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessageIterator,0xFD73ECC4,0x6F06,0x4F52,0x82,0xA8,0xF7,0xBA,0x06,0xAE,0x31,0x08);
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessage,0x7CAB88FA,0x2EF9,0x4851,0xB2,0xF3,0x1D,0x14,0x8F,0xED,0x84,0x47);
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJobs,0x2C56D8E6,0x8C2F,0x4573,0x94,0x4C,0xE5,0x05,0xF8,0xF5,0xAE,0xED);
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJob,0x6356DAAD,0x6614,0x4583,0xBF,0x7A,0x3A,0xD6,0x7B,0xBF,0xC7,0x1C);
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessageIterator,0xF5EC5D4F,0xB840,0x432F,0x99,0x80,0x11,0x2F,0xE4,0x2A,0x9B,0x7A);
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessage,0xF0EA35DE,0xCAA5,0x4A7C,0x82,0xC7,0x2B,0x60,0xBA,0x5F,0x2B,0xE2);
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingJobs,0x011F04E9,0x4FD6,0x4C23,0x95,0x13,0xB6,0xB6,0x6B,0xB2,0x6B,0xE9);
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingJob,0x207529E6,0x654A,0x4916,0x9F,0x88,0x4D,0x23,0x2E,0xE8,0xA1,0x07);
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDeviceProvider,0x290EAC63,0x83EC,0x449C,0x84,0x17,0xF1,0x48,0xDF,0x8C,0x68,0x2A);
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDevice,0x49306C59,0xB52E,0x4867,0x9D,0xF4,0xCA,0x58,0x41,0xC9,0x56,0xD0);
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxActivityLogging,0x1E29078B,0x5A69,0x497B,0x95,0x92,0x49,0xB7,0xE7,0xFA,0xDD,0xB5);
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxEventLogging,0x0880D965,0x20E8,0x42E4,0x8E,0x17,0x94,0x4F,0x19,0x2C,0xAA,0xD4);
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingGroups,0x235CBEF7,0xC2DE,0x4BFD,0xB8,0xDA,0x75,0x09,0x7C,0x82,0xC8,0x7F);
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingGroup,0xCA6289A1,0x7E25,0x4F87,0x9A,0x0B,0x93,0x36,0x57,0x34,0x96,0x2C);
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDeviceIds,0x2F0F813F,0x4CE9,0x443E,0x8C,0xA1,0x73,0x8C,0xFA,0xEE,0xE1,0x49);
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingRules,0xDCEFA1E7,0xAE7D,0x4ED6,0x85,0x21,0x36,0x9E,0xDC,0xCA,0x51,0x20);
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingRule,0xE1F795D5,0x07C2,0x469F,0xB0,0x27,0xAC,0xAC,0xC2,0x32,0x19,0xDA);
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingExtensions,0x2F6C9673,0x7B26,0x42DE,0x8E,0xB0,0x91,0x5D,0xCD,0x2A,0x4F,0x4C);
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingExtension,0x885B5E08,0xC26C,0x4EF9,0xAF,0x83,0x51,0x58,0x0A,0x75,0x0B,0xE1);
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingMethods,0x783FCA10,0x8908,0x4473,0x9D,0x69,0xF6,0x7F,0xBE,0xA0,0xC6,0xB9);
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingMethod,0x45700061,0xAD9D,0x4776,0xA8,0xC4,0x64,0x06,0x54,0x92,0xCF,0x4B);
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDocument2,0xe1347661,0xf9ef,0x4d6d,0xb4,0xa5,0xc0,0xa0,0x68,0xb6,0x5c,0xff);
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxConfiguration,0x10f4d0f7,0x0994,0x4543,0xab,0x6e,0x50,0x69,0x49,0x12,0x8c,0x40);
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxServer2,0x571ced0f,0x5609,0x4f40,0x91,0x76,0x54,0x7e,0x3a,0x72,0xca,0x7c);
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountSet,0x7428fbae,0x841e,0x47b8,0x86,0xf4,0x22,0x88,0x94,0x6d,0xca,0x1b);
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccounts,0x93ea8162,0x8be7,0x42d1,0xae,0x7b,0xec,0x74,0xe2,0xd9,0x89,0xda);
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccount,0x68535b33,0x5dc4,0x4086,0xbe,0x26,0xb7,0x6f,0x9b,0x71,0x10,0x06);
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJob2,0x418a8d96,0x59a0,0x4789,0xb1,0x76,0xed,0xf3,0xdc,0x8f,0xa8,0xf7);
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountFolders,0x6463f89d,0x23d8,0x46a9,0x8f,0x86,0xc4,0x7b,0x77,0xca,0x79,0x26);
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountIncomingQueue,0xdd142d92,0x0186,0x4a95,0xa0,0x90,0xcb,0xc3,0xea,0xdb,0xa6,0xb4);
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountOutgoingQueue,0x0f1424e9,0xf22d,0x4553,0xb7,0xa5,0x0d,0x24,0xbd,0x0d,0x7e,0x46);
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessage2,0xb37df687,0xbc88,0x4b46,0xb3,0xbe,0xb4,0x58,0xb3,0xea,0x9e,0x7f);
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountIncomingArchive,0xa8a5b6ef,0xe0d6,0x4aee,0x95,0x5c,0x91,0x62,0x5b,0xec,0x9d,0xb4);
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxAccountOutgoingArchive,0x5463076d,0xec14,0x491f,0x92,0x6e,0xb3,0xce,0xda,0x5e,0x56,0x62);
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxSecurity2,0x17d851f4,0xd09b,0x48fc,0x99,0xc9,0x8f,0x24,0xc4,0xdb,0x9a,0xb1);
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessage2,0xf9208503,0xe2bc,0x48f3,0x9e,0xc0,0xe6,0x23,0x6f,0x9b,0x50,0x9a);
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
MIDL_DEFINE_GUID(IID, LIBID_FAXCOMEXLib,0x2BF34C1A,0x8CAC,0x419F,0x85,0x47,0x32,0xFD,0xF6,0x50,0x5D,0xB8);
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
MIDL_DEFINE_GUID(IID, DIID_IFaxServerNotify,0x2E037B27,0xCF8A,0x4abd,0xB1,0xE0,0x57,0x04,0x94,0x3B,0xEA,0x6F);
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
MIDL_DEFINE_GUID(IID, IID__IFaxServerNotify2,0xec9c69b9,0x5fe7,0x4805,0x94,0x67,0x82,0xfc,0xd9,0x6a,0xf9,0x03);
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
MIDL_DEFINE_GUID(IID, DIID_IFaxServerNotify2,0x616ca8d6,0xa77a,0x4062,0xab,0xfd,0x0e,0x47,0x12,0x41,0xc7,0xaa);
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
MIDL_DEFINE_GUID(IID, IID__IFaxAccountNotify,0xb9b3bc81,0xac1b,0x46f3,0xb3,0x9d,0x0a,0xdc,0x30,0xe1,0xb7,0x88);
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
MIDL_DEFINE_GUID(IID, DIID_IFaxAccountNotify,0x0b5e5bd1,0xb8a9,0x47a0,0xa3,0x23,0xef,0x4a,0x29,0x3b,0xa0,0x6a);
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxServer,0xCDA8ACB0,0x8CF5,0x4F6C,0x9B,0xA2,0x59,0x31,0xD4,0x0C,0x8C,0xAE);
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceProviders,0xEB8FE768,0x875A,0x4F5F,0x82,0xC5,0x03,0xF2,0x3A,0xAC,0x1B,0xD7);
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDevices,0x5589E28E,0x23CB,0x4919,0x88,0x08,0xE6,0x10,0x18,0x46,0xE8,0x0D);
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRouting,0xE80248ED,0xAD65,0x4218,0x81,0x08,0x99,0x19,0x24,0xD4,0xE7,0xED);
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxFolders,0xC35211D7,0x5776,0x48CB,0xAF,0x44,0xC3,0x1B,0xE3,0xB2,0xCF,0xE5);
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxLoggingOptions,0x1BF9EEA6,0xECE0,0x4785,0xA1,0x8B,0xDE,0x56,0xE9,0xEE,0xF9,0x6A);
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxActivity,0xCFEF5D0E,0xE84D,0x462E,0xAA,0xBB,0x87,0xD3,0x1E,0xB0,0x4F,0xEF);
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRouting,0xC81B385E,0xB869,0x4AFD,0x86,0xC0,0x61,0x64,0x98,0xED,0x9B,0xE2);
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxReceiptOptions,0x6982487B,0x227B,0x4C96,0xA6,0x1C,0x24,0x83,0x48,0xB0,0x5A,0xB6);
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxSecurity,0x10C4DDDE,0xABF0,0x43DF,0x96,0x4F,0x7F,0x3A,0xC2,0x1A,0x4C,0x7B);
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDocument,0x0F3F9F91,0xC838,0x415E,0xA4,0xF3,0x3E,0x82,0x8C,0xA4,0x45,0xE0);
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxSender,0x265D84D0,0x1850,0x4360,0xB7,0xC8,0x75,0x8B,0xBB,0x5F,0x0B,0x96);
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxRecipients,0xEA9BDF53,0x10A9,0x4D4F,0xA0,0x67,0x63,0xC8,0xF8,0x4F,0x01,0xB0);
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingArchive,0x8426C56A,0x35A1,0x4C6F,0xAF,0x93,0xFC,0x95,0x24,0x22,0xE2,0xC2);
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingQueue,0x69131717,0xF3F1,0x40E3,0x80,0x9D,0xA6,0xCB,0xF7,0xBD,0x85,0xE5);
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingArchive,0x43C28403,0xE04F,0x474D,0x99,0x0C,0xB9,0x46,0x69,0x14,0x8F,0x59);
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingQueue,0x7421169E,0x8C43,0x4B0D,0xBB,0x16,0x64,0x5C,0x8F,0xA4,0x03,0x57);
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingMessageIterator,0x6088E1D8,0x3FC8,0x45C2,0x87,0xB1,0x90,0x9A,0x29,0x60,0x7E,0xA9);
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingMessage,0x1932FCF7,0x9D43,0x4D5A,0x89,0xFF,0x03,0x86,0x1B,0x32,0x17,0x36);
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingJobs,0x92BF2A6C,0x37BE,0x43FA,0xA3,0x7D,0xCB,0x0E,0x5F,0x75,0x3B,0x35);
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingJob,0x71BB429C,0x0EF9,0x4915,0xBE,0xC5,0xA5,0xD8,0x97,0xA3,0xE9,0x24);
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingMessageIterator,0x8A3224D0,0xD30B,0x49DE,0x98,0x13,0xCB,0x38,0x57,0x90,0xFB,0xBB);
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingMessage,0x91B4A378,0x4AD8,0x4AEF,0xA4,0xDC,0x97,0xD9,0x6E,0x93,0x9A,0x3A);
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingJobs,0xA1BB8A43,0x8866,0x4FB7,0xA1,0x5D,0x62,0x66,0xC8,0x75,0xA5,0xCC);
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingJob,0xC47311EC,0xAE32,0x41B8,0xAE,0x4B,0x3E,0xAE,0x06,0x29,0xD0,0xC9);
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceProvider,0x17CF1AA3,0xF5EB,0x484A,0x9C,0x9A,0x44,0x40,0xA5,0xBA,0xAB,0xFC);
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDevice,0x59E3A5B2,0xD676,0x484B,0xA6,0xDE,0x72,0x0B,0xFA,0x89,0xB5,0xAF);
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxActivityLogging,0xF0A0294E,0x3BBD,0x48B8,0x8F,0x13,0x8C,0x59,0x1A,0x55,0xBD,0xBC);
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxEventLogging,0xA6850930,0xA0F6,0x4A6F,0x95,0xB7,0xDB,0x2E,0xBF,0x3D,0x02,0xE3);
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingGroups,0xCCBEA1A5,0xE2B4,0x4B57,0x94,0x21,0xB0,0x4B,0x62,0x89,0x46,0x4B);
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingGroup,0x0213F3E0,0x6791,0x4D77,0xA2,0x71,0x04,0xD2,0x35,0x7C,0x50,0xD6);
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceIds,0xCDC539EA,0x7277,0x460E,0x8D,0xE0,0x48,0xA0,0xA5,0x76,0x0D,0x1F);
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingRules,0xD385BECA,0xE624,0x4473,0xBF,0xAA,0x9F,0x40,0x00,0x83,0x1F,0x54);
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingRule,0x6549EEBF,0x08D1,0x475A,0x82,0x8B,0x3B,0xF1,0x05,0x95,0x2F,0xA0);
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingExtensions,0x189A48ED,0x623C,0x4C0D,0x80,0xF2,0xD6,0x6C,0x7B,0x9E,0xFE,0xC2);
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingExtension,0x1D7DFB51,0x7207,0x4436,0xA0,0xD9,0x24,0xE3,0x2E,0xE5,0x69,0x88);
|
| 348 |
+
|
| 349 |
+
|
| 350 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingMethods,0x25FCB76A,0xB750,0x4B82,0x92,0x66,0xFB,0xBB,0xAE,0x89,0x22,0xBA);
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingMethod,0x4B9FD75C,0x0194,0x4B72,0x9C,0xE5,0x02,0xA8,0x20,0x5A,0xC7,0xD4);
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxJobStatus,0x7BF222F4,0xBE8D,0x442f,0x84,0x1D,0x61,0x32,0x74,0x24,0x23,0xBB);
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxRecipient,0x60BF3301,0x7DF8,0x4bd8,0x91,0x48,0x7B,0x58,0x01,0xF9,0xEF,0xDF);
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxConfiguration,0x5857326f,0xe7b3,0x41a7,0x9c,0x19,0xa9,0x1b,0x46,0x3e,0x2d,0x56);
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountSet,0xfbc23c4b,0x79e0,0x4291,0xbc,0x56,0xc1,0x2e,0x25,0x3b,0xbf,0x3a);
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccounts,0xda1f94aa,0xee2c,0x47c0,0x8f,0x4f,0x2a,0x21,0x70,0x75,0xb7,0x6e);
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccount,0xa7e0647f,0x4524,0x4464,0xa5,0x6d,0xb9,0xfe,0x66,0x6f,0x71,0x5e);
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountFolders,0x85398f49,0xc034,0x4a3f,0x82,0x1c,0xdb,0x7d,0x68,0x5e,0x81,0x29);
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountIncomingQueue,0x9bcf6094,0xb4da,0x45f4,0xb8,0xd6,0xdd,0xeb,0x21,0x86,0x65,0x2c);
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountOutgoingQueue,0xfeeceefb,0xc149,0x48ba,0xba,0xb8,0xb7,0x91,0xe1,0x01,0xf6,0x2f);
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountIncomingArchive,0x14b33db5,0x4c40,0x4ecf,0x9e,0xf8,0xa3,0x60,0xcb,0xe8,0x09,0xed);
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountOutgoingArchive,0x851e7af5,0x433a,0x4739,0xa2,0xdf,0xad,0x24,0x5c,0x2c,0xb9,0x8e);
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxSecurity2,0x735c1248,0xec89,0x4c30,0xa1,0x27,0x65,0x6e,0x92,0xe3,0xc4,0xea);
|
| 390 |
+
|
| 391 |
+
#undef MIDL_DEFINE_GUID
|
| 392 |
+
|
| 393 |
+
#ifdef __cplusplus
|
| 394 |
+
}
|
| 395 |
+
#endif
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxCom_i.c
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
|
| 4 |
+
|
| 5 |
+
/* link this file in with the server and any clients */
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 9 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C"{
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#include <rpc.h>
|
| 19 |
+
#include <rpcndr.h>
|
| 20 |
+
|
| 21 |
+
#ifdef _MIDL_USE_GUIDDEF_
|
| 22 |
+
|
| 23 |
+
#ifndef INITGUID
|
| 24 |
+
#define INITGUID
|
| 25 |
+
#include <guiddef.h>
|
| 26 |
+
#undef INITGUID
|
| 27 |
+
#else
|
| 28 |
+
#include <guiddef.h>
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
| 32 |
+
DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
|
| 33 |
+
|
| 34 |
+
#else // !_MIDL_USE_GUIDDEF_
|
| 35 |
+
|
| 36 |
+
#ifndef __IID_DEFINED__
|
| 37 |
+
#define __IID_DEFINED__
|
| 38 |
+
|
| 39 |
+
typedef struct _IID
|
| 40 |
+
{
|
| 41 |
+
unsigned long x;
|
| 42 |
+
unsigned short s1;
|
| 43 |
+
unsigned short s2;
|
| 44 |
+
unsigned char c[8];
|
| 45 |
+
} IID;
|
| 46 |
+
|
| 47 |
+
#endif // __IID_DEFINED__
|
| 48 |
+
|
| 49 |
+
#ifndef CLSID_DEFINED
|
| 50 |
+
#define CLSID_DEFINED
|
| 51 |
+
typedef IID CLSID;
|
| 52 |
+
#endif // CLSID_DEFINED
|
| 53 |
+
|
| 54 |
+
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
| 55 |
+
EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
| 56 |
+
|
| 57 |
+
#endif // !_MIDL_USE_GUIDDEF_
|
| 58 |
+
|
| 59 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxTiff,0xb19bb45f,0xb91c,0x11d1,0x83,0xe1,0x00,0xc0,0x4f,0xb6,0xe9,0x84);
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxServer,0xD73733C7,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxPort,0xD73733CC,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxPorts,0xD73733D5,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxRoutingMethod,0x2199F5F3,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D);
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxRoutingMethods,0x2199F5F5,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D);
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxStatus,0x8B97E605,0xD054,0x11D0,0xB2,0x26,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxDoc,0xFA21F4C5,0x5C4C,0x11D1,0x83,0xCF,0x00,0xC0,0x4F,0xB6,0xE9,0x84);
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxJobs,0x55DABFD3,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00);
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
MIDL_DEFINE_GUID(IID, IID_IFaxJob,0x55DABFD5,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00);
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
MIDL_DEFINE_GUID(IID, LIBID_FAXCOMLib,0x87099223,0xC7AF,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxTiff,0x87099231,0xC7AF,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxServer,0xD73733C8,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxPort,0xD73733CD,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxPorts,0xD73733D6,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxRoutingMethod,0x2199F5F4,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D);
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxRoutingMethods,0x2199F5F6,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D);
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxStatus,0x8B97E606,0xD054,0x11D0,0xB2,0x26,0x00,0xC0,0x4F,0xB6,0xC2,0xF5);
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxDoc,0xFA21F4C6,0x5C4C,0x11D1,0x83,0xCF,0x00,0xC0,0x4F,0xB6,0xE9,0x84);
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxJobs,0x55DABFD4,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00);
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
MIDL_DEFINE_GUID(CLSID, CLSID_FaxJob,0x55DABFD6,0x5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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
| 6 |
+
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
|
| 7 |
+
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
| 8 |
+
|
| 9 |
+
Module Name:
|
| 10 |
+
|
| 11 |
+
faxdev.h
|
| 12 |
+
|
| 13 |
+
Abstract:
|
| 14 |
+
|
| 15 |
+
This file contains the prototypes for the
|
| 16 |
+
FAX device provider API.
|
| 17 |
+
|
| 18 |
+
--*/
|
| 19 |
+
|
| 20 |
+
#include <commctrl.h>
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
#ifndef _FAXDEV_
|
| 24 |
+
#define _FAXDEV_
|
| 25 |
+
|
| 26 |
+
#if _MSC_VER > 1000
|
| 27 |
+
#pragma once
|
| 28 |
+
#endif
|
| 29 |
+
#include <winapifamily.h>
|
| 30 |
+
|
| 31 |
+
#pragma region Desktop Family
|
| 32 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
#ifdef __cplusplus
|
| 36 |
+
extern "C" {
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
//
|
| 40 |
+
// FAX status constants
|
| 41 |
+
//
|
| 42 |
+
|
| 43 |
+
#define FS_INITIALIZING 0x20000000
|
| 44 |
+
#define FS_DIALING 0x20000001
|
| 45 |
+
#define FS_TRANSMITTING 0x20000002
|
| 46 |
+
#define FS_RECEIVING 0x20000004
|
| 47 |
+
#define FS_COMPLETED 0x20000008
|
| 48 |
+
#define FS_HANDLED 0x20000010
|
| 49 |
+
#define FS_LINE_UNAVAILABLE 0x20000020
|
| 50 |
+
#define FS_BUSY 0x20000040
|
| 51 |
+
#define FS_NO_ANSWER 0x20000080
|
| 52 |
+
#define FS_BAD_ADDRESS 0x20000100
|
| 53 |
+
#define FS_NO_DIAL_TONE 0x20000200
|
| 54 |
+
#define FS_DISCONNECTED 0x20000400
|
| 55 |
+
#define FS_FATAL_ERROR 0x20000800
|
| 56 |
+
#define FS_NOT_FAX_CALL 0x20001000
|
| 57 |
+
#define FS_CALL_DELAYED 0x20002000
|
| 58 |
+
#define FS_CALL_BLACKLISTED 0x20004000
|
| 59 |
+
#define FS_USER_ABORT 0x20200000
|
| 60 |
+
#define FS_ANSWERED 0x20800000
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
//
|
| 64 |
+
// data structures
|
| 65 |
+
//
|
| 66 |
+
|
| 67 |
+
typedef struct _FAX_SEND {
|
| 68 |
+
DWORD SizeOfStruct;
|
| 69 |
+
LPWSTR FileName;
|
| 70 |
+
LPWSTR CallerName;
|
| 71 |
+
LPWSTR CallerNumber;
|
| 72 |
+
LPWSTR ReceiverName;
|
| 73 |
+
LPWSTR ReceiverNumber;
|
| 74 |
+
BOOL Branding;
|
| 75 |
+
HCALL CallHandle;
|
| 76 |
+
DWORD Reserved[3];
|
| 77 |
+
} FAX_SEND, *PFAX_SEND;
|
| 78 |
+
|
| 79 |
+
typedef struct _FAX_RECEIVE {
|
| 80 |
+
DWORD SizeOfStruct;
|
| 81 |
+
LPWSTR FileName;
|
| 82 |
+
LPWSTR ReceiverName;
|
| 83 |
+
LPWSTR ReceiverNumber;
|
| 84 |
+
DWORD Reserved[4];
|
| 85 |
+
} FAX_RECEIVE, *PFAX_RECEIVE;
|
| 86 |
+
|
| 87 |
+
typedef _Struct_size_bytes_(SizeOfStruct) struct _FAX_DEV_STATUS {
|
| 88 |
+
DWORD SizeOfStruct;
|
| 89 |
+
DWORD StatusId;
|
| 90 |
+
DWORD StringId;
|
| 91 |
+
DWORD PageCount;
|
| 92 |
+
LPWSTR CSI;
|
| 93 |
+
LPWSTR CallerId;
|
| 94 |
+
LPWSTR RoutingInfo;
|
| 95 |
+
DWORD ErrorCode;
|
| 96 |
+
DWORD Reserved[3];
|
| 97 |
+
} FAX_DEV_STATUS, *PFAX_DEV_STATUS;
|
| 98 |
+
|
| 99 |
+
typedef BOOL
|
| 100 |
+
(CALLBACK *PFAX_SERVICE_CALLBACK)(
|
| 101 |
+
IN HANDLE FaxHandle,
|
| 102 |
+
IN DWORD DeviceId,
|
| 103 |
+
IN DWORD_PTR Param1,
|
| 104 |
+
IN DWORD_PTR Param2,
|
| 105 |
+
IN DWORD_PTR Param3
|
| 106 |
+
);
|
| 107 |
+
|
| 108 |
+
typedef void
|
| 109 |
+
(CALLBACK *PFAX_LINECALLBACK)(
|
| 110 |
+
IN HANDLE FaxHandle,
|
| 111 |
+
IN DWORD hDevice,
|
| 112 |
+
IN DWORD dwMessage,
|
| 113 |
+
IN DWORD_PTR dwInstance,
|
| 114 |
+
IN DWORD_PTR dwParam1,
|
| 115 |
+
IN DWORD_PTR dwParam2,
|
| 116 |
+
IN DWORD_PTR dwParam3
|
| 117 |
+
);
|
| 118 |
+
|
| 119 |
+
BOOL WINAPI
|
| 120 |
+
FaxDevInitialize(
|
| 121 |
+
IN HLINEAPP LineAppHandle,
|
| 122 |
+
IN HANDLE HeapHandle,
|
| 123 |
+
OUT PFAX_LINECALLBACK *LineCallbackFunction,
|
| 124 |
+
IN PFAX_SERVICE_CALLBACK FaxServiceCallback
|
| 125 |
+
);
|
| 126 |
+
|
| 127 |
+
HRESULT WINAPI FaxDevShutdown(
|
| 128 |
+
void
|
| 129 |
+
);
|
| 130 |
+
|
| 131 |
+
BOOL WINAPI
|
| 132 |
+
FaxDevVirtualDeviceCreation(
|
| 133 |
+
OUT LPDWORD DeviceCount,
|
| 134 |
+
_Out_writes_(128) LPWSTR DeviceNamePrefix,
|
| 135 |
+
OUT LPDWORD DeviceIdPrefix,
|
| 136 |
+
IN HANDLE CompletionPort,
|
| 137 |
+
IN ULONG_PTR CompletionKey
|
| 138 |
+
);
|
| 139 |
+
|
| 140 |
+
BOOL WINAPI
|
| 141 |
+
FaxDevStartJob(
|
| 142 |
+
IN HLINE LineHandle,
|
| 143 |
+
IN DWORD DeviceId,
|
| 144 |
+
OUT PHANDLE FaxHandle,
|
| 145 |
+
IN HANDLE CompletionPortHandle,
|
| 146 |
+
IN ULONG_PTR CompletionKey
|
| 147 |
+
);
|
| 148 |
+
|
| 149 |
+
BOOL WINAPI
|
| 150 |
+
FaxDevEndJob(
|
| 151 |
+
IN HANDLE FaxHandle
|
| 152 |
+
);
|
| 153 |
+
|
| 154 |
+
typedef BOOL
|
| 155 |
+
(CALLBACK *PFAX_SEND_CALLBACK)(
|
| 156 |
+
IN HANDLE FaxHandle,
|
| 157 |
+
IN HCALL CallHandle,
|
| 158 |
+
IN DWORD Reserved1,
|
| 159 |
+
IN DWORD Reserved2
|
| 160 |
+
);
|
| 161 |
+
|
| 162 |
+
BOOL WINAPI
|
| 163 |
+
FaxDevSend(
|
| 164 |
+
IN HANDLE FaxHandle,
|
| 165 |
+
IN PFAX_SEND FaxSend,
|
| 166 |
+
IN PFAX_SEND_CALLBACK FaxSendCallback
|
| 167 |
+
);
|
| 168 |
+
|
| 169 |
+
#define FAXDEVRECEIVE_SIZE 4096
|
| 170 |
+
|
| 171 |
+
BOOL WINAPI
|
| 172 |
+
FaxDevReceive(
|
| 173 |
+
IN HANDLE FaxHandle,
|
| 174 |
+
IN HCALL CallHandle,
|
| 175 |
+
IN OUT PFAX_RECEIVE FaxReceive
|
| 176 |
+
);
|
| 177 |
+
|
| 178 |
+
#define FAXDEVREPORTSTATUS_SIZE 4096
|
| 179 |
+
|
| 180 |
+
BOOL WINAPI
|
| 181 |
+
FaxDevReportStatus(
|
| 182 |
+
IN HANDLE FaxHandle OPTIONAL,
|
| 183 |
+
OUT PFAX_DEV_STATUS FaxStatus,
|
| 184 |
+
IN DWORD FaxStatusSize,
|
| 185 |
+
OUT LPDWORD FaxStatusSizeRequired
|
| 186 |
+
);
|
| 187 |
+
|
| 188 |
+
BOOL WINAPI
|
| 189 |
+
FaxDevAbortOperation(
|
| 190 |
+
IN HANDLE FaxHandle
|
| 191 |
+
);
|
| 192 |
+
|
| 193 |
+
BOOL WINAPI
|
| 194 |
+
FaxDevConfigure(
|
| 195 |
+
OUT HPROPSHEETPAGE *PropSheetPage
|
| 196 |
+
);
|
| 197 |
+
|
| 198 |
+
typedef BOOL (WINAPI *PFAXDEVINITIALIZE) (HLINEAPP,HANDLE,PFAX_LINECALLBACK*,PFAX_SERVICE_CALLBACK);
|
| 199 |
+
typedef BOOL (WINAPI *PFAXDEVVIRTUALDEVICECREATION) (LPDWORD DeviceCount,
|
| 200 |
+
_Out_writes_(128) LPWSTR DeviceNamePrefix,
|
| 201 |
+
LPDWORD DeviceIdPrefix,
|
| 202 |
+
HANDLE CompletionPort,
|
| 203 |
+
ULONG_PTR CompletionKey);
|
| 204 |
+
typedef BOOL (WINAPI *PFAXDEVSTARTJOB) (HLINE,DWORD,PHANDLE,HANDLE,ULONG_PTR);
|
| 205 |
+
typedef BOOL (WINAPI *PFAXDEVENDJOB) (HANDLE);
|
| 206 |
+
typedef BOOL (WINAPI *PFAXDEVSEND) (HANDLE,PFAX_SEND,PFAX_SEND_CALLBACK);
|
| 207 |
+
typedef BOOL (WINAPI *PFAXDEVRECEIVE) (HANDLE,HCALL,PFAX_RECEIVE);
|
| 208 |
+
typedef BOOL (WINAPI *PFAXDEVREPORTSTATUS) (HANDLE,PFAX_DEV_STATUS,DWORD,LPDWORD);
|
| 209 |
+
typedef BOOL (WINAPI *PFAXDEVABORTOPERATION) (HANDLE);
|
| 210 |
+
typedef BOOL (WINAPI *PFAXDEVCONFIGURE) (HPROPSHEETPAGE*);
|
| 211 |
+
typedef HRESULT (WINAPI * PFAXDEVSHUTDOWN) (void);
|
| 212 |
+
|
| 213 |
+
#ifdef __cplusplus
|
| 214 |
+
}
|
| 215 |
+
#endif
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 219 |
+
#pragma endregion
|
| 220 |
+
|
| 221 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxExt.h
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
| 6 |
+
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
|
| 7 |
+
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
| 8 |
+
|
| 9 |
+
Module Name:
|
| 10 |
+
|
| 11 |
+
faxext.h
|
| 12 |
+
|
| 13 |
+
Abstract:
|
| 14 |
+
|
| 15 |
+
Declarations of fax extension configuration and notification functions.
|
| 16 |
+
|
| 17 |
+
--*/
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#ifndef _FAX_EXT_H_
|
| 21 |
+
#define _FAX_EXT_H_
|
| 22 |
+
|
| 23 |
+
#if _MSC_VER > 1000
|
| 24 |
+
#pragma once
|
| 25 |
+
#endif
|
| 26 |
+
#include <winapifamily.h>
|
| 27 |
+
|
| 28 |
+
#pragma region Desktop Family
|
| 29 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
#ifdef __cplusplus
|
| 33 |
+
extern "C" {
|
| 34 |
+
#endif
|
| 35 |
+
|
| 36 |
+
/************************************
|
| 37 |
+
* *
|
| 38 |
+
* Extension configuration data *
|
| 39 |
+
* *
|
| 40 |
+
************************************/
|
| 41 |
+
|
| 42 |
+
typedef enum
|
| 43 |
+
{
|
| 44 |
+
DEV_ID_SRC_FAX, // Device id is generated by the fax server
|
| 45 |
+
DEV_ID_SRC_TAPI // Device id is generated by a TAPI TSP (of FSP).
|
| 46 |
+
} FAX_ENUM_DEVICE_ID_SOURCE;
|
| 47 |
+
|
| 48 |
+
//
|
| 49 |
+
// Prototype of FaxExtGetData
|
| 50 |
+
//
|
| 51 |
+
DWORD
|
| 52 |
+
WINAPI
|
| 53 |
+
FaxExtGetData (
|
| 54 |
+
DWORD dwDeviceId, // Device id (0 = No device)
|
| 55 |
+
FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id
|
| 56 |
+
LPCWSTR lpcwstrDataGUID,// GUID of data
|
| 57 |
+
LPBYTE *ppData, // (Out) Pointer to allocated data
|
| 58 |
+
LPDWORD lpdwDataSize // (Out) Pointer to data size
|
| 59 |
+
);
|
| 60 |
+
typedef DWORD (CALLBACK *PFAX_EXT_GET_DATA) (DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, LPBYTE *, LPDWORD);
|
| 61 |
+
|
| 62 |
+
//
|
| 63 |
+
// Prototype of FaxExtSetData
|
| 64 |
+
//
|
| 65 |
+
DWORD
|
| 66 |
+
WINAPI
|
| 67 |
+
FaxExtSetData (
|
| 68 |
+
HINSTANCE hInst, // Instance of calling extension
|
| 69 |
+
DWORD dwDeviceId, // Device id (0 = No device)
|
| 70 |
+
FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id
|
| 71 |
+
LPCWSTR lpcwstrDataGUID,// GUID of data
|
| 72 |
+
LPBYTE pData, // Pointer to data
|
| 73 |
+
DWORD dwDataSize // Data size
|
| 74 |
+
);
|
| 75 |
+
typedef DWORD (CALLBACK *PFAX_EXT_SET_DATA) (HINSTANCE, DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, LPBYTE, DWORD);
|
| 76 |
+
|
| 77 |
+
HRESULT
|
| 78 |
+
WINAPI
|
| 79 |
+
FaxExtConfigChange (
|
| 80 |
+
DWORD dwDeviceId, // The device for which configuration has changed
|
| 81 |
+
LPCWSTR lpcwstrDataGUID, // Configuration name
|
| 82 |
+
LPBYTE lpData, // New configuration data
|
| 83 |
+
DWORD dwDataSize // Size of new configuration data
|
| 84 |
+
);
|
| 85 |
+
typedef HRESULT (WINAPI *PFAX_EXT_CONFIG_CHANGE) (DWORD, LPCWSTR, LPBYTE, DWORD);
|
| 86 |
+
|
| 87 |
+
//
|
| 88 |
+
// Prototype of FaxExtRegisterForEvents
|
| 89 |
+
//
|
| 90 |
+
HANDLE
|
| 91 |
+
WINAPI
|
| 92 |
+
FaxExtRegisterForEvents (
|
| 93 |
+
HINSTANCE hInst, // Instance of calling extension
|
| 94 |
+
DWORD dwDeviceId, // Device id (0 = No device)
|
| 95 |
+
FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id
|
| 96 |
+
LPCWSTR lpcwstrDataGUID,// GUID of data
|
| 97 |
+
PFAX_EXT_CONFIG_CHANGE lpConfigChangeCallback
|
| 98 |
+
);
|
| 99 |
+
typedef HANDLE (CALLBACK *PFAX_EXT_REGISTER_FOR_EVENTS) (HINSTANCE, DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, PFAX_EXT_CONFIG_CHANGE);
|
| 100 |
+
|
| 101 |
+
//
|
| 102 |
+
// Prototype of FaxExtUnregisterForEvents
|
| 103 |
+
//
|
| 104 |
+
DWORD
|
| 105 |
+
WINAPI
|
| 106 |
+
FaxExtUnregisterForEvents (
|
| 107 |
+
HANDLE hNotification
|
| 108 |
+
);
|
| 109 |
+
typedef DWORD (CALLBACK *PFAX_EXT_UNREGISTER_FOR_EVENTS) (HANDLE);
|
| 110 |
+
|
| 111 |
+
//
|
| 112 |
+
// Prototype of FaxExtFreeBuffer
|
| 113 |
+
//
|
| 114 |
+
VOID
|
| 115 |
+
WINAPI
|
| 116 |
+
FaxExtFreeBuffer (
|
| 117 |
+
LPVOID lpvBuffer
|
| 118 |
+
);
|
| 119 |
+
typedef VOID (CALLBACK *PFAX_EXT_FREE_BUFFER) (LPVOID);
|
| 120 |
+
|
| 121 |
+
//
|
| 122 |
+
// The extension should implement and export the following function:
|
| 123 |
+
//
|
| 124 |
+
HRESULT
|
| 125 |
+
WINAPI
|
| 126 |
+
FaxExtInitializeConfig (
|
| 127 |
+
PFAX_EXT_GET_DATA, // Pointer to FaxExtGetExtensionData in service
|
| 128 |
+
PFAX_EXT_SET_DATA, // Pointer to FaxExtSetExtensionData in service
|
| 129 |
+
PFAX_EXT_REGISTER_FOR_EVENTS, // Pointer to FaxExtRegisterForExtensionEvents in service
|
| 130 |
+
PFAX_EXT_UNREGISTER_FOR_EVENTS, // Pointer to FaxExtUnregisterForExtensionEvents in service
|
| 131 |
+
PFAX_EXT_FREE_BUFFER // Pointer to FaxExtFreeBuffer in service
|
| 132 |
+
);
|
| 133 |
+
typedef HRESULT (WINAPI *PFAX_EXT_INITIALIZE_CONFIG) (PFAX_EXT_GET_DATA, PFAX_EXT_SET_DATA, PFAX_EXT_REGISTER_FOR_EVENTS, PFAX_EXT_UNREGISTER_FOR_EVENTS, PFAX_EXT_FREE_BUFFER);
|
| 134 |
+
|
| 135 |
+
#ifdef __cplusplus
|
| 136 |
+
}
|
| 137 |
+
#endif
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 141 |
+
#pragma endregion
|
| 142 |
+
|
| 143 |
+
#endif // _FAX_EXT_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FaxMmc.h
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
| 6 |
+
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
|
| 7 |
+
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
| 8 |
+
|
| 9 |
+
Module Name:
|
| 10 |
+
|
| 11 |
+
faxmmc.h
|
| 12 |
+
|
| 13 |
+
Abstract:
|
| 14 |
+
|
| 15 |
+
This header file contains public constants for extension of MMC components.
|
| 16 |
+
|
| 17 |
+
--*/
|
| 18 |
+
|
| 19 |
+
#ifndef H_FXS_MMCEXT_H
|
| 20 |
+
#define H_FXS_MMCEXT_H
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
#include <winapifamily.h>
|
| 24 |
+
|
| 25 |
+
#pragma region Desktop Family
|
| 26 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 27 |
+
|
| 28 |
+
#define FAXSRV_DEVICE_NODETYPE_GUID_STR OLESTR("{3115A19A-6251-46ac-9425-14782858B8C9}")
|
| 29 |
+
#define FAXSRV_DEVICE_NODETYPE_GUID { 0x3115a19a, 0x6251, 0x46ac, { 0x94, 0x25, 0x14, 0x78, 0x28, 0x58, 0xb8, 0xc9 } }
|
| 30 |
+
|
| 31 |
+
#define FAXSRV_DEVICE_PROVIDER_NODETYPE_GUID_STR OLESTR("{BD38E2AC-B926-4161-8640-0F6956EE2BA3}")
|
| 32 |
+
#define FAXSRV_DEVICE_PROVIDER_NODETYPE_GUID { 0xbd38e2ac, 0xb926, 0x4161, { 0x86, 0x40, 0x0f, 0x69, 0x56, 0xee, 0x2b, 0xa3 } }
|
| 33 |
+
|
| 34 |
+
#define FAXSRV_ROUTING_METHOD_NODETYPE_GUID_STR OLESTR("{220D2CB0-85A9-4a43-B6E8-9D66B44F1AF5}")
|
| 35 |
+
#define FAXSRV_ROUTING_METHOD_NODETYPE_GUID { 0x220d2cb0, 0x85a9, 0x4a43, { 0xb6, 0xe8, 0x9d, 0x66, 0xb4, 0x4f, 0x1a, 0xf5 } }
|
| 36 |
+
|
| 37 |
+
#define FAXSRV_MAX_GUID_LEN sizeof(FAXSRV_DEVICE_NODETYPE_GUID_STR)/sizeof(WCHAR)
|
| 38 |
+
#define FAXSRV_MAX_SERVER_NAME MAX_PATH
|
| 39 |
+
#define FAXSRV_MAX_ROUTEEXT_NAME_LEN MAX_PATH
|
| 40 |
+
|
| 41 |
+
#define CF_MSFAXSRV_DEVICE_ID TEXT("FAXSRV_DeviceID")
|
| 42 |
+
#define CF_MSFAXSRV_FSP_GUID TEXT("FAXSRV_FSPGuid")
|
| 43 |
+
#define CF_MSFAXSRV_SERVER_NAME TEXT("FAXSRV_ServerName")
|
| 44 |
+
#define CF_MSFAXSRV_ROUTEEXT_NAME TEXT("FAXSRV_RoutingExtName")
|
| 45 |
+
#define CF_MSFAXSRV_ROUTING_METH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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
| 6 |
+
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
|
| 7 |
+
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
| 8 |
+
|
| 9 |
+
Module Name:
|
| 10 |
+
|
| 11 |
+
faxroute.h
|
| 12 |
+
|
| 13 |
+
Abstract:
|
| 14 |
+
|
| 15 |
+
This file contains the prototypes for the
|
| 16 |
+
FAX routing extension API.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
--*/
|
| 20 |
+
|
| 21 |
+
#include <commctrl.h>
|
| 22 |
+
|
| 23 |
+
#ifndef _FAXROUTE_
|
| 24 |
+
#define _FAXROUTE_
|
| 25 |
+
|
| 26 |
+
#if _MSC_VER > 1000
|
| 27 |
+
#pragma once
|
| 28 |
+
#endif
|
| 29 |
+
#include <winapifamily.h>
|
| 30 |
+
|
| 31 |
+
#pragma region Desktop Family
|
| 32 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
#ifdef __cplusplus
|
| 36 |
+
extern "C" {
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
//
|
| 41 |
+
// microsoft routing guids
|
| 42 |
+
//
|
| 43 |
+
|
| 44 |
+
#define MS_FAXROUTE_PRINTING_GUID TEXT("{aec1b37c-9af2-11d0-abf7-00c04fd91a4e}")
|
| 45 |
+
#define MS_FAXROUTE_FOLDER_GUID TEXT("{92041a90-9af2-11d0-abf7-00c04fd91a4e}")
|
| 46 |
+
#define MS_FAXROUTE_EMAIL_GUID TEXT("{6bbf7bfe-9af2-11d0-abf7-00c04fd91a4e}")
|
| 47 |
+
|
| 48 |
+
//
|
| 49 |
+
// callback routines
|
| 50 |
+
//
|
| 51 |
+
|
| 52 |
+
typedef LONG (WINAPI *PFAXROUTEADDFILE)(DWORD JobId, LPCWSTR FileName, GUID *Guid);
|
| 53 |
+
typedef LONG (WINAPI *PFAXROUTEDELETEFILE)(DWORD JobId, LPCWSTR FileName);
|
| 54 |
+
typedef BOOL (WINAPI *PFAXROUTEGETFILE)(DWORD JobId, DWORD Index, _Out_writes_bytes_opt_(*RequiredSize) LPWSTR FileNameBuffer, LPDWORD RequiredSize);
|
| 55 |
+
typedef BOOL (WINAPI *PFAXROUTEENUMFILE)(DWORD JobId, GUID *GuidOwner, GUID *GuidCaller, LPCWSTR FileName, PVOID Context);
|
| 56 |
+
typedef BOOL (WINAPI *PFAXROUTEENUMFILES)(DWORD JobId, GUID *Guid,PFAXROUTEENUMFILE FileEnumerator, PVOID Context);
|
| 57 |
+
typedef BOOL (WINAPI *PFAXROUTEMODIFYROUTINGDATA)(DWORD JobId, LPCWSTR RoutingGuid, LPBYTE RoutingData, DWORD RoutingDataSize );
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
typedef struct _FAX_ROUTE_CALLBACKROUTINES {
|
| 61 |
+
DWORD SizeOfStruct; // size of the struct set by the fax service
|
| 62 |
+
PFAXROUTEADDFILE FaxRouteAddFile;
|
| 63 |
+
PFAXROUTEDELETEFILE FaxRouteDeleteFile;
|
| 64 |
+
PFAXROUTEGETFILE FaxRouteGetFile;
|
| 65 |
+
PFAXROUTEENUMFILES FaxRouteEnumFiles;
|
| 66 |
+
PFAXROUTEMODIFYROUTINGDATA FaxRouteModifyRoutingData;
|
| 67 |
+
} FAX_ROUTE_CALLBACKROUTINES, *PFAX_ROUTE_CALLBACKROUTINES;
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
//
|
| 71 |
+
// routing data structure
|
| 72 |
+
//
|
| 73 |
+
|
| 74 |
+
typedef struct _FAX_ROUTE {
|
| 75 |
+
DWORD SizeOfStruct; // size of the struct set by the fax service
|
| 76 |
+
DWORD JobId; // Fax job identifier
|
| 77 |
+
DWORDLONG ElapsedTime; // Elapsed time for whole fax job in Coordinated Universal Time (UTC)
|
| 78 |
+
DWORDLONG ReceiveTime; // Starting time for fax job in Coordinated Universal Time (UTC)
|
| 79 |
+
DWORD PageCount; // Number of pages received
|
| 80 |
+
LPCWSTR Csid; // Called station identifier
|
| 81 |
+
LPCWSTR Tsid; // Transmitting station identifier
|
| 82 |
+
LPCWSTR CallerId; // Caller id
|
| 83 |
+
LPCWSTR RoutingInfo; // Routing info such as DID, T.30-subaddress, etc.
|
| 84 |
+
LPCWSTR ReceiverName; // Receiver's name
|
| 85 |
+
LPCWSTR ReceiverNumber; // Receiver's fax number
|
| 86 |
+
LPCWSTR DeviceName; // Device name for the line that received the fax
|
| 87 |
+
DWORD DeviceId; // Permenant line identifier for the receiving device
|
| 88 |
+
LPBYTE RoutingInfoData; // Routing infor data to override configured info
|
| 89 |
+
DWORD RoutingInfoDataSize;// Size of routing info data
|
| 90 |
+
} FAX_ROUTE, *PFAX_ROUTE;
|
| 91 |
+
|
| 92 |
+
enum FAXROUTE_ENABLE {
|
| 93 |
+
QUERY_STATUS = -1,
|
| 94 |
+
STATUS_DISABLE = 0,
|
| 95 |
+
STATUS_ENABLE = 1
|
| 96 |
+
};
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
//
|
| 100 |
+
// prototypes
|
| 101 |
+
//
|
| 102 |
+
|
| 103 |
+
BOOL WINAPI
|
| 104 |
+
FaxRouteInitialize(
|
| 105 |
+
IN HANDLE HeapHandle,
|
| 106 |
+
IN PFAX_ROUTE_CALLBACKROUTINES FaxRouteCallbackRoutines
|
| 107 |
+
);
|
| 108 |
+
|
| 109 |
+
BOOL WINAPI
|
| 110 |
+
FaxRouteDeviceEnable(
|
| 111 |
+
IN LPCWSTR RoutingGuid,
|
| 112 |
+
IN DWORD DeviceId,
|
| 113 |
+
IN LONG Enabled
|
| 114 |
+
);
|
| 115 |
+
|
| 116 |
+
BOOL WINAPI
|
| 117 |
+
FaxRouteDeviceChangeNotification(
|
| 118 |
+
IN DWORD DeviceId,
|
| 119 |
+
IN BOOL NewDevice
|
| 120 |
+
);
|
| 121 |
+
|
| 122 |
+
BOOL WINAPI
|
| 123 |
+
FaxRouteGetRoutingInfo(
|
| 124 |
+
IN LPCWSTR RoutingGuid,
|
| 125 |
+
IN DWORD DeviceId,
|
| 126 |
+
IN LPBYTE RoutingInfo,
|
| 127 |
+
OUT LPDWORD RoutingInfoSize
|
| 128 |
+
);
|
| 129 |
+
|
| 130 |
+
BOOL WINAPI
|
| 131 |
+
FaxRouteSetRoutingInfo(
|
| 132 |
+
IN LPCWSTR RoutingGuid,
|
| 133 |
+
IN DWORD DeviceId,
|
| 134 |
+
IN const BYTE *RoutingInfo,
|
| 135 |
+
IN DWORD RoutingInfoSize
|
| 136 |
+
);
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
typedef BOOL (WINAPI *PFAXROUTEINITIALIZE) (HANDLE,PFAX_ROUTE_CALLBACKROUTINES);
|
| 140 |
+
typedef BOOL (WINAPI *PFAXROUTEMETHOD) (const FAX_ROUTE*,PVOID*,LPDWORD);
|
| 141 |
+
typedef BOOL (WINAPI *PFAXROUTEDEVICEENABLE) (LPCWSTR,DWORD,LONG);
|
| 142 |
+
typedef BOOL (WINAPI *PFAXROUTEDEVICECHANGENOTIFICATION) (DWORD,BOOL);
|
| 143 |
+
typedef BOOL (WINAPI *PFAXROUTEGETROUTINGINFO) (LPCWSTR,DWORD,LPBYTE,LPDWORD);
|
| 144 |
+
typedef BOOL (WINAPI *PFAXROUTESETROUTINGINFO) (LPCWSTR,DWORD,const BYTE*,DWORD);
|
| 145 |
+
|
| 146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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __dpcfg_h__
|
| 34 |
+
#define __dpcfg_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IFhTarget_FWD_DEFINED__
|
| 51 |
+
#define __IFhTarget_FWD_DEFINED__
|
| 52 |
+
typedef interface IFhTarget IFhTarget;
|
| 53 |
+
|
| 54 |
+
#endif /* __IFhTarget_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IFhScopeIterator_FWD_DEFINED__
|
| 58 |
+
#define __IFhScopeIterator_FWD_DEFINED__
|
| 59 |
+
typedef interface IFhScopeIterator IFhScopeIterator;
|
| 60 |
+
|
| 61 |
+
#endif /* __IFhScopeIterator_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IFhConfigMgr_FWD_DEFINED__
|
| 65 |
+
#define __IFhConfigMgr_FWD_DEFINED__
|
| 66 |
+
typedef interface IFhConfigMgr IFhConfigMgr;
|
| 67 |
+
|
| 68 |
+
#endif /* __IFhConfigMgr_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
#ifndef __IFhReassociation_FWD_DEFINED__
|
| 72 |
+
#define __IFhReassociation_FWD_DEFINED__
|
| 73 |
+
typedef interface IFhReassociation IFhReassociation;
|
| 74 |
+
|
| 75 |
+
#endif /* __IFhReassociation_FWD_DEFINED__ */
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
#ifndef __FhConfigMgr_FWD_DEFINED__
|
| 79 |
+
#define __FhConfigMgr_FWD_DEFINED__
|
| 80 |
+
|
| 81 |
+
#ifdef __cplusplus
|
| 82 |
+
typedef class FhConfigMgr FhConfigMgr;
|
| 83 |
+
#else
|
| 84 |
+
typedef struct FhConfigMgr FhConfigMgr;
|
| 85 |
+
#endif /* __cplusplus */
|
| 86 |
+
|
| 87 |
+
#endif /* __FhConfigMgr_FWD_DEFINED__ */
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
#ifndef __FhReassociation_FWD_DEFINED__
|
| 91 |
+
#define __FhReassociation_FWD_DEFINED__
|
| 92 |
+
|
| 93 |
+
#ifdef __cplusplus
|
| 94 |
+
typedef class FhReassociation FhReassociation;
|
| 95 |
+
#else
|
| 96 |
+
typedef struct FhReassociation FhReassociation;
|
| 97 |
+
#endif /* __cplusplus */
|
| 98 |
+
|
| 99 |
+
#endif /* __FhReassociation_FWD_DEFINED__ */
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
/* header files for imported files */
|
| 103 |
+
#include "ocidl.h"
|
| 104 |
+
#include "shobjidl_core.h"
|
| 105 |
+
|
| 106 |
+
#ifdef __cplusplus
|
| 107 |
+
extern "C"{
|
| 108 |
+
#endif
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
/* interface __MIDL_itf_dpcfg_0000_0000 */
|
| 112 |
+
/* [local] */
|
| 113 |
+
|
| 114 |
+
/*******************************************************************************/
|
| 115 |
+
/* */
|
| 116 |
+
/* Copyright (C) 2010 Microsoft Corporation. All rights reserved. */
|
| 117 |
+
/* */
|
| 118 |
+
/* IDL source for File History Configuration Manager COM API. */
|
| 119 |
+
/* */
|
| 120 |
+
/*******************************************************************************/
|
| 121 |
+
#include <winapifamily.h>
|
| 122 |
+
#pragma region Desktop Family
|
| 123 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 124 |
+
#if NTDDI_VERSION >= NTDDI_WIN8
|
| 125 |
+
typedef
|
| 126 |
+
enum _FH_TARGET_PROPERTY_TYPE
|
| 127 |
+
{
|
| 128 |
+
FH_TARGET_NAME = 0,
|
| 129 |
+
FH_TARGET_URL = ( FH_TARGET_NAME + 1 ) ,
|
| 130 |
+
FH_TARGET_DRIVE_TYPE = ( FH_TARGET_URL + 1 ) ,
|
| 131 |
+
MAX_TARGET_PROPERTY = ( FH_TARGET_DRIVE_TYPE + 1 )
|
| 132 |
+
} FH_TARGET_PROPERTY_TYPE;
|
| 133 |
+
|
| 134 |
+
typedef enum _FH_TARGET_PROPERTY_TYPE *PFH_TARGET_PROPERTY_TYPE;
|
| 135 |
+
|
| 136 |
+
typedef
|
| 137 |
+
enum _FH_TARGET_DRIVE_TYPES
|
| 138 |
+
{
|
| 139 |
+
FH_DRIVE_UNKNOWN = 0,
|
| 140 |
+
FH_DRIVE_REMOVABLE = 2,
|
| 141 |
+
FH_DRIVE_FIXED = 3,
|
| 142 |
+
FH_DRIVE_REMOTE = 4
|
| 143 |
+
} FH_TARGET_DRIVE_TYPES;
|
| 144 |
+
|
| 145 |
+
#pragma deprecated(IFhTarget)
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0000_v0_0_c_ifspec;
|
| 149 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0000_v0_0_s_ifspec;
|
| 150 |
+
|
| 151 |
+
#ifndef __IFhTarget_INTERFACE_DEFINED__
|
| 152 |
+
#define __IFhTarget_INTERFACE_DEFINED__
|
| 153 |
+
|
| 154 |
+
/* interface IFhTarget */
|
| 155 |
+
/* [uuid][object] */
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
EXTERN_C const IID IID_IFhTarget;
|
| 159 |
+
|
| 160 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 161 |
+
|
| 162 |
+
MIDL_INTERFACE("D87965FD-2BAD-4657-BD3B-9567EB300CED")
|
| 163 |
+
IFhTarget : public IUnknown
|
| 164 |
+
{
|
| 165 |
+
public:
|
| 166 |
+
virtual HRESULT STDMETHODCALLTYPE GetStringProperty(
|
| 167 |
+
/* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 168 |
+
/* [out] */ __RPC__deref_out_opt BSTR *PropertyValue) = 0;
|
| 169 |
+
|
| 170 |
+
virtual HRESULT STDMETHODCALLTYPE GetNumericalProperty(
|
| 171 |
+
/* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 172 |
+
/* [out] */ __RPC__out ULONGLONG *PropertyValue) = 0;
|
| 173 |
+
|
| 174 |
+
};
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
#else /* C style interface */
|
| 178 |
+
|
| 179 |
+
typedef struct IFhTargetVtbl
|
| 180 |
+
{
|
| 181 |
+
BEGIN_INTERFACE
|
| 182 |
+
|
| 183 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 184 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 185 |
+
__RPC__in IFhTarget * This,
|
| 186 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 187 |
+
/* [annotation][iid_is][out] */
|
| 188 |
+
_COM_Outptr_ void **ppvObject);
|
| 189 |
+
|
| 190 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 191 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 192 |
+
__RPC__in IFhTarget * This);
|
| 193 |
+
|
| 194 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 195 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 196 |
+
__RPC__in IFhTarget * This);
|
| 197 |
+
|
| 198 |
+
DECLSPEC_XFGVIRT(IFhTarget, GetStringProperty)
|
| 199 |
+
HRESULT ( STDMETHODCALLTYPE *GetStringProperty )(
|
| 200 |
+
__RPC__in IFhTarget * This,
|
| 201 |
+
/* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 202 |
+
/* [out] */ __RPC__deref_out_opt BSTR *PropertyValue);
|
| 203 |
+
|
| 204 |
+
DECLSPEC_XFGVIRT(IFhTarget, GetNumericalProperty)
|
| 205 |
+
HRESULT ( STDMETHODCALLTYPE *GetNumericalProperty )(
|
| 206 |
+
__RPC__in IFhTarget * This,
|
| 207 |
+
/* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 208 |
+
/* [out] */ __RPC__out ULONGLONG *PropertyValue);
|
| 209 |
+
|
| 210 |
+
END_INTERFACE
|
| 211 |
+
} IFhTargetVtbl;
|
| 212 |
+
|
| 213 |
+
interface IFhTarget
|
| 214 |
+
{
|
| 215 |
+
CONST_VTBL struct IFhTargetVtbl *lpVtbl;
|
| 216 |
+
};
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
#ifdef COBJMACROS
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
#define IFhTarget_QueryInterface(This,riid,ppvObject) \
|
| 224 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 225 |
+
|
| 226 |
+
#define IFhTarget_AddRef(This) \
|
| 227 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 228 |
+
|
| 229 |
+
#define IFhTarget_Release(This) \
|
| 230 |
+
( (This)->lpVtbl -> Release(This) )
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
#define IFhTarget_GetStringProperty(This,PropertyType,PropertyValue) \
|
| 234 |
+
( (This)->lpVtbl -> GetStringProperty(This,PropertyType,PropertyValue) )
|
| 235 |
+
|
| 236 |
+
#define IFhTarget_GetNumericalProperty(This,PropertyType,PropertyValue) \
|
| 237 |
+
( (This)->lpVtbl -> GetNumericalProperty(This,PropertyType,PropertyValue) )
|
| 238 |
+
|
| 239 |
+
#endif /* COBJMACROS */
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
#endif /* C style interface */
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
#endif /* __IFhTarget_INTERFACE_DEFINED__ */
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
/* interface __MIDL_itf_dpcfg_0000_0001 */
|
| 251 |
+
/* [local] */
|
| 252 |
+
|
| 253 |
+
#pragma deprecated(IFhScopeIterator)
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0001_v0_0_c_ifspec;
|
| 257 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0001_v0_0_s_ifspec;
|
| 258 |
+
|
| 259 |
+
#ifndef __IFhScopeIterator_INTERFACE_DEFINED__
|
| 260 |
+
#define __IFhScopeIterator_INTERFACE_DEFINED__
|
| 261 |
+
|
| 262 |
+
/* interface IFhScopeIterator */
|
| 263 |
+
/* [uuid][object] */
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
EXTERN_C const IID IID_IFhScopeIterator;
|
| 267 |
+
|
| 268 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 269 |
+
|
| 270 |
+
MIDL_INTERFACE("3197ABCE-532A-44C6-8615-F3666566A720")
|
| 271 |
+
IFhScopeIterator : public IUnknown
|
| 272 |
+
{
|
| 273 |
+
public:
|
| 274 |
+
virtual HRESULT STDMETHODCALLTYPE MoveToNextItem( void) = 0;
|
| 275 |
+
|
| 276 |
+
virtual HRESULT STDMETHODCALLTYPE GetItem(
|
| 277 |
+
/* [out] */ __RPC__deref_out_opt BSTR *Item) = 0;
|
| 278 |
+
|
| 279 |
+
};
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
#else /* C style interface */
|
| 283 |
+
|
| 284 |
+
typedef struct IFhScopeIteratorVtbl
|
| 285 |
+
{
|
| 286 |
+
BEGIN_INTERFACE
|
| 287 |
+
|
| 288 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 289 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 290 |
+
__RPC__in IFhScopeIterator * This,
|
| 291 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 292 |
+
/* [annotation][iid_is][out] */
|
| 293 |
+
_COM_Outptr_ void **ppvObject);
|
| 294 |
+
|
| 295 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 296 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 297 |
+
__RPC__in IFhScopeIterator * This);
|
| 298 |
+
|
| 299 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 300 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 301 |
+
__RPC__in IFhScopeIterator * This);
|
| 302 |
+
|
| 303 |
+
DECLSPEC_XFGVIRT(IFhScopeIterator, MoveToNextItem)
|
| 304 |
+
HRESULT ( STDMETHODCALLTYPE *MoveToNextItem )(
|
| 305 |
+
__RPC__in IFhScopeIterator * This);
|
| 306 |
+
|
| 307 |
+
DECLSPEC_XFGVIRT(IFhScopeIterator, GetItem)
|
| 308 |
+
HRESULT ( STDMETHODCALLTYPE *GetItem )(
|
| 309 |
+
__RPC__in IFhScopeIterator * This,
|
| 310 |
+
/* [out] */ __RPC__deref_out_opt BSTR *Item);
|
| 311 |
+
|
| 312 |
+
END_INTERFACE
|
| 313 |
+
} IFhScopeIteratorVtbl;
|
| 314 |
+
|
| 315 |
+
interface IFhScopeIterator
|
| 316 |
+
{
|
| 317 |
+
CONST_VTBL struct IFhScopeIteratorVtbl *lpVtbl;
|
| 318 |
+
};
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
#ifdef COBJMACROS
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
#define IFhScopeIterator_QueryInterface(This,riid,ppvObject) \
|
| 326 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 327 |
+
|
| 328 |
+
#define IFhScopeIterator_AddRef(This) \
|
| 329 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 330 |
+
|
| 331 |
+
#define IFhScopeIterator_Release(This) \
|
| 332 |
+
( (This)->lpVtbl -> Release(This) )
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
#define IFhScopeIterator_MoveToNextItem(This) \
|
| 336 |
+
( (This)->lpVtbl -> MoveToNextItem(This) )
|
| 337 |
+
|
| 338 |
+
#define IFhScopeIterator_GetItem(This,Item) \
|
| 339 |
+
( (This)->lpVtbl -> GetItem(This,Item) )
|
| 340 |
+
|
| 341 |
+
#endif /* COBJMACROS */
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
#endif /* C style interface */
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
#endif /* __IFhScopeIterator_INTERFACE_DEFINED__ */
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
/* interface __MIDL_itf_dpcfg_0000_0002 */
|
| 353 |
+
/* [local] */
|
| 354 |
+
|
| 355 |
+
typedef
|
| 356 |
+
enum _FH_PROTECTED_ITEM_CATEGORY
|
| 357 |
+
{
|
| 358 |
+
FH_FOLDER = 0,
|
| 359 |
+
FH_LIBRARY = ( FH_FOLDER + 1 ) ,
|
| 360 |
+
MAX_PROTECTED_ITEM_CATEGORY = ( FH_LIBRARY + 1 )
|
| 361 |
+
} FH_PROTECTED_ITEM_CATEGORY;
|
| 362 |
+
|
| 363 |
+
typedef enum _FH_PROTECTED_ITEM_CATEGORY *PFH_PROTECTED_ITEM_CATEGORY;
|
| 364 |
+
|
| 365 |
+
typedef
|
| 366 |
+
enum _FH_LOCAL_POLICY_TYPE
|
| 367 |
+
{
|
| 368 |
+
FH_FREQUENCY = 0,
|
| 369 |
+
FH_RETENTION_TYPE = ( FH_FREQUENCY + 1 ) ,
|
| 370 |
+
FH_RETENTION_AGE = ( FH_RETENTION_TYPE + 1 ) ,
|
| 371 |
+
MAX_LOCAL_POLICY = ( FH_RETENTION_AGE + 1 )
|
| 372 |
+
} FH_LOCAL_POLICY_TYPE;
|
| 373 |
+
|
| 374 |
+
typedef enum _FH_LOCAL_POLICY_TYPE *PFH_LOCAL_POLICY_TYPE;
|
| 375 |
+
|
| 376 |
+
typedef
|
| 377 |
+
enum _FH_RETENTION_TYPES
|
| 378 |
+
{
|
| 379 |
+
FH_RETENTION_DISABLED = 0,
|
| 380 |
+
FH_RETENTION_UNLIMITED = ( FH_RETENTION_DISABLED + 1 ) ,
|
| 381 |
+
FH_RETENTION_AGE_BASED = ( FH_RETENTION_UNLIMITED + 1 ) ,
|
| 382 |
+
MAX_RETENTION_TYPE = ( FH_RETENTION_AGE_BASED + 1 )
|
| 383 |
+
} FH_RETENTION_TYPES;
|
| 384 |
+
|
| 385 |
+
typedef
|
| 386 |
+
enum _FH_BACKUP_STATUS
|
| 387 |
+
{
|
| 388 |
+
FH_STATUS_DISABLED = 0,
|
| 389 |
+
FH_STATUS_DISABLED_BY_GP = ( FH_STATUS_DISABLED + 1 ) ,
|
| 390 |
+
FH_STATUS_ENABLED = ( FH_STATUS_DISABLED_BY_GP + 1 ) ,
|
| 391 |
+
FH_STATUS_REHYDRATING = ( FH_STATUS_ENABLED + 1 ) ,
|
| 392 |
+
MAX_BACKUP_STATUS = ( FH_STATUS_REHYDRATING + 1 )
|
| 393 |
+
} FH_BACKUP_STATUS;
|
| 394 |
+
|
| 395 |
+
typedef
|
| 396 |
+
enum _FH_DEVICE_VALIDATION_RESULT
|
| 397 |
+
{
|
| 398 |
+
FH_ACCESS_DENIED = 0,
|
| 399 |
+
FH_INVALID_DRIVE_TYPE = ( FH_ACCESS_DENIED + 1 ) ,
|
| 400 |
+
FH_READ_ONLY_PERMISSION = ( FH_INVALID_DRIVE_TYPE + 1 ) ,
|
| 401 |
+
FH_CURRENT_DEFAULT = ( FH_READ_ONLY_PERMISSION + 1 ) ,
|
| 402 |
+
FH_NAMESPACE_EXISTS = ( FH_CURRENT_DEFAULT + 1 ) ,
|
| 403 |
+
FH_TARGET_PART_OF_LIBRARY = ( FH_NAMESPACE_EXISTS + 1 ) ,
|
| 404 |
+
FH_VALID_TARGET = ( FH_TARGET_PART_OF_LIBRARY + 1 ) ,
|
| 405 |
+
MAX_VALIDATION_RESULT = ( FH_VALID_TARGET + 1 )
|
| 406 |
+
} FH_DEVICE_VALIDATION_RESULT;
|
| 407 |
+
|
| 408 |
+
typedef enum _FH_DEVICE_VALIDATION_RESULT *PFH_DEVICE_VALIDATION_RESULT;
|
| 409 |
+
|
| 410 |
+
#pragma deprecated(IFhConfigMgr)
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0002_v0_0_c_ifspec;
|
| 414 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0002_v0_0_s_ifspec;
|
| 415 |
+
|
| 416 |
+
#ifndef __IFhConfigMgr_INTERFACE_DEFINED__
|
| 417 |
+
#define __IFhConfigMgr_INTERFACE_DEFINED__
|
| 418 |
+
|
| 419 |
+
/* interface IFhConfigMgr */
|
| 420 |
+
/* [unique][uuid][object] */
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
EXTERN_C const IID IID_IFhConfigMgr;
|
| 424 |
+
|
| 425 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 426 |
+
|
| 427 |
+
MIDL_INTERFACE("6A5FEA5B-BF8F-4EE5-B8C3-44D8A0D7331C")
|
| 428 |
+
IFhConfigMgr : public IUnknown
|
| 429 |
+
{
|
| 430 |
+
public:
|
| 431 |
+
virtual HRESULT STDMETHODCALLTYPE LoadConfiguration( void) = 0;
|
| 432 |
+
|
| 433 |
+
virtual HRESULT STDMETHODCALLTYPE CreateDefaultConfiguration(
|
| 434 |
+
/* [in] */ BOOL OverwriteIfExists) = 0;
|
| 435 |
+
|
| 436 |
+
virtual HRESULT STDMETHODCALLTYPE SaveConfiguration( void) = 0;
|
| 437 |
+
|
| 438 |
+
virtual HRESULT STDMETHODCALLTYPE AddRemoveExcludeRule(
|
| 439 |
+
/* [in] */ BOOL Add,
|
| 440 |
+
/* [in] */ FH_PROTECTED_ITEM_CATEGORY Category,
|
| 441 |
+
/* [in] */ __RPC__in BSTR Item) = 0;
|
| 442 |
+
|
| 443 |
+
virtual HRESULT STDMETHODCALLTYPE GetIncludeExcludeRules(
|
| 444 |
+
/* [in] */ BOOL Include,
|
| 445 |
+
/* [in] */ FH_PROTECTED_ITEM_CATEGORY Category,
|
| 446 |
+
/* [out] */ __RPC__deref_out_opt IFhScopeIterator **Iterator) = 0;
|
| 447 |
+
|
| 448 |
+
virtual HRESULT STDMETHODCALLTYPE GetLocalPolicy(
|
| 449 |
+
/* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 450 |
+
/* [out] */ __RPC__out ULONGLONG *PolicyValue) = 0;
|
| 451 |
+
|
| 452 |
+
virtual HRESULT STDMETHODCALLTYPE SetLocalPolicy(
|
| 453 |
+
/* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 454 |
+
/* [in] */ ULONGLONG PolicyValue) = 0;
|
| 455 |
+
|
| 456 |
+
virtual HRESULT STDMETHODCALLTYPE GetBackupStatus(
|
| 457 |
+
/* [out] */ __RPC__out FH_BACKUP_STATUS *BackupStatus) = 0;
|
| 458 |
+
|
| 459 |
+
virtual HRESULT STDMETHODCALLTYPE SetBackupStatus(
|
| 460 |
+
/* [in] */ FH_BACKUP_STATUS BackupStatus) = 0;
|
| 461 |
+
|
| 462 |
+
virtual HRESULT STDMETHODCALLTYPE GetDefaultTarget(
|
| 463 |
+
/* [out] */ __RPC__deref_out_opt IFhTarget **DefaultTarget) = 0;
|
| 464 |
+
|
| 465 |
+
virtual HRESULT STDMETHODCALLTYPE ValidateTarget(
|
| 466 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 467 |
+
/* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult) = 0;
|
| 468 |
+
|
| 469 |
+
virtual HRESULT STDMETHODCALLTYPE ProvisionAndSetNewTarget(
|
| 470 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 471 |
+
/* [in] */ __RPC__in BSTR TargetName) = 0;
|
| 472 |
+
|
| 473 |
+
virtual HRESULT STDMETHODCALLTYPE ChangeDefaultTargetRecommendation(
|
| 474 |
+
/* [in] */ BOOL Recommend) = 0;
|
| 475 |
+
|
| 476 |
+
virtual HRESULT STDMETHODCALLTYPE QueryProtectionStatus(
|
| 477 |
+
/* [out] */ __RPC__out DWORD *ProtectionState,
|
| 478 |
+
/* [out] */ __RPC__deref_out_opt BSTR *ProtectedUntilTime) = 0;
|
| 479 |
+
|
| 480 |
+
};
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
#else /* C style interface */
|
| 484 |
+
|
| 485 |
+
typedef struct IFhConfigMgrVtbl
|
| 486 |
+
{
|
| 487 |
+
BEGIN_INTERFACE
|
| 488 |
+
|
| 489 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 490 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 491 |
+
__RPC__in IFhConfigMgr * This,
|
| 492 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 493 |
+
/* [annotation][iid_is][out] */
|
| 494 |
+
_COM_Outptr_ void **ppvObject);
|
| 495 |
+
|
| 496 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 497 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 498 |
+
__RPC__in IFhConfigMgr * This);
|
| 499 |
+
|
| 500 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 501 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 502 |
+
__RPC__in IFhConfigMgr * This);
|
| 503 |
+
|
| 504 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, LoadConfiguration)
|
| 505 |
+
HRESULT ( STDMETHODCALLTYPE *LoadConfiguration )(
|
| 506 |
+
__RPC__in IFhConfigMgr * This);
|
| 507 |
+
|
| 508 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, CreateDefaultConfiguration)
|
| 509 |
+
HRESULT ( STDMETHODCALLTYPE *CreateDefaultConfiguration )(
|
| 510 |
+
__RPC__in IFhConfigMgr * This,
|
| 511 |
+
/* [in] */ BOOL OverwriteIfExists);
|
| 512 |
+
|
| 513 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, SaveConfiguration)
|
| 514 |
+
HRESULT ( STDMETHODCALLTYPE *SaveConfiguration )(
|
| 515 |
+
__RPC__in IFhConfigMgr * This);
|
| 516 |
+
|
| 517 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, AddRemoveExcludeRule)
|
| 518 |
+
HRESULT ( STDMETHODCALLTYPE *AddRemoveExcludeRule )(
|
| 519 |
+
__RPC__in IFhConfigMgr * This,
|
| 520 |
+
/* [in] */ BOOL Add,
|
| 521 |
+
/* [in] */ FH_PROTECTED_ITEM_CATEGORY Category,
|
| 522 |
+
/* [in] */ __RPC__in BSTR Item);
|
| 523 |
+
|
| 524 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, GetIncludeExcludeRules)
|
| 525 |
+
HRESULT ( STDMETHODCALLTYPE *GetIncludeExcludeRules )(
|
| 526 |
+
__RPC__in IFhConfigMgr * This,
|
| 527 |
+
/* [in] */ BOOL Include,
|
| 528 |
+
/* [in] */ FH_PROTECTED_ITEM_CATEGORY Category,
|
| 529 |
+
/* [out] */ __RPC__deref_out_opt IFhScopeIterator **Iterator);
|
| 530 |
+
|
| 531 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, GetLocalPolicy)
|
| 532 |
+
HRESULT ( STDMETHODCALLTYPE *GetLocalPolicy )(
|
| 533 |
+
__RPC__in IFhConfigMgr * This,
|
| 534 |
+
/* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 535 |
+
/* [out] */ __RPC__out ULONGLONG *PolicyValue);
|
| 536 |
+
|
| 537 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, SetLocalPolicy)
|
| 538 |
+
HRESULT ( STDMETHODCALLTYPE *SetLocalPolicy )(
|
| 539 |
+
__RPC__in IFhConfigMgr * This,
|
| 540 |
+
/* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 541 |
+
/* [in] */ ULONGLONG PolicyValue);
|
| 542 |
+
|
| 543 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, GetBackupStatus)
|
| 544 |
+
HRESULT ( STDMETHODCALLTYPE *GetBackupStatus )(
|
| 545 |
+
__RPC__in IFhConfigMgr * This,
|
| 546 |
+
/* [out] */ __RPC__out FH_BACKUP_STATUS *BackupStatus);
|
| 547 |
+
|
| 548 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, SetBackupStatus)
|
| 549 |
+
HRESULT ( STDMETHODCALLTYPE *SetBackupStatus )(
|
| 550 |
+
__RPC__in IFhConfigMgr * This,
|
| 551 |
+
/* [in] */ FH_BACKUP_STATUS BackupStatus);
|
| 552 |
+
|
| 553 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, GetDefaultTarget)
|
| 554 |
+
HRESULT ( STDMETHODCALLTYPE *GetDefaultTarget )(
|
| 555 |
+
__RPC__in IFhConfigMgr * This,
|
| 556 |
+
/* [out] */ __RPC__deref_out_opt IFhTarget **DefaultTarget);
|
| 557 |
+
|
| 558 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, ValidateTarget)
|
| 559 |
+
HRESULT ( STDMETHODCALLTYPE *ValidateTarget )(
|
| 560 |
+
__RPC__in IFhConfigMgr * This,
|
| 561 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 562 |
+
/* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult);
|
| 563 |
+
|
| 564 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, ProvisionAndSetNewTarget)
|
| 565 |
+
HRESULT ( STDMETHODCALLTYPE *ProvisionAndSetNewTarget )(
|
| 566 |
+
__RPC__in IFhConfigMgr * This,
|
| 567 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 568 |
+
/* [in] */ __RPC__in BSTR TargetName);
|
| 569 |
+
|
| 570 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, ChangeDefaultTargetRecommendation)
|
| 571 |
+
HRESULT ( STDMETHODCALLTYPE *ChangeDefaultTargetRecommendation )(
|
| 572 |
+
__RPC__in IFhConfigMgr * This,
|
| 573 |
+
/* [in] */ BOOL Recommend);
|
| 574 |
+
|
| 575 |
+
DECLSPEC_XFGVIRT(IFhConfigMgr, QueryProtectionStatus)
|
| 576 |
+
HRESULT ( STDMETHODCALLTYPE *QueryProtectionStatus )(
|
| 577 |
+
__RPC__in IFhConfigMgr * This,
|
| 578 |
+
/* [out] */ __RPC__out DWORD *ProtectionState,
|
| 579 |
+
/* [out] */ __RPC__deref_out_opt BSTR *ProtectedUntilTime);
|
| 580 |
+
|
| 581 |
+
END_INTERFACE
|
| 582 |
+
} IFhConfigMgrVtbl;
|
| 583 |
+
|
| 584 |
+
interface IFhConfigMgr
|
| 585 |
+
{
|
| 586 |
+
CONST_VTBL struct IFhConfigMgrVtbl *lpVtbl;
|
| 587 |
+
};
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
|
| 591 |
+
#ifdef COBJMACROS
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
#define IFhConfigMgr_QueryInterface(This,riid,ppvObject) \
|
| 595 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 596 |
+
|
| 597 |
+
#define IFhConfigMgr_AddRef(This) \
|
| 598 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 599 |
+
|
| 600 |
+
#define IFhConfigMgr_Release(This) \
|
| 601 |
+
( (This)->lpVtbl -> Release(This) )
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
#define IFhConfigMgr_LoadConfiguration(This) \
|
| 605 |
+
( (This)->lpVtbl -> LoadConfiguration(This) )
|
| 606 |
+
|
| 607 |
+
#define IFhConfigMgr_CreateDefaultConfiguration(This,OverwriteIfExists) \
|
| 608 |
+
( (This)->lpVtbl -> CreateDefaultConfiguration(This,OverwriteIfExists) )
|
| 609 |
+
|
| 610 |
+
#define IFhConfigMgr_SaveConfiguration(This) \
|
| 611 |
+
( (This)->lpVtbl -> SaveConfiguration(This) )
|
| 612 |
+
|
| 613 |
+
#define IFhConfigMgr_AddRemoveExcludeRule(This,Add,Category,Item) \
|
| 614 |
+
( (This)->lpVtbl -> AddRemoveExcludeRule(This,Add,Category,Item) )
|
| 615 |
+
|
| 616 |
+
#define IFhConfigMgr_GetIncludeExcludeRules(This,Include,Category,Iterator) \
|
| 617 |
+
( (This)->lpVtbl -> GetIncludeExcludeRules(This,Include,Category,Iterator) )
|
| 618 |
+
|
| 619 |
+
#define IFhConfigMgr_GetLocalPolicy(This,LocalPolicyType,PolicyValue) \
|
| 620 |
+
( (This)->lpVtbl -> GetLocalPolicy(This,LocalPolicyType,PolicyValue) )
|
| 621 |
+
|
| 622 |
+
#define IFhConfigMgr_SetLocalPolicy(This,LocalPolicyType,PolicyValue) \
|
| 623 |
+
( (This)->lpVtbl -> SetLocalPolicy(This,LocalPolicyType,PolicyValue) )
|
| 624 |
+
|
| 625 |
+
#define IFhConfigMgr_GetBackupStatus(This,BackupStatus) \
|
| 626 |
+
( (This)->lpVtbl -> GetBackupStatus(This,BackupStatus) )
|
| 627 |
+
|
| 628 |
+
#define IFhConfigMgr_SetBackupStatus(This,BackupStatus) \
|
| 629 |
+
( (This)->lpVtbl -> SetBackupStatus(This,BackupStatus) )
|
| 630 |
+
|
| 631 |
+
#define IFhConfigMgr_GetDefaultTarget(This,DefaultTarget) \
|
| 632 |
+
( (This)->lpVtbl -> GetDefaultTarget(This,DefaultTarget) )
|
| 633 |
+
|
| 634 |
+
#define IFhConfigMgr_ValidateTarget(This,TargetUrl,ValidationResult) \
|
| 635 |
+
( (This)->lpVtbl -> ValidateTarget(This,TargetUrl,ValidationResult) )
|
| 636 |
+
|
| 637 |
+
#define IFhConfigMgr_ProvisionAndSetNewTarget(This,TargetUrl,TargetName) \
|
| 638 |
+
( (This)->lpVtbl -> ProvisionAndSetNewTarget(This,TargetUrl,TargetName) )
|
| 639 |
+
|
| 640 |
+
#define IFhConfigMgr_ChangeDefaultTargetRecommendation(This,Recommend) \
|
| 641 |
+
( (This)->lpVtbl -> ChangeDefaultTargetRecommendation(This,Recommend) )
|
| 642 |
+
|
| 643 |
+
#define IFhConfigMgr_QueryProtectionStatus(This,ProtectionState,ProtectedUntilTime) \
|
| 644 |
+
( (This)->lpVtbl -> QueryProtectionStatus(This,ProtectionState,ProtectedUntilTime) )
|
| 645 |
+
|
| 646 |
+
#endif /* COBJMACROS */
|
| 647 |
+
|
| 648 |
+
|
| 649 |
+
#endif /* C style interface */
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
#endif /* __IFhConfigMgr_INTERFACE_DEFINED__ */
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
/* interface __MIDL_itf_dpcfg_0000_0003 */
|
| 658 |
+
/* [local] */
|
| 659 |
+
|
| 660 |
+
#pragma deprecated(IFhReassociation)
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0003_v0_0_c_ifspec;
|
| 664 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0003_v0_0_s_ifspec;
|
| 665 |
+
|
| 666 |
+
#ifndef __IFhReassociation_INTERFACE_DEFINED__
|
| 667 |
+
#define __IFhReassociation_INTERFACE_DEFINED__
|
| 668 |
+
|
| 669 |
+
/* interface IFhReassociation */
|
| 670 |
+
/* [unique][uuid][object] */
|
| 671 |
+
|
| 672 |
+
|
| 673 |
+
EXTERN_C const IID IID_IFhReassociation;
|
| 674 |
+
|
| 675 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 676 |
+
|
| 677 |
+
MIDL_INTERFACE("6544A28A-F68D-47ac-91EF-16B2B36AA3EE")
|
| 678 |
+
IFhReassociation : public IUnknown
|
| 679 |
+
{
|
| 680 |
+
public:
|
| 681 |
+
virtual HRESULT STDMETHODCALLTYPE ValidateTarget(
|
| 682 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 683 |
+
/* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult) = 0;
|
| 684 |
+
|
| 685 |
+
virtual HRESULT STDMETHODCALLTYPE ScanTargetForConfigurations(
|
| 686 |
+
/* [in] */ __RPC__in BSTR TargetUrl) = 0;
|
| 687 |
+
|
| 688 |
+
virtual HRESULT STDMETHODCALLTYPE GetConfigurationDetails(
|
| 689 |
+
/* [in] */ DWORD Index,
|
| 690 |
+
/* [out] */ __RPC__deref_out_opt BSTR *UserName,
|
| 691 |
+
/* [out] */ __RPC__deref_out_opt BSTR *PcName,
|
| 692 |
+
/* [out] */ __RPC__out FILETIME *BackupTime) = 0;
|
| 693 |
+
|
| 694 |
+
virtual HRESULT STDMETHODCALLTYPE SelectConfiguration(
|
| 695 |
+
/* [in] */ DWORD Index) = 0;
|
| 696 |
+
|
| 697 |
+
virtual HRESULT STDMETHODCALLTYPE PerformReassociation(
|
| 698 |
+
/* [in] */ BOOL OverwriteIfExists) = 0;
|
| 699 |
+
|
| 700 |
+
};
|
| 701 |
+
|
| 702 |
+
|
| 703 |
+
#else /* C style interface */
|
| 704 |
+
|
| 705 |
+
typedef struct IFhReassociationVtbl
|
| 706 |
+
{
|
| 707 |
+
BEGIN_INTERFACE
|
| 708 |
+
|
| 709 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 710 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 711 |
+
__RPC__in IFhReassociation * This,
|
| 712 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 713 |
+
/* [annotation][iid_is][out] */
|
| 714 |
+
_COM_Outptr_ void **ppvObject);
|
| 715 |
+
|
| 716 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 717 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 718 |
+
__RPC__in IFhReassociation * This);
|
| 719 |
+
|
| 720 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 721 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 722 |
+
__RPC__in IFhReassociation * This);
|
| 723 |
+
|
| 724 |
+
DECLSPEC_XFGVIRT(IFhReassociation, ValidateTarget)
|
| 725 |
+
HRESULT ( STDMETHODCALLTYPE *ValidateTarget )(
|
| 726 |
+
__RPC__in IFhReassociation * This,
|
| 727 |
+
/* [in] */ __RPC__in BSTR TargetUrl,
|
| 728 |
+
/* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult);
|
| 729 |
+
|
| 730 |
+
DECLSPEC_XFGVIRT(IFhReassociation, ScanTargetForConfigurations)
|
| 731 |
+
HRESULT ( STDMETHODCALLTYPE *ScanTargetForConfigurations )(
|
| 732 |
+
__RPC__in IFhReassociation * This,
|
| 733 |
+
/* [in] */ __RPC__in BSTR TargetUrl);
|
| 734 |
+
|
| 735 |
+
DECLSPEC_XFGVIRT(IFhReassociation, GetConfigurationDetails)
|
| 736 |
+
HRESULT ( STDMETHODCALLTYPE *GetConfigurationDetails )(
|
| 737 |
+
__RPC__in IFhReassociation * This,
|
| 738 |
+
/* [in] */ DWORD Index,
|
| 739 |
+
/* [out] */ __RPC__deref_out_opt BSTR *UserName,
|
| 740 |
+
/* [out] */ __RPC__deref_out_opt BSTR *PcName,
|
| 741 |
+
/* [out] */ __RPC__out FILETIME *BackupTime);
|
| 742 |
+
|
| 743 |
+
DECLSPEC_XFGVIRT(IFhReassociation, SelectConfiguration)
|
| 744 |
+
HRESULT ( STDMETHODCALLTYPE *SelectConfiguration )(
|
| 745 |
+
__RPC__in IFhReassociation * This,
|
| 746 |
+
/* [in] */ DWORD Index);
|
| 747 |
+
|
| 748 |
+
DECLSPEC_XFGVIRT(IFhReassociation, PerformReassociation)
|
| 749 |
+
HRESULT ( STDMETHODCALLTYPE *PerformReassociation )(
|
| 750 |
+
__RPC__in IFhReassociation * This,
|
| 751 |
+
/* [in] */ BOOL OverwriteIfExists);
|
| 752 |
+
|
| 753 |
+
END_INTERFACE
|
| 754 |
+
} IFhReassociationVtbl;
|
| 755 |
+
|
| 756 |
+
interface IFhReassociation
|
| 757 |
+
{
|
| 758 |
+
CONST_VTBL struct IFhReassociationVtbl *lpVtbl;
|
| 759 |
+
};
|
| 760 |
+
|
| 761 |
+
|
| 762 |
+
|
| 763 |
+
#ifdef COBJMACROS
|
| 764 |
+
|
| 765 |
+
|
| 766 |
+
#define IFhReassociation_QueryInterface(This,riid,ppvObject) \
|
| 767 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 768 |
+
|
| 769 |
+
#define IFhReassociation_AddRef(This) \
|
| 770 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 771 |
+
|
| 772 |
+
#define IFhReassociation_Release(This) \
|
| 773 |
+
( (This)->lpVtbl -> Release(This) )
|
| 774 |
+
|
| 775 |
+
|
| 776 |
+
#define IFhReassociation_ValidateTarget(This,TargetUrl,ValidationResult) \
|
| 777 |
+
( (This)->lpVtbl -> ValidateTarget(This,TargetUrl,ValidationResult) )
|
| 778 |
+
|
| 779 |
+
#define IFhReassociation_ScanTargetForConfigurations(This,TargetUrl) \
|
| 780 |
+
( (This)->lpVtbl -> ScanTargetForConfigurations(This,TargetUrl) )
|
| 781 |
+
|
| 782 |
+
#define IFhReassociation_GetConfigurationDetails(This,Index,UserName,PcName,BackupTime) \
|
| 783 |
+
( (This)->lpVtbl -> GetConfigurationDetails(This,Index,UserName,PcName,BackupTime) )
|
| 784 |
+
|
| 785 |
+
#define IFhReassociation_SelectConfiguration(This,Index) \
|
| 786 |
+
( (This)->lpVtbl -> SelectConfiguration(This,Index) )
|
| 787 |
+
|
| 788 |
+
#define IFhReassociation_PerformReassociation(This,OverwriteIfExists) \
|
| 789 |
+
( (This)->lpVtbl -> PerformReassociation(This,OverwriteIfExists) )
|
| 790 |
+
|
| 791 |
+
#endif /* COBJMACROS */
|
| 792 |
+
|
| 793 |
+
|
| 794 |
+
#endif /* C style interface */
|
| 795 |
+
|
| 796 |
+
|
| 797 |
+
|
| 798 |
+
|
| 799 |
+
#endif /* __IFhReassociation_INTERFACE_DEFINED__ */
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
#ifndef __FhConfigMgrLib_LIBRARY_DEFINED__
|
| 804 |
+
#define __FhConfigMgrLib_LIBRARY_DEFINED__
|
| 805 |
+
|
| 806 |
+
/* library FhConfigMgrLib */
|
| 807 |
+
/* [version][uuid] */
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
EXTERN_C const IID LIBID_FhConfigMgrLib;
|
| 811 |
+
|
| 812 |
+
EXTERN_C const CLSID CLSID_FhConfigMgr;
|
| 813 |
+
|
| 814 |
+
#ifdef __cplusplus
|
| 815 |
+
|
| 816 |
+
class DECLSPEC_UUID("ED43BB3C-09E9-498a-9DF6-2177244C6DB4")
|
| 817 |
+
FhConfigMgr;
|
| 818 |
+
#endif
|
| 819 |
+
|
| 820 |
+
EXTERN_C const CLSID CLSID_FhReassociation;
|
| 821 |
+
|
| 822 |
+
#ifdef __cplusplus
|
| 823 |
+
|
| 824 |
+
class DECLSPEC_UUID("4D728E35-16FA-4320-9E8B-BFD7100A8846")
|
| 825 |
+
FhReassociation;
|
| 826 |
+
#endif
|
| 827 |
+
#endif /* __FhConfigMgrLib_LIBRARY_DEFINED__ */
|
| 828 |
+
|
| 829 |
+
/* interface __MIDL_itf_dpcfg_0000_0005 */
|
| 830 |
+
/* [local] */
|
| 831 |
+
|
| 832 |
+
#endif // if NTDDI_VERSION >= NTDDI_WIN8
|
| 833 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 834 |
+
#pragma endregion
|
| 835 |
+
|
| 836 |
+
|
| 837 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0005_v0_0_c_ifspec;
|
| 838 |
+
extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0005_v0_0_s_ifspec;
|
| 839 |
+
|
| 840 |
+
/* Additional Prototypes for ALL interfaces */
|
| 841 |
+
|
| 842 |
+
unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * );
|
| 843 |
+
unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * );
|
| 844 |
+
unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * );
|
| 845 |
+
void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * );
|
| 846 |
+
|
| 847 |
+
unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * );
|
| 848 |
+
unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * );
|
| 849 |
+
unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * );
|
| 850 |
+
void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * );
|
| 851 |
+
|
| 852 |
+
/* end of Additional Prototypes */
|
| 853 |
+
|
| 854 |
+
#ifdef __cplusplus
|
| 855 |
+
}
|
| 856 |
+
#endif
|
| 857 |
+
|
| 858 |
+
#endif
|
| 859 |
+
|
| 860 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.idl
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cpp_quote("/*******************************************************************************/" )
|
| 2 |
+
cpp_quote("/* */" )
|
| 3 |
+
cpp_quote("/* Copyright (C) 2010 Microsoft Corporation. All rights reserved. */" )
|
| 4 |
+
cpp_quote("/* */" )
|
| 5 |
+
cpp_quote("/* IDL source for File History Configuration Manager COM API. */" )
|
| 6 |
+
cpp_quote("/* */" )
|
| 7 |
+
cpp_quote("/*******************************************************************************/" )
|
| 8 |
+
|
| 9 |
+
cpp_quote("#include <winapifamily.h>")
|
| 10 |
+
|
| 11 |
+
#pragma region Desktop Family
|
| 12 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 13 |
+
|
| 14 |
+
import "ocidl.idl";
|
| 15 |
+
import "oaidl.idl";
|
| 16 |
+
import "shobjidl_core.idl";
|
| 17 |
+
|
| 18 |
+
cpp_quote("#if NTDDI_VERSION >= NTDDI_WIN8")
|
| 19 |
+
|
| 20 |
+
typedef enum _FH_TARGET_PROPERTY_TYPE {
|
| 21 |
+
FH_TARGET_NAME,
|
| 22 |
+
FH_TARGET_URL,
|
| 23 |
+
FH_TARGET_DRIVE_TYPE,
|
| 24 |
+
MAX_TARGET_PROPERTY
|
| 25 |
+
} FH_TARGET_PROPERTY_TYPE, *PFH_TARGET_PROPERTY_TYPE;
|
| 26 |
+
|
| 27 |
+
typedef enum _FH_TARGET_DRIVE_TYPES {
|
| 28 |
+
FH_DRIVE_UNKNOWN = 0,
|
| 29 |
+
FH_DRIVE_REMOVABLE = 2,
|
| 30 |
+
FH_DRIVE_FIXED = 3,
|
| 31 |
+
FH_DRIVE_REMOTE = 4
|
| 32 |
+
} FH_TARGET_DRIVE_TYPES;
|
| 33 |
+
|
| 34 |
+
cpp_quote("#pragma deprecated(IFhTarget)")
|
| 35 |
+
[
|
| 36 |
+
object,
|
| 37 |
+
uuid(D87965FD-2BAD-4657-BD3B-9567EB300CED)
|
| 38 |
+
]
|
| 39 |
+
interface IFhTarget : IUnknown
|
| 40 |
+
{
|
| 41 |
+
HRESULT GetStringProperty(
|
| 42 |
+
[in] FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 43 |
+
[out] BSTR* PropertyValue
|
| 44 |
+
);
|
| 45 |
+
|
| 46 |
+
HRESULT GetNumericalProperty(
|
| 47 |
+
[in] FH_TARGET_PROPERTY_TYPE PropertyType,
|
| 48 |
+
[out] ULONGLONG* PropertyValue
|
| 49 |
+
);
|
| 50 |
+
};
|
| 51 |
+
|
| 52 |
+
cpp_quote("#pragma deprecated(IFhScopeIterator)")
|
| 53 |
+
[
|
| 54 |
+
object,
|
| 55 |
+
uuid(3197ABCE-532A-44C6-8615-F3666566A720)
|
| 56 |
+
]
|
| 57 |
+
interface IFhScopeIterator : IUnknown
|
| 58 |
+
{
|
| 59 |
+
HRESULT MoveToNextItem(void);
|
| 60 |
+
|
| 61 |
+
HRESULT GetItem(
|
| 62 |
+
[out] BSTR* Item
|
| 63 |
+
);
|
| 64 |
+
};
|
| 65 |
+
|
| 66 |
+
typedef enum _FH_PROTECTED_ITEM_CATEGORY {
|
| 67 |
+
FH_FOLDER,
|
| 68 |
+
FH_LIBRARY,
|
| 69 |
+
MAX_PROTECTED_ITEM_CATEGORY
|
| 70 |
+
} FH_PROTECTED_ITEM_CATEGORY, *PFH_PROTECTED_ITEM_CATEGORY;
|
| 71 |
+
|
| 72 |
+
typedef enum _FH_LOCAL_POLICY_TYPE {
|
| 73 |
+
FH_FREQUENCY,
|
| 74 |
+
FH_RETENTION_TYPE,
|
| 75 |
+
FH_RETENTION_AGE,
|
| 76 |
+
MAX_LOCAL_POLICY
|
| 77 |
+
} FH_LOCAL_POLICY_TYPE, *PFH_LOCAL_POLICY_TYPE;
|
| 78 |
+
|
| 79 |
+
typedef enum _FH_RETENTION_TYPES {
|
| 80 |
+
FH_RETENTION_DISABLED,
|
| 81 |
+
FH_RETENTION_UNLIMITED,
|
| 82 |
+
FH_RETENTION_AGE_BASED,
|
| 83 |
+
MAX_RETENTION_TYPE
|
| 84 |
+
} FH_RETENTION_TYPES;
|
| 85 |
+
|
| 86 |
+
typedef enum _FH_BACKUP_STATUS {
|
| 87 |
+
FH_STATUS_DISABLED,
|
| 88 |
+
FH_STATUS_DISABLED_BY_GP,
|
| 89 |
+
FH_STATUS_ENABLED,
|
| 90 |
+
FH_STATUS_REHYDRATING,
|
| 91 |
+
MAX_BACKUP_STATUS
|
| 92 |
+
} FH_BACKUP_STATUS;
|
| 93 |
+
|
| 94 |
+
typedef enum _FH_DEVICE_VALIDATION_RESULT {
|
| 95 |
+
FH_ACCESS_DENIED,
|
| 96 |
+
FH_INVALID_DRIVE_TYPE,
|
| 97 |
+
FH_READ_ONLY_PERMISSION,
|
| 98 |
+
FH_CURRENT_DEFAULT,
|
| 99 |
+
FH_NAMESPACE_EXISTS,
|
| 100 |
+
FH_TARGET_PART_OF_LIBRARY,
|
| 101 |
+
FH_VALID_TARGET,
|
| 102 |
+
MAX_VALIDATION_RESULT
|
| 103 |
+
} FH_DEVICE_VALIDATION_RESULT, *PFH_DEVICE_VALIDATION_RESULT;
|
| 104 |
+
|
| 105 |
+
cpp_quote("#pragma deprecated(IFhConfigMgr)")
|
| 106 |
+
[
|
| 107 |
+
object,
|
| 108 |
+
uuid(6A5FEA5B-BF8F-4EE5-B8C3-44D8A0D7331C),
|
| 109 |
+
pointer_default(unique)
|
| 110 |
+
]
|
| 111 |
+
interface IFhConfigMgr : IUnknown
|
| 112 |
+
{
|
| 113 |
+
HRESULT LoadConfiguration(void);
|
| 114 |
+
|
| 115 |
+
HRESULT CreateDefaultConfiguration(
|
| 116 |
+
[in] BOOL OverwriteIfExists
|
| 117 |
+
);
|
| 118 |
+
|
| 119 |
+
HRESULT SaveConfiguration(void);
|
| 120 |
+
|
| 121 |
+
HRESULT AddRemoveExcludeRule(
|
| 122 |
+
[in] BOOL Add,
|
| 123 |
+
[in] FH_PROTECTED_ITEM_CATEGORY Category,
|
| 124 |
+
[in] BSTR Item
|
| 125 |
+
);
|
| 126 |
+
|
| 127 |
+
HRESULT GetIncludeExcludeRules(
|
| 128 |
+
[in] BOOL Include,
|
| 129 |
+
[in] FH_PROTECTED_ITEM_CATEGORY Category,
|
| 130 |
+
[out] IFhScopeIterator** Iterator
|
| 131 |
+
);
|
| 132 |
+
|
| 133 |
+
HRESULT GetLocalPolicy(
|
| 134 |
+
[in] FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 135 |
+
[out] ULONGLONG* PolicyValue
|
| 136 |
+
);
|
| 137 |
+
|
| 138 |
+
HRESULT SetLocalPolicy(
|
| 139 |
+
[in] FH_LOCAL_POLICY_TYPE LocalPolicyType,
|
| 140 |
+
[in] ULONGLONG PolicyValue
|
| 141 |
+
);
|
| 142 |
+
|
| 143 |
+
HRESULT GetBackupStatus(
|
| 144 |
+
[out] FH_BACKUP_STATUS* BackupStatus
|
| 145 |
+
);
|
| 146 |
+
|
| 147 |
+
HRESULT SetBackupStatus(
|
| 148 |
+
[in] FH_BACKUP_STATUS BackupStatus
|
| 149 |
+
);
|
| 150 |
+
|
| 151 |
+
HRESULT GetDefaultTarget(
|
| 152 |
+
[out] IFhTarget** DefaultTarget
|
| 153 |
+
);
|
| 154 |
+
|
| 155 |
+
HRESULT ValidateTarget(
|
| 156 |
+
[in] BSTR TargetUrl,
|
| 157 |
+
[out] PFH_DEVICE_VALIDATION_RESULT ValidationResult
|
| 158 |
+
);
|
| 159 |
+
|
| 160 |
+
HRESULT ProvisionAndSetNewTarget(
|
| 161 |
+
[in] BSTR TargetUrl,
|
| 162 |
+
[in] BSTR TargetName
|
| 163 |
+
);
|
| 164 |
+
|
| 165 |
+
HRESULT ChangeDefaultTargetRecommendation(
|
| 166 |
+
[in] BOOL Recommend
|
| 167 |
+
);
|
| 168 |
+
|
| 169 |
+
HRESULT QueryProtectionStatus(
|
| 170 |
+
[out] DWORD* ProtectionState,
|
| 171 |
+
[out] BSTR* ProtectedUntilTime
|
| 172 |
+
);
|
| 173 |
+
};
|
| 174 |
+
|
| 175 |
+
cpp_quote("#pragma deprecated(IFhReassociation)")
|
| 176 |
+
[
|
| 177 |
+
object,
|
| 178 |
+
uuid(6544A28A-F68D-47ac-91EF-16B2B36AA3EE),
|
| 179 |
+
pointer_default(unique)
|
| 180 |
+
]
|
| 181 |
+
interface IFhReassociation : IUnknown
|
| 182 |
+
{
|
| 183 |
+
HRESULT ValidateTarget(
|
| 184 |
+
[in] BSTR TargetUrl,
|
| 185 |
+
[out] PFH_DEVICE_VALIDATION_RESULT ValidationResult
|
| 186 |
+
);
|
| 187 |
+
|
| 188 |
+
HRESULT ScanTargetForConfigurations(
|
| 189 |
+
[in] BSTR TargetUrl
|
| 190 |
+
);
|
| 191 |
+
|
| 192 |
+
HRESULT GetConfigurationDetails(
|
| 193 |
+
[in] DWORD Index,
|
| 194 |
+
[out] BSTR* UserName,
|
| 195 |
+
[out] BSTR* PcName,
|
| 196 |
+
[out] FILETIME* BackupTime
|
| 197 |
+
);
|
| 198 |
+
|
| 199 |
+
HRESULT SelectConfiguration(
|
| 200 |
+
[in] DWORD Index
|
| 201 |
+
);
|
| 202 |
+
|
| 203 |
+
HRESULT PerformReassociation(
|
| 204 |
+
[in] BOOL OverwriteIfExists
|
| 205 |
+
);
|
| 206 |
+
};
|
| 207 |
+
|
| 208 |
+
[
|
| 209 |
+
uuid(A99C8501-F546-4871-96FD-6B0D9427A19B),
|
| 210 |
+
version(1.0)
|
| 211 |
+
]
|
| 212 |
+
library FhConfigMgrLib
|
| 213 |
+
{
|
| 214 |
+
importlib("stdole2.tlb");
|
| 215 |
+
|
| 216 |
+
[
|
| 217 |
+
uuid(ED43BB3C-09E9-498a-9DF6-2177244C6DB4)
|
| 218 |
+
]
|
| 219 |
+
coclass FhConfigMgr
|
| 220 |
+
{
|
| 221 |
+
[default] interface IFhConfigMgr;
|
| 222 |
+
};
|
| 223 |
+
|
| 224 |
+
[
|
| 225 |
+
uuid(4D728E35-16FA-4320-9E8B-BFD7100A8846)
|
| 226 |
+
]
|
| 227 |
+
coclass FhReassociation
|
| 228 |
+
{
|
| 229 |
+
[default] interface IFhReassociation;
|
| 230 |
+
};
|
| 231 |
+
};
|
| 232 |
+
|
| 233 |
+
cpp_quote("#endif // if NTDDI_VERSION >= NTDDI_WIN8")
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 237 |
+
#pragma endregion
|
| 238 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhErrors.h
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Microsoft Windows - File History
|
| 4 |
+
Copyright (c) 2010 Microsoft Corporation. All Rights Reserved.
|
| 5 |
+
|
| 6 |
+
Module Name:
|
| 7 |
+
|
| 8 |
+
FhErrors.h
|
| 9 |
+
|
| 10 |
+
Abstract:
|
| 11 |
+
|
| 12 |
+
This module contains the definitions of the error codes
|
| 13 |
+
returned by File History APIs and components.
|
| 14 |
+
|
| 15 |
+
Environment:
|
| 16 |
+
|
| 17 |
+
User mode.
|
| 18 |
+
|
| 19 |
+
--*/
|
| 20 |
+
|
| 21 |
+
#ifndef _FHERRORS_
|
| 22 |
+
#define _FHERRORS_
|
| 23 |
+
|
| 24 |
+
#if _MSC_VER > 1000
|
| 25 |
+
#pragma once
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#include <winapifamily.h>
|
| 29 |
+
|
| 30 |
+
#pragma region Desktop Family
|
| 31 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 32 |
+
|
| 33 |
+
#ifdef __cplusplus
|
| 34 |
+
extern "C" {
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
#if NTDDI_VERSION >= NTDDI_WIN8
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
///////////////////////////////////////////////////////////////////////
|
| 41 |
+
//
|
| 42 |
+
// Error codes for the Configuration Manager. (0x0300 - 0x03ff)
|
| 43 |
+
//
|
| 44 |
+
///////////////////////////////////////////////////////////////////////
|
| 45 |
+
|
| 46 |
+
//
|
| 47 |
+
// The Config File is corrupted and hence invalid
|
| 48 |
+
//
|
| 49 |
+
|
| 50 |
+
#define FHCFG_E_CORRUPT_CONFIG_FILE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0300)
|
| 51 |
+
|
| 52 |
+
//
|
| 53 |
+
// The Config File not found
|
| 54 |
+
//
|
| 55 |
+
|
| 56 |
+
#define FHCFG_E_CONFIG_FILE_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0301)
|
| 57 |
+
|
| 58 |
+
//
|
| 59 |
+
// The Config File already exists
|
| 60 |
+
//
|
| 61 |
+
|
| 62 |
+
#define FHCFG_E_CONFIG_ALREADY_EXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0302)
|
| 63 |
+
|
| 64 |
+
//
|
| 65 |
+
// A valid configuration has not been loaded
|
| 66 |
+
//
|
| 67 |
+
|
| 68 |
+
#define FHCFG_E_NO_VALID_CONFIGURATION_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0303)
|
| 69 |
+
|
| 70 |
+
//
|
| 71 |
+
// Target is not connected
|
| 72 |
+
//
|
| 73 |
+
|
| 74 |
+
#define FHCFG_E_TARGET_NOT_CONNECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0304)
|
| 75 |
+
|
| 76 |
+
//
|
| 77 |
+
// Configuration has been loaded previously
|
| 78 |
+
//
|
| 79 |
+
|
| 80 |
+
#define FHCFG_E_CONFIGURATION_PREVIOUSLY_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0305)
|
| 81 |
+
|
| 82 |
+
//
|
| 83 |
+
// Default target verification failed
|
| 84 |
+
//
|
| 85 |
+
|
| 86 |
+
#define FHCFG_E_TARGET_VERIFICATION_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0306)
|
| 87 |
+
|
| 88 |
+
//
|
| 89 |
+
// Target is not configured
|
| 90 |
+
//
|
| 91 |
+
|
| 92 |
+
#define FHCFG_E_TARGET_NOT_CONFIGURED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0307)
|
| 93 |
+
|
| 94 |
+
//
|
| 95 |
+
// Target doesn't have enough free space
|
| 96 |
+
//
|
| 97 |
+
|
| 98 |
+
#define FHCFG_E_TARGET_NOT_ENOUGH_FREE_SPACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0308)
|
| 99 |
+
|
| 100 |
+
//
|
| 101 |
+
// Target cannot be used for File History
|
| 102 |
+
//
|
| 103 |
+
|
| 104 |
+
#define FHCFG_E_TARGET_CANNOT_BE_USED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0309)
|
| 105 |
+
|
| 106 |
+
//
|
| 107 |
+
// Rehydration can't be performed in the current configuration state
|
| 108 |
+
//
|
| 109 |
+
|
| 110 |
+
#define FHCFG_E_INVALID_REHYDRATION_STATE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x30A)
|
| 111 |
+
|
| 112 |
+
//
|
| 113 |
+
// Changing target recommendation is not allowed
|
| 114 |
+
//
|
| 115 |
+
|
| 116 |
+
#define FHCFG_E_RECOMMENDATION_CHANGE_NOT_ALLOWED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0310)
|
| 117 |
+
|
| 118 |
+
//
|
| 119 |
+
// The target was rehydrated on another PC.
|
| 120 |
+
//
|
| 121 |
+
|
| 122 |
+
#define FHCFG_E_TARGET_REHYDRATED_ELSEWHERE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0311)
|
| 123 |
+
|
| 124 |
+
//
|
| 125 |
+
// The legacy backup target was not supported by FileHistory
|
| 126 |
+
//
|
| 127 |
+
|
| 128 |
+
#define FHCFG_E_LEGACY_TARGET_UNSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0312)
|
| 129 |
+
|
| 130 |
+
//
|
| 131 |
+
// The validation result of the legacy backup target was not supported
|
| 132 |
+
//
|
| 133 |
+
|
| 134 |
+
#define FHCFG_E_LEGACY_TARGET_VALIDATION_UNSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0313)
|
| 135 |
+
|
| 136 |
+
//
|
| 137 |
+
// The legacy backup user was fully excluded from backups
|
| 138 |
+
//
|
| 139 |
+
|
| 140 |
+
#define FHCFG_E_LEGACY_BACKUP_USER_EXCLUDED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0314)
|
| 141 |
+
|
| 142 |
+
//
|
| 143 |
+
// The legacy backup was not found
|
| 144 |
+
//
|
| 145 |
+
|
| 146 |
+
#define FHCFG_E_LEGACY_BACKUP_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0315)
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
///////////////////////////////////////////////////////////////////////
|
| 150 |
+
//
|
| 151 |
+
// Error codes for the File History Service. (0x0600 - 0x06ff)
|
| 152 |
+
//
|
| 153 |
+
///////////////////////////////////////////////////////////////////////
|
| 154 |
+
|
| 155 |
+
//
|
| 156 |
+
// Backups are blocked for the given configuration
|
| 157 |
+
//
|
| 158 |
+
|
| 159 |
+
#define FHSVC_E_BACKUP_BLOCKED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0600)
|
| 160 |
+
|
| 161 |
+
//
|
| 162 |
+
// File History is not configured for the user
|
| 163 |
+
//
|
| 164 |
+
|
| 165 |
+
#define FHSVC_E_NOT_CONFIGURED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0601)
|
| 166 |
+
|
| 167 |
+
//
|
| 168 |
+
// The specified configuration is disabled by the user
|
| 169 |
+
//
|
| 170 |
+
|
| 171 |
+
#define FHSVC_E_CONFIG_DISABLED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0602)
|
| 172 |
+
|
| 173 |
+
//
|
| 174 |
+
// The specified configuration is disabled via Group Policy
|
| 175 |
+
//
|
| 176 |
+
|
| 177 |
+
#define FHSVC_E_CONFIG_DISABLED_GP MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0603)
|
| 178 |
+
|
| 179 |
+
//
|
| 180 |
+
// There is a fatal error with the specified configuration, backup cannot be even started
|
| 181 |
+
//
|
| 182 |
+
|
| 183 |
+
#define FHSVC_E_FATAL_CONFIG_ERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0604)
|
| 184 |
+
|
| 185 |
+
//
|
| 186 |
+
// The specified configuration is undergoing rehydration
|
| 187 |
+
//
|
| 188 |
+
|
| 189 |
+
#define FHSVC_E_CONFIG_REHYDRATING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0605)
|
| 190 |
+
|
| 191 |
+
#endif // NTDDI_VERSION >= NTDDI_WIN8
|
| 192 |
+
|
| 193 |
+
#ifdef __cplusplus
|
| 194 |
+
}
|
| 195 |
+
#endif
|
| 196 |
+
|
| 197 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 198 |
+
#pragma endregion
|
| 199 |
+
|
| 200 |
+
#endif // _FHERRORS_
|
| 201 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhStatus.h
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Microsoft Windows - File History
|
| 4 |
+
Copyright (c) 2010 Microsoft Corporation. All Rights Reserved.
|
| 5 |
+
|
| 6 |
+
Module Name:
|
| 7 |
+
|
| 8 |
+
FhStatus.h
|
| 9 |
+
|
| 10 |
+
Abstract:
|
| 11 |
+
|
| 12 |
+
This module contains the definitions of codes reflecting the
|
| 13 |
+
File History status of a user account.
|
| 14 |
+
|
| 15 |
+
Environment:
|
| 16 |
+
|
| 17 |
+
User mode.
|
| 18 |
+
|
| 19 |
+
--*/
|
| 20 |
+
|
| 21 |
+
#ifndef _FHSTATUS_
|
| 22 |
+
#define _FHSTATUS_
|
| 23 |
+
|
| 24 |
+
#if _MSC_VER > 1000
|
| 25 |
+
#pragma once
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#include <winapifamily.h>
|
| 29 |
+
|
| 30 |
+
#pragma region Desktop Family
|
| 31 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 32 |
+
|
| 33 |
+
#ifdef __cplusplus
|
| 34 |
+
extern "C" {
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
#if NTDDI_VERSION >= NTDDI_WIN8
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
#define FH_STATE_NOT_TRACKED 0x00
|
| 41 |
+
#define FH_STATE_OFF 0x01
|
| 42 |
+
#define FH_STATE_DISABLED_BY_GP 0x02
|
| 43 |
+
#define FH_STATE_FATAL_CONFIG_ERROR 0x03
|
| 44 |
+
#define FH_STATE_MIGRATING 0x04
|
| 45 |
+
#define FH_STATE_REHYDRATING 0x05
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
#define FH_STATE_TARGET_FS_LIMITATION 0x0D
|
| 49 |
+
#define FH_STATE_TARGET_ACCESS_DENIED 0x0E
|
| 50 |
+
#define FH_STATE_TARGET_VOLUME_DIRTY 0x0F
|
| 51 |
+
#define FH_STATE_TARGET_FULL_RETENTION_MAX 0x10
|
| 52 |
+
#define FH_STATE_TARGET_FULL 0x11
|
| 53 |
+
#define FH_STATE_STAGING_FULL 0x12
|
| 54 |
+
#define FH_STATE_TARGET_LOW_SPACE_RETENTION_MAX 0x13
|
| 55 |
+
#define FH_STATE_TARGET_LOW_SPACE 0x14
|
| 56 |
+
#define FH_STATE_TARGET_ABSENT 0x15
|
| 57 |
+
#define FH_STATE_TOO_MUCH_BEHIND 0xF0
|
| 58 |
+
#define FH_STATE_NO_ERROR 0xFF
|
| 59 |
+
|
| 60 |
+
// Indicates that File History is in a depreciated state
|
| 61 |
+
// where backup is not supported. This is only applicable
|
| 62 |
+
// if the user has an existing backup configured.
|
| 63 |
+
#define FH_STATE_BACKUP_NOT_SUPPORTED 0x810
|
| 64 |
+
|
| 65 |
+
#define FH_STATE_RUNNING 0x100
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
#endif // NTDDI_VERSION >= NTDDI_WIN8
|
| 69 |
+
|
| 70 |
+
#ifdef __cplusplus
|
| 71 |
+
}
|
| 72 |
+
#endif
|
| 73 |
+
|
| 74 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 75 |
+
#pragma endregion
|
| 76 |
+
|
| 77 |
+
#endif // _FHSTATUS_
|
| 78 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FhSvcCtl.h
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Microsoft Windows - File History
|
| 4 |
+
Copyright (c) Microsoft Corporation. All Rights Reserved.
|
| 5 |
+
|
| 6 |
+
Module Name:
|
| 7 |
+
|
| 8 |
+
FhSvcCtl.h
|
| 9 |
+
|
| 10 |
+
Abstract:
|
| 11 |
+
|
| 12 |
+
This module contains the definitions of the API provided
|
| 13 |
+
by the File History Service Control Library.
|
| 14 |
+
|
| 15 |
+
Environment:
|
| 16 |
+
|
| 17 |
+
User mode.
|
| 18 |
+
|
| 19 |
+
--*/
|
| 20 |
+
|
| 21 |
+
#ifndef _FHSVCCTL_
|
| 22 |
+
#define _FHSVCCTL_
|
| 23 |
+
|
| 24 |
+
#if _MSC_VER > 1000
|
| 25 |
+
#pragma once
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#include <winapifamily.h>
|
| 29 |
+
|
| 30 |
+
#ifdef __cplusplus
|
| 31 |
+
extern "C" {
|
| 32 |
+
#endif
|
| 33 |
+
|
| 34 |
+
#pragma region Desktop Family
|
| 35 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 36 |
+
|
| 37 |
+
#if NTDDI_VERSION >= NTDDI_WIN8
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
// Backup stop reason
|
| 41 |
+
// This will be used for telemetry purposes
|
| 42 |
+
typedef enum {
|
| 43 |
+
BackupInvalidStopReason = 0,
|
| 44 |
+
BackupLimitUserBusyMachineOnAC = 1, // Backup quota reached for user busy and machine on AC condition (100 MB)
|
| 45 |
+
BackupLimitUserIdleMachineOnDC = 2, // Backup quota reached for user idle and machine on DC condition (75 MB)
|
| 46 |
+
BackupLimitUserBusyMachineOnDC = 3, // Backup quota reached for user busy and machine on DC condition (50 MB)
|
| 47 |
+
BackupCancelled = 4 // Backup cancelled by the user initiated action
|
| 48 |
+
} FhBackupStopReason;
|
| 49 |
+
|
| 50 |
+
DECLARE_HANDLE (FH_SERVICE_PIPE_HANDLE);
|
| 51 |
+
|
| 52 |
+
__declspec(deprecated("FhServiceOpenPipe is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 53 |
+
HRESULT
|
| 54 |
+
WINAPI
|
| 55 |
+
FhServiceOpenPipe(
|
| 56 |
+
_In_ BOOL StartServiceIfStopped,
|
| 57 |
+
_Out_ FH_SERVICE_PIPE_HANDLE *Pipe
|
| 58 |
+
);
|
| 59 |
+
|
| 60 |
+
__declspec(deprecated("FhServiceClosePipe is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 61 |
+
HRESULT
|
| 62 |
+
WINAPI
|
| 63 |
+
FhServiceClosePipe(
|
| 64 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe
|
| 65 |
+
);
|
| 66 |
+
|
| 67 |
+
__declspec(deprecated("FhServiceStartBackup is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 68 |
+
HRESULT
|
| 69 |
+
WINAPI
|
| 70 |
+
FhServiceStartBackup(
|
| 71 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe,
|
| 72 |
+
_In_ BOOL LowPriorityIo
|
| 73 |
+
);
|
| 74 |
+
|
| 75 |
+
__declspec(deprecated("FhServiceStopBackup is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 76 |
+
HRESULT
|
| 77 |
+
WINAPI
|
| 78 |
+
FhServiceStopBackup(
|
| 79 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe,
|
| 80 |
+
_In_ BOOL StopTracking
|
| 81 |
+
);
|
| 82 |
+
|
| 83 |
+
__declspec(deprecated("FhServiceReloadConfiguration is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 84 |
+
HRESULT
|
| 85 |
+
WINAPI
|
| 86 |
+
FhServiceReloadConfiguration(
|
| 87 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe
|
| 88 |
+
);
|
| 89 |
+
|
| 90 |
+
__declspec(deprecated("FhServiceBlockBackup is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 91 |
+
HRESULT
|
| 92 |
+
WINAPI
|
| 93 |
+
FhServiceBlockBackup(
|
| 94 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe
|
| 95 |
+
);
|
| 96 |
+
|
| 97 |
+
__declspec(deprecated("FhServiceUnblockBackup is deprecated and might not work on all platforms. For more info, see MSDN."))
|
| 98 |
+
HRESULT
|
| 99 |
+
WINAPI
|
| 100 |
+
FhServiceUnblockBackup(
|
| 101 |
+
_In_ FH_SERVICE_PIPE_HANDLE Pipe
|
| 102 |
+
);
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
#endif // NTDDI_VERSION >= NTDDI_WIN8
|
| 106 |
+
|
| 107 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 108 |
+
#pragma endregion
|
| 109 |
+
|
| 110 |
+
#ifdef __cplusplus
|
| 111 |
+
}
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#endif // _FHSVCCTL_
|
| 115 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FileHC.h
ADDED
|
@@ -0,0 +1,904 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This file defines the public interfaces for issuing async
|
| 12 |
+
Reads/Writes to a file using the fcache wrapper library.
|
| 13 |
+
|
| 14 |
+
--*/
|
| 15 |
+
|
| 16 |
+
#ifndef _FILEHC_H_
|
| 17 |
+
#define _FILEHC_H_
|
| 18 |
+
#include <winapifamily.h>
|
| 19 |
+
|
| 20 |
+
#pragma region Desktop Family
|
| 21 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
#ifdef __cplusplus
|
| 25 |
+
extern "C" {
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
struct FIO_CONTEXT;
|
| 29 |
+
struct FH_OVERLAPPED;
|
| 30 |
+
|
| 31 |
+
typedef VOID
|
| 32 |
+
(*PFN_IO_COMPLETION)(
|
| 33 |
+
IN struct FIO_CONTEXT* pContext,
|
| 34 |
+
IN struct FH_OVERLAPPED* lpo,
|
| 35 |
+
IN DWORD cb,
|
| 36 |
+
IN DWORD dwCompletionStatus
|
| 37 |
+
);
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
struct FH_OVERLAPPED {
|
| 42 |
+
/*++
|
| 43 |
+
|
| 44 |
+
This structure defines the extended OVERLAPPED structure
|
| 45 |
+
used by the File IO layer implemented in this module.
|
| 46 |
+
|
| 47 |
+
The first 5 elements of this structure are identical to
|
| 48 |
+
NT's OVERLAPPED structure and have the exact same semantics.
|
| 49 |
+
|
| 50 |
+
The final additional parameter is a pointer to a
|
| 51 |
+
function that will be called to complete the IO.
|
| 52 |
+
|
| 53 |
+
--*/
|
| 54 |
+
UINT_PTR Internal ;
|
| 55 |
+
UINT_PTR InternalHigh ;
|
| 56 |
+
DWORD Offset ;
|
| 57 |
+
DWORD OffsetHigh ;
|
| 58 |
+
HANDLE hEvent ;
|
| 59 |
+
PFN_IO_COMPLETION pfnCompletion ;
|
| 60 |
+
UINT_PTR Reserved1 ;
|
| 61 |
+
UINT_PTR Reserved2 ;
|
| 62 |
+
UINT_PTR Reserved3 ;
|
| 63 |
+
UINT_PTR Reserved4 ;
|
| 64 |
+
} ;
|
| 65 |
+
|
| 66 |
+
typedef struct FH_OVERLAPPED* PFH_OVERLAPPED ;
|
| 67 |
+
|
| 68 |
+
struct FIO_CONTEXT {
|
| 69 |
+
/*++
|
| 70 |
+
|
| 71 |
+
This structure defines the context object
|
| 72 |
+
that is used to represent file handles.
|
| 73 |
+
|
| 74 |
+
--*/
|
| 75 |
+
//
|
| 76 |
+
// Temporary hack - mailmsg object assumes it can put a NULL in us !
|
| 77 |
+
//
|
| 78 |
+
DWORD m_dwTempHack ;
|
| 79 |
+
|
| 80 |
+
//
|
| 81 |
+
// The context signature !
|
| 82 |
+
//
|
| 83 |
+
DWORD m_dwSignature ;
|
| 84 |
+
|
| 85 |
+
//
|
| 86 |
+
// The users file handle !
|
| 87 |
+
//
|
| 88 |
+
HANDLE m_hFile ;
|
| 89 |
+
|
| 90 |
+
//
|
| 91 |
+
// The offset to back fill Lines header - nntp aware only
|
| 92 |
+
//
|
| 93 |
+
DWORD m_dwLinesOffset;
|
| 94 |
+
|
| 95 |
+
//
|
| 96 |
+
// Header length - nntp aware only
|
| 97 |
+
//
|
| 98 |
+
DWORD m_dwHeaderLength;
|
| 99 |
+
} ;
|
| 100 |
+
|
| 101 |
+
typedef struct FIO_CONTEXT* PFIO_CONTEXT ;
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
#ifdef _FILEHC_IMPLEMENTATION_
|
| 105 |
+
#define FILEHC_EXPORT __declspec( dllexport )
|
| 106 |
+
#else
|
| 107 |
+
#define FILEHC_EXPORT __declspec( dllimport )
|
| 108 |
+
#endif
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
//
|
| 112 |
+
// Initialize the DLL for Async IO -
|
| 113 |
+
// This is a counting initialize - for each call to FIOInitialize()
|
| 114 |
+
// there should be a matching call to FIOTerminate
|
| 115 |
+
//
|
| 116 |
+
FILEHC_EXPORT
|
| 117 |
+
BOOL __stdcall
|
| 118 |
+
FIOInitialize(
|
| 119 |
+
IN DWORD dwFlags
|
| 120 |
+
);
|
| 121 |
+
|
| 122 |
+
//
|
| 123 |
+
// Terminate the DLL's support for Async IO !
|
| 124 |
+
//
|
| 125 |
+
FILEHC_EXPORT
|
| 126 |
+
BOOL __stdcall
|
| 127 |
+
FIOTerminate(
|
| 128 |
+
VOID
|
| 129 |
+
);
|
| 130 |
+
|
| 131 |
+
//
|
| 132 |
+
// Do an async read against the File !
|
| 133 |
+
//
|
| 134 |
+
FILEHC_EXPORT
|
| 135 |
+
BOOL __stdcall
|
| 136 |
+
FIOReadFile(
|
| 137 |
+
IN PFIO_CONTEXT pContext,
|
| 138 |
+
_In_reads_bytes_(BytesToRead) IN LPVOID lpBuffer,
|
| 139 |
+
IN DWORD BytesToRead,
|
| 140 |
+
_Inout_ IN struct FH_OVERLAPPED * lpo
|
| 141 |
+
);
|
| 142 |
+
|
| 143 |
+
//
|
| 144 |
+
// Do an async read against the file - pass extra args
|
| 145 |
+
// so that if the FIO_CONTEXT is doing dot stuffing for the user
|
| 146 |
+
// it can do so efficiently !
|
| 147 |
+
//
|
| 148 |
+
FILEHC_EXPORT
|
| 149 |
+
BOOL __stdcall
|
| 150 |
+
FIOReadFileEx(
|
| 151 |
+
IN PFIO_CONTEXT pContext,
|
| 152 |
+
_In_reads_bytes_(BytesToRead) IN LPVOID lpBuffer,
|
| 153 |
+
IN DWORD BytesToRead,
|
| 154 |
+
IN DWORD BytesAvailable, // must be >= BytesToWrite - number of bytes I can mess with.
|
| 155 |
+
_Inout_ IN struct FH_OVERLAPPED * lpo,
|
| 156 |
+
IN BOOL fFinalWrite, // Is this the final write ?
|
| 157 |
+
IN BOOL fIncludeTerminator // if TRUE contains CRLF.CRLF terminator which shouldn't be stuffed
|
| 158 |
+
);
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
//
|
| 162 |
+
// Do an async write against the file !
|
| 163 |
+
//
|
| 164 |
+
FILEHC_EXPORT
|
| 165 |
+
BOOL __stdcall
|
| 166 |
+
FIOWriteFile(
|
| 167 |
+
IN PFIO_CONTEXT pContext,
|
| 168 |
+
_Inout_updates_bytes_(BytesToWrite) IN LPCVOID lpBuffer,
|
| 169 |
+
IN DWORD BytesToWrite,
|
| 170 |
+
_Inout_ IN struct FH_OVERLAPPED * lpo
|
| 171 |
+
);
|
| 172 |
+
|
| 173 |
+
//
|
| 174 |
+
// Do an async write against the file - pass extra args
|
| 175 |
+
// so that if the FIO_CONTEXT is doing dot stuffing for the user
|
| 176 |
+
// it can do so efficiently !
|
| 177 |
+
//
|
| 178 |
+
FILEHC_EXPORT
|
| 179 |
+
BOOL __stdcall
|
| 180 |
+
FIOWriteFileEx(
|
| 181 |
+
IN PFIO_CONTEXT pContext,
|
| 182 |
+
_Inout_updates_bytes_(BytesAvailable) IN LPVOID lpBuffer,
|
| 183 |
+
IN DWORD BytesToWrite,
|
| 184 |
+
IN DWORD BytesAvailable, // must be >= BytesToWrite - number of bytes I can mess with.
|
| 185 |
+
_Inout_ IN struct FH_OVERLAPPED* lpo,
|
| 186 |
+
IN BOOL fFinalWrite, // Is this the final write ?
|
| 187 |
+
IN BOOL fIncludeTerminator // if TRUE contains CRLF.CRLF terminator which shouldn't be stuffed
|
| 188 |
+
) ;
|
| 189 |
+
|
| 190 |
+
//
|
| 191 |
+
// Callback functions which create things in the cache !
|
| 192 |
+
//
|
| 193 |
+
// NOTE: this is equivalent to FCACHE_RICHCREATE_CALLBACK where
|
| 194 |
+
//
|
| 195 |
+
// pfDidWeScanIt - returns FALSE
|
| 196 |
+
// pfIsStuffed - return FALSE
|
| 197 |
+
// pfStoredWithDots - return FALSE
|
| 198 |
+
//
|
| 199 |
+
typedef
|
| 200 |
+
HANDLE
|
| 201 |
+
(__stdcall *FCACHE_CREATE_CALLBACK) (
|
| 202 |
+
IN LPSTR lpstrName,
|
| 203 |
+
IN LPVOID lpvData,
|
| 204 |
+
OUT DWORD* cbFileSize,
|
| 205 |
+
OUT DWORD* cbFileSizeHigh
|
| 206 |
+
) ;
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
//
|
| 210 |
+
// Callback functions which create things in the cache !
|
| 211 |
+
//
|
| 212 |
+
// This function will be called by CacheRichCreateFile().
|
| 213 |
+
//
|
| 214 |
+
// lpstrName - the name of the file
|
| 215 |
+
// lpvData - User provided data, provided to CacheRichCreateFile
|
| 216 |
+
// cbFileSize - The function should return the size of the file through this
|
| 217 |
+
// cbFileSizeHigh - place to return the High DWORD of the file size
|
| 218 |
+
// pfDidWeScanIt - if THIS is true then at some point the created file has been
|
| 219 |
+
// scanned for DOTs appearing at the beginning of lines
|
| 220 |
+
// pfIsStuffed - This is only meaningfull if pfDidWeScanIt==TRUE, in which case
|
| 221 |
+
// if this is TRUE this indicates that there are DOTs at the beginning of lines
|
| 222 |
+
// pfStoredWithDots - If this is TRUE then it indicates that any DOTs that appear
|
| 223 |
+
// at the beginning of lines are stored with an extra dot as required in NNTP,
|
| 224 |
+
// SMTP and POP3 protocols. if this is FALSE then the message is stored without
|
| 225 |
+
// DOT stuffing.
|
| 226 |
+
//
|
| 227 |
+
typedef
|
| 228 |
+
HANDLE
|
| 229 |
+
(__stdcall *FCACHE_RICHCREATE_CALLBACK) (
|
| 230 |
+
IN LPSTR lpstrName,
|
| 231 |
+
IN LPVOID lpvData,
|
| 232 |
+
OUT DWORD* cbFileSize,
|
| 233 |
+
OUT DWORD* cbFileSizeHigh,
|
| 234 |
+
OUT BOOL* pfDidWeScanIt,
|
| 235 |
+
OUT BOOL* pfIsStuffed,
|
| 236 |
+
OUT BOOL* pfStoredWithDots,
|
| 237 |
+
OUT BOOL* pfStoredWithTerminatingDot
|
| 238 |
+
) ;
|
| 239 |
+
|
| 240 |
+
//
|
| 241 |
+
// Initialize the File Handle Cache -
|
| 242 |
+
//
|
| 243 |
+
// NOTE : this will automatically initialize the DLL for async
|
| 244 |
+
// IO as well !
|
| 245 |
+
//
|
| 246 |
+
FILEHC_EXPORT
|
| 247 |
+
BOOL __stdcall
|
| 248 |
+
InitializeCache() ;
|
| 249 |
+
|
| 250 |
+
//
|
| 251 |
+
// Terminate the cache !
|
| 252 |
+
//
|
| 253 |
+
// NOTE : this will terminate the DLL for async IO as well !
|
| 254 |
+
//
|
| 255 |
+
FILEHC_EXPORT
|
| 256 |
+
BOOL __stdcall
|
| 257 |
+
TerminateCache() ;
|
| 258 |
+
|
| 259 |
+
//
|
| 260 |
+
// Associate a file with an async context !
|
| 261 |
+
//
|
| 262 |
+
FILEHC_EXPORT
|
| 263 |
+
PFIO_CONTEXT __stdcall
|
| 264 |
+
AssociateFile( _In_ HANDLE hFile ) ;
|
| 265 |
+
|
| 266 |
+
//
|
| 267 |
+
// This allows the user to specify whether file stores content with extra DOTS
|
| 268 |
+
// added for RFC 822 protocols (i.e. NNTP and SMTP DATA commands).
|
| 269 |
+
//
|
| 270 |
+
// NOTE: AssociateFile() is the same as AssociateFileEx( hFile, FALSE ) ;
|
| 271 |
+
//
|
| 272 |
+
// hFile - The file that contains message content, or in which we will write message content
|
| 273 |
+
// fStoreWithDots - if TRUE then each period or DOT in the file which starts a line
|
| 274 |
+
// but is NOT part of the terminating CRLF.CRLF will be stored with an extra dot
|
| 275 |
+
// adjacent to it. This is the on the wire format for NNTP for instance.
|
| 276 |
+
//
|
| 277 |
+
FILEHC_EXPORT
|
| 278 |
+
PFIO_CONTEXT __stdcall
|
| 279 |
+
AssociateFileEx( _In_ HANDLE hFile,
|
| 280 |
+
BOOL fStoreWithDots,
|
| 281 |
+
BOOL fStoredWithTerminatingDot
|
| 282 |
+
) ;
|
| 283 |
+
|
| 284 |
+
//
|
| 285 |
+
// Add a reference to a context -
|
| 286 |
+
//
|
| 287 |
+
// Each call to AddRefContext() must be matched by a corresponding
|
| 288 |
+
// call to ReleaseContext(). Both AssociateFile and CacheCreateFile()
|
| 289 |
+
// also add a single reference which must be matched by a call to ReleaseContext().
|
| 290 |
+
//
|
| 291 |
+
FILEHC_EXPORT
|
| 292 |
+
void __stdcall
|
| 293 |
+
AddRefContext( PFIO_CONTEXT ) ;
|
| 294 |
+
|
| 295 |
+
//
|
| 296 |
+
// Release a Context !
|
| 297 |
+
//
|
| 298 |
+
// FIO_CONTEXT's are reference counted - the user must call
|
| 299 |
+
// this for each successfull call to CacheCreateFile(), and
|
| 300 |
+
// each call to InsertFile() where fKeepReference is TRUE
|
| 301 |
+
//
|
| 302 |
+
FILEHC_EXPORT
|
| 303 |
+
void __stdcall
|
| 304 |
+
ReleaseContext( PFIO_CONTEXT ) ;
|
| 305 |
+
|
| 306 |
+
//
|
| 307 |
+
// Close a handle associated with a non-cached FIO_CONTEXT
|
| 308 |
+
//
|
| 309 |
+
// This is used to Close the file handle within a context.
|
| 310 |
+
// This only succeeds if the FIO_CONTEXT is not cached !
|
| 311 |
+
//
|
| 312 |
+
FILEHC_EXPORT
|
| 313 |
+
BOOL __stdcall
|
| 314 |
+
CloseNonCachedFile( PFIO_CONTEXT ) ;
|
| 315 |
+
|
| 316 |
+
//
|
| 317 |
+
// Create a file in the cache, or find an existing one !
|
| 318 |
+
//
|
| 319 |
+
// If the file is not in the cache, the cache will call
|
| 320 |
+
// pfnCallBack with lpv to do the actual work of calling
|
| 321 |
+
// CreateFile().
|
| 322 |
+
//
|
| 323 |
+
FILEHC_EXPORT
|
| 324 |
+
struct FIO_CONTEXT* __stdcall
|
| 325 |
+
CacheCreateFile( _In_ IN LPSTR lpstrName,
|
| 326 |
+
IN FCACHE_CREATE_CALLBACK pfnCallBack,
|
| 327 |
+
_In_ IN LPVOID lpv,
|
| 328 |
+
IN BOOL fAsyncContext
|
| 329 |
+
) ;
|
| 330 |
+
|
| 331 |
+
//
|
| 332 |
+
// Create a file in the cache or find an existing one,
|
| 333 |
+
// if we create the file we can add properties onto it in
|
| 334 |
+
// the cache !
|
| 335 |
+
//
|
| 336 |
+
FILEHC_EXPORT
|
| 337 |
+
struct FIO_CONTEXT* __stdcall
|
| 338 |
+
CacheRichCreateFile( _In_ IN LPSTR lpstrName,
|
| 339 |
+
IN FCACHE_RICHCREATE_CALLBACK pfnCallBack,
|
| 340 |
+
IN LPVOID lpv,
|
| 341 |
+
IN BOOL fAsyncContext
|
| 342 |
+
) ;
|
| 343 |
+
|
| 344 |
+
//
|
| 345 |
+
// This function allows a user to remove all files with the specified
|
| 346 |
+
// Name from the cache. if fAllPrefixes is TRUE, we will remove all files
|
| 347 |
+
// where the Name matches the beginning of the path !
|
| 348 |
+
// If fAllPrefixes is FALSE then we will remove only the one file which
|
| 349 |
+
// exactly matches lpstrName !
|
| 350 |
+
//
|
| 351 |
+
FILEHC_EXPORT
|
| 352 |
+
void __stdcall
|
| 353 |
+
CacheRemoveFiles( _In_ IN LPSTR lpstrName,
|
| 354 |
+
IN BOOL fAllPrefixes
|
| 355 |
+
) ;
|
| 356 |
+
//
|
| 357 |
+
// Insert the file into the cache !
|
| 358 |
+
//
|
| 359 |
+
// This function will add the file handle in the FIO_CONTEXT
|
| 360 |
+
// to the cache. All searches by lpstrName will find this
|
| 361 |
+
// item untill it expires from the cache.
|
| 362 |
+
//
|
| 363 |
+
// If fKeepReference is TRUE then the user must make a call to
|
| 364 |
+
// ReleaseContext() for the inserted FIO_CONTEXT !
|
| 365 |
+
//
|
| 366 |
+
FILEHC_EXPORT
|
| 367 |
+
BOOL __stdcall
|
| 368 |
+
InsertFile( _In_ IN LPSTR lpstrName,
|
| 369 |
+
IN struct FIO_CONTEXT* pContext,
|
| 370 |
+
IN BOOL fKeepReference
|
| 371 |
+
) ;
|
| 372 |
+
|
| 373 |
+
//
|
| 374 |
+
// Report the file size that we've cached with the handle
|
| 375 |
+
//
|
| 376 |
+
FILEHC_EXPORT
|
| 377 |
+
DWORD __stdcall
|
| 378 |
+
GetFileSizeFromContext( IN struct FIO_CONTEXT* pContext,
|
| 379 |
+
_Out_ OUT DWORD* pcbFileSizeHigh
|
| 380 |
+
) ;
|
| 381 |
+
|
| 382 |
+
//----------------------------------------------------------------------
|
| 383 |
+
// NAME CACHE NAME CACHE NAME CACHE -
|
| 384 |
+
//
|
| 385 |
+
// Name Cache API's
|
| 386 |
+
//
|
| 387 |
+
//
|
| 388 |
+
|
| 389 |
+
//
|
| 390 |
+
// This is the function pointer provided by clients to compare
|
| 391 |
+
// keys. This must be provided on all calls.
|
| 392 |
+
//
|
| 393 |
+
// The function has memcmp() semantics, i.e. it must order the keys
|
| 394 |
+
// consistently, and return <0 if key1 is smaller then key2, ==0 if the
|
| 395 |
+
// keys match and >0 if key1 is greater then key2.
|
| 396 |
+
//
|
| 397 |
+
typedef
|
| 398 |
+
int
|
| 399 |
+
(__stdcall *CACHE_KEY_COMPARE)( IN DWORD cbKey1,
|
| 400 |
+
IN LPBYTE lpbKey1,
|
| 401 |
+
IN DWORD cbKey2,
|
| 402 |
+
IN LPBYTE lpbKey2
|
| 403 |
+
) ;
|
| 404 |
+
|
| 405 |
+
//
|
| 406 |
+
// This is the function provided by clients to compute a hash
|
| 407 |
+
// value on Keys - NOTE: The Cache will provide a hash function
|
| 408 |
+
// IF the user does not, however the internally provided hash
|
| 409 |
+
// function is best only for things that appear to be regular strings.
|
| 410 |
+
//
|
| 411 |
+
typedef
|
| 412 |
+
DWORD
|
| 413 |
+
(__stdcall *CACHE_KEY_HASH)( IN LPBYTE lpbKey,
|
| 414 |
+
IN DWORD cbKey
|
| 415 |
+
) ;
|
| 416 |
+
|
| 417 |
+
//
|
| 418 |
+
// This is the generic callback function that is provided to the
|
| 419 |
+
// cache to help examine items within the cache.
|
| 420 |
+
// The BOOL return value is meaningfull to the Cache API's only
|
| 421 |
+
// on the following calls :
|
| 422 |
+
//
|
| 423 |
+
//
|
| 424 |
+
typedef
|
| 425 |
+
BOOL
|
| 426 |
+
(__stdcall *CACHE_READ_CALLBACK)( IN DWORD cb,
|
| 427 |
+
IN LPBYTE lpb,
|
| 428 |
+
IN LPVOID lpvContext
|
| 429 |
+
) ;
|
| 430 |
+
|
| 431 |
+
//
|
| 432 |
+
// This is a callback that is called whenever we destroy an entry in
|
| 433 |
+
// the name cache - this is called once for both key and data components,
|
| 434 |
+
// and gives the client a chance to track any relationships
|
| 435 |
+
//
|
| 436 |
+
// NOTE : if the client does not associate
|
| 437 |
+
// data with the name, the function will only be called for the Key data.
|
| 438 |
+
//
|
| 439 |
+
typedef
|
| 440 |
+
void
|
| 441 |
+
(__stdcall *CACHE_DESTROY_CALLBACK)( IN DWORD cb,
|
| 442 |
+
IN LPBYTE lpb
|
| 443 |
+
) ;
|
| 444 |
+
|
| 445 |
+
//
|
| 446 |
+
// This is a callback this is called whenever we evaluate a security descriptor.
|
| 447 |
+
// If it is not provided we will call the standard NT AccessCheck() call !
|
| 448 |
+
//
|
| 449 |
+
// The function has the same signature as AccessCheck, however there are arguments
|
| 450 |
+
// we don't use - PrivilegeSet will always be NULL and PrivilegeSetLength will always be 0 !
|
| 451 |
+
//
|
| 452 |
+
typedef
|
| 453 |
+
BOOL
|
| 454 |
+
(WINAPI *CACHE_ACCESS_CHECK)( IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
| 455 |
+
IN HANDLE hClientToken,
|
| 456 |
+
IN DWORD dwDesiredAccess,
|
| 457 |
+
IN PGENERIC_MAPPING GenericMapping,
|
| 458 |
+
IN PRIVILEGE_SET* PrivilegeSet,
|
| 459 |
+
IN LPDWORD PrivilegeSetLength,
|
| 460 |
+
IN LPDWORD GrantedAccess,
|
| 461 |
+
IN LPBOOL AccessStatus
|
| 462 |
+
) ;
|
| 463 |
+
|
| 464 |
+
|
| 465 |
+
//
|
| 466 |
+
// This is the externally exposed structure representing a Name Cache -
|
| 467 |
+
// it doesn't contain any fields usefull for a client, but must be passed
|
| 468 |
+
// back into all of the name cache API's
|
| 469 |
+
//
|
| 470 |
+
struct NAME_CACHE_CONTEXT {
|
| 471 |
+
//
|
| 472 |
+
// Signature DWORD ! - user must not touch this !
|
| 473 |
+
//
|
| 474 |
+
DWORD m_dwSignature ;
|
| 475 |
+
} ;
|
| 476 |
+
|
| 477 |
+
typedef struct NAME_CACHE_CONTEXT* PNAME_CACHE_CONTEXT ;
|
| 478 |
+
|
| 479 |
+
//
|
| 480 |
+
// API's for creating/manging NAME CACHE's
|
| 481 |
+
// NOTE : Name Cache's are reference counted, and if this
|
| 482 |
+
// function is called twice with the same name we will
|
| 483 |
+
// Add a reference to an existing Name Cache.
|
| 484 |
+
//
|
| 485 |
+
FILEHC_EXPORT
|
| 486 |
+
PNAME_CACHE_CONTEXT __stdcall
|
| 487 |
+
FindOrCreateNameCache(
|
| 488 |
+
//
|
| 489 |
+
// Must not be NULL ! - this is CASE SENSITVE !
|
| 490 |
+
//
|
| 491 |
+
_In_ LPSTR lpstrName,
|
| 492 |
+
//
|
| 493 |
+
// Must not be NULL !
|
| 494 |
+
//
|
| 495 |
+
_In_ CACHE_KEY_COMPARE pfnKeyCompare,
|
| 496 |
+
//
|
| 497 |
+
// This may be NULL, in which case the cache will provide one !
|
| 498 |
+
//
|
| 499 |
+
CACHE_KEY_HASH pfnKeyHash,
|
| 500 |
+
//
|
| 501 |
+
// The following two function pointers may be NULL !
|
| 502 |
+
//
|
| 503 |
+
CACHE_DESTROY_CALLBACK pfnKeyDestroy,
|
| 504 |
+
CACHE_DESTROY_CALLBACK pfnDataDestroy
|
| 505 |
+
) ;
|
| 506 |
+
|
| 507 |
+
//
|
| 508 |
+
// API's for releasing the NAME CACHE !
|
| 509 |
+
//
|
| 510 |
+
// The caller must guarantee the thread safety of this call - This function must not
|
| 511 |
+
// be called if any other thread is simultanesouly executing within
|
| 512 |
+
// CacheFindContectFromName(), AssociateContextWithName(), AssociateDataWithName(), or InvalidateName()
|
| 513 |
+
//
|
| 514 |
+
FILEHC_EXPORT
|
| 515 |
+
long __stdcall
|
| 516 |
+
ReleaseNameCache(
|
| 517 |
+
//
|
| 518 |
+
// Must not be NULL !
|
| 519 |
+
//
|
| 520 |
+
_Inout_ PNAME_CACHE_CONTEXT pNameCache
|
| 521 |
+
) ;
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
//
|
| 525 |
+
// API's for setting options on the name cache - this can be used to change
|
| 526 |
+
// how Security is evaluated !
|
| 527 |
+
//
|
| 528 |
+
FILEHC_EXPORT
|
| 529 |
+
BOOL __stdcall
|
| 530 |
+
SetNameCacheSecurityFunction(
|
| 531 |
+
//
|
| 532 |
+
// Must not be NULL !
|
| 533 |
+
//
|
| 534 |
+
_Out_opt_ PNAME_CACHE_CONTEXT pNameCache,
|
| 535 |
+
//
|
| 536 |
+
// This is the function pointer that will be used to evaluate security -
|
| 537 |
+
// this may be NULL - if it is we will use the Win32 Access Check !
|
| 538 |
+
//
|
| 539 |
+
CACHE_ACCESS_CHECK pfnAccessCheck
|
| 540 |
+
) ;
|
| 541 |
+
|
| 542 |
+
//
|
| 543 |
+
// Find the FIO_CONTEXT that is associated with some user name.
|
| 544 |
+
//
|
| 545 |
+
// The function returns TRUE if the Name was found in the cache.
|
| 546 |
+
// FALSE if the name was not found in the cache.
|
| 547 |
+
//
|
| 548 |
+
// If the function returns FALSE then the pfnCallback function will not be
|
| 549 |
+
// called.
|
| 550 |
+
//
|
| 551 |
+
// If the function returns TRUE, ppFIOContext may return a NULL pointer,
|
| 552 |
+
// if the user passed a NULL FIO_CONTEXT to AssociateContextWithName() !
|
| 553 |
+
//
|
| 554 |
+
//
|
| 555 |
+
FILEHC_EXPORT
|
| 556 |
+
BOOL __stdcall
|
| 557 |
+
FindContextFromName(
|
| 558 |
+
//
|
| 559 |
+
// The name cache the client wishes to use !
|
| 560 |
+
//
|
| 561 |
+
PNAME_CACHE_CONTEXT pNameCache,
|
| 562 |
+
//
|
| 563 |
+
// User provides arbitrary bytes for Key to the cache item - pfnKeyCompare() used
|
| 564 |
+
// to compare keys !
|
| 565 |
+
//
|
| 566 |
+
_In_reads_bytes_(cbName) IN LPBYTE lpbName,
|
| 567 |
+
_In_ IN DWORD cbName,
|
| 568 |
+
//
|
| 569 |
+
// User provides function which is called with the key once the key comparison
|
| 570 |
+
// matches the key. This lets the user do some extra checking that they're getting
|
| 571 |
+
// what they want.
|
| 572 |
+
//
|
| 573 |
+
IN CACHE_READ_CALLBACK pfnCallback,
|
| 574 |
+
IN LPVOID lpvClientContext,
|
| 575 |
+
//
|
| 576 |
+
// Ask the cache to evaluate the embedded security descriptor
|
| 577 |
+
// if hToken is 0 then we ignore and security descriptor data
|
| 578 |
+
//
|
| 579 |
+
IN HANDLE hToken,
|
| 580 |
+
IN ACCESS_MASK accessMask,
|
| 581 |
+
//
|
| 582 |
+
// We have a separate mechanism for returning the FIO_CONTEXT
|
| 583 |
+
// from the cache.
|
| 584 |
+
//
|
| 585 |
+
OUT struct FIO_CONTEXT** ppContext
|
| 586 |
+
) ;
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
//
|
| 590 |
+
// Find the FIO_CONTEXT that is associated with some user name.
|
| 591 |
+
//
|
| 592 |
+
// The function returns TRUE if the Name was found in the cache.
|
| 593 |
+
// FALSE if the name was not found in the cache.
|
| 594 |
+
//
|
| 595 |
+
// If the function returns FALSE then the pfnCallback function will not be
|
| 596 |
+
// called.
|
| 597 |
+
//
|
| 598 |
+
// If the function returns TRUE, ppFIOContext may return a NULL pointer,
|
| 599 |
+
// if the user passed a NULL FIO_CONTEXT to AssociateContextWithName() !
|
| 600 |
+
//
|
| 601 |
+
//
|
| 602 |
+
FILEHC_EXPORT
|
| 603 |
+
BOOL __stdcall
|
| 604 |
+
FindSyncContextFromName(
|
| 605 |
+
//
|
| 606 |
+
// The name cache the client wishes to use !
|
| 607 |
+
//
|
| 608 |
+
PNAME_CACHE_CONTEXT pNameCache,
|
| 609 |
+
//
|
| 610 |
+
// User provides arbitrary bytes for Key to the cache item - pfnKeyCompare() used
|
| 611 |
+
// to compare keys !
|
| 612 |
+
//
|
| 613 |
+
_In_reads_bytes_(cbName) IN LPBYTE lpbName,
|
| 614 |
+
IN DWORD cbName,
|
| 615 |
+
//
|
| 616 |
+
// User provides function which is called with the key once the key comparison
|
| 617 |
+
// matches the key. This lets the user do some extra checking that they're getting
|
| 618 |
+
// what they want.
|
| 619 |
+
//
|
| 620 |
+
IN CACHE_READ_CALLBACK pfnCallback,
|
| 621 |
+
IN LPVOID lpvClientContext,
|
| 622 |
+
//
|
| 623 |
+
// Ask the cache to evaluate the embedded security descriptor
|
| 624 |
+
// if hToken is 0 then we ignore and security descriptor data
|
| 625 |
+
//
|
| 626 |
+
IN HANDLE hToken,
|
| 627 |
+
IN ACCESS_MASK accessMask,
|
| 628 |
+
//
|
| 629 |
+
// We have a separate mechanism for returning the FIO_CONTEXT
|
| 630 |
+
// from the cache.
|
| 631 |
+
//
|
| 632 |
+
OUT struct FIO_CONTEXT** ppContext
|
| 633 |
+
) ;
|
| 634 |
+
|
| 635 |
+
|
| 636 |
+
//
|
| 637 |
+
// Cache Associate context with name !
|
| 638 |
+
// This insert a Name into the Name cache, that will find the specified FIO_CONTEXT !
|
| 639 |
+
//
|
| 640 |
+
// If the name is already present in the cache, this will fail with GetLastError()==ERROR_DUP_NAME !
|
| 641 |
+
//
|
| 642 |
+
FILEHC_EXPORT
|
| 643 |
+
BOOL __stdcall
|
| 644 |
+
AssociateContextWithName(
|
| 645 |
+
//
|
| 646 |
+
// The name cache the client wishes to use !
|
| 647 |
+
//
|
| 648 |
+
_In_ PNAME_CACHE_CONTEXT pNameCache,
|
| 649 |
+
//
|
| 650 |
+
// User provides arbitrary bytes for the Name of the cache item.
|
| 651 |
+
//
|
| 652 |
+
_In_reads_bytes_(cbName) IN LPBYTE lpbName,
|
| 653 |
+
IN DWORD cbName,
|
| 654 |
+
//
|
| 655 |
+
// User may provide some arbitrary data to assoicate with the name !
|
| 656 |
+
//
|
| 657 |
+
_In_ IN LPBYTE lpbData,
|
| 658 |
+
IN DWORD cbData,
|
| 659 |
+
//
|
| 660 |
+
// User may provide a self relative security descriptor to
|
| 661 |
+
// be associated with the name !
|
| 662 |
+
//
|
| 663 |
+
IN PGENERIC_MAPPING pGenericMapping,
|
| 664 |
+
_In_opt_ IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
| 665 |
+
//
|
| 666 |
+
// User provides the FIO_CONTEXT that the name should reference
|
| 667 |
+
//
|
| 668 |
+
_In_opt_ struct FIO_CONTEXT* pContext,
|
| 669 |
+
//
|
| 670 |
+
// User specifies whether they wish to keep their reference on the FIO_CONTEXT
|
| 671 |
+
//
|
| 672 |
+
BOOL fKeepReference
|
| 673 |
+
) ;
|
| 674 |
+
|
| 675 |
+
//
|
| 676 |
+
// This function allows the user to remove a single name and all associated data
|
| 677 |
+
// from the name cache.
|
| 678 |
+
//
|
| 679 |
+
FILEHC_EXPORT
|
| 680 |
+
BOOL
|
| 681 |
+
__stdcall
|
| 682 |
+
InvalidateName(
|
| 683 |
+
//
|
| 684 |
+
// The name cache the client wishes to use !
|
| 685 |
+
//
|
| 686 |
+
PNAME_CACHE_CONTEXT pNameCache,
|
| 687 |
+
//
|
| 688 |
+
// User provides arbitrary bytes for the Name of the cache item.
|
| 689 |
+
//
|
| 690 |
+
_In_reads_bytes_(cbName) IN LPBYTE lpbName,
|
| 691 |
+
IN DWORD cbName
|
| 692 |
+
) ;
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
//
|
| 696 |
+
// End of Name Cache API's
|
| 697 |
+
//----------------------------------------------------------------------------------
|
| 698 |
+
|
| 699 |
+
//----------------------------------------------------------------------------------
|
| 700 |
+
// DOT STUFFING API's
|
| 701 |
+
//
|
| 702 |
+
|
| 703 |
+
//
|
| 704 |
+
// This function gets an FIO_CONTEXT with the requested state.
|
| 705 |
+
// We may or may not create a new FIO_CONTEXT, if we do create one we'll stick
|
| 706 |
+
// it into the cache so it can be used again !
|
| 707 |
+
// NOTE: if we have to do work, the user has the only reference to the resulting
|
| 708 |
+
// FIO_CONTEXT which will go away when they call ReleaseContext() !
|
| 709 |
+
//
|
| 710 |
+
// pContext - the original FIO_CONTEXT
|
| 711 |
+
// lpstrName - the file name associated with pContext
|
| 712 |
+
// fWantItDotStuffed - if TRUE the resulting FIO_CONTEXT should be dot stuffed !
|
| 713 |
+
// fTerminatorIncluded - if this is TRUE the source FIO_CONTEXT contains a terminating
|
| 714 |
+
// dot that we should be carefull not to stuff !
|
| 715 |
+
//
|
| 716 |
+
// NOTE: We may return the same FIO_CONTEXT as the caller provided - in which case
|
| 717 |
+
// an extra reference has been added that needs to be dropped with ReleaseContext() !
|
| 718 |
+
//
|
| 719 |
+
//
|
| 720 |
+
FILEHC_EXPORT
|
| 721 |
+
struct FIO_CONTEXT* __stdcall
|
| 722 |
+
ProduceDotStuffedContext( IN struct FIO_CONTEXT* pContext,
|
| 723 |
+
_In_ IN LPSTR lpstrName,
|
| 724 |
+
IN BOOL fWantItDotStuffed // if TRUE add dots, if FALSE remove dots
|
| 725 |
+
) ;
|
| 726 |
+
|
| 727 |
+
//
|
| 728 |
+
// This function takes a source FIO_CONTEXT (pContextSource) and copies
|
| 729 |
+
// the content into pContextDestination.
|
| 730 |
+
//
|
| 731 |
+
// The user specifies whether the Destination FIO_CONTEXT should be dot stuffed
|
| 732 |
+
// with fWantItDotStuffed, and whether the source FIO_CONTEXT includes the
|
| 733 |
+
// terminating CRLF.CRLF
|
| 734 |
+
//
|
| 735 |
+
// The out parameter pfModified is TRUE if there were modifications when
|
| 736 |
+
// Source was copied to Destination !
|
| 737 |
+
//
|
| 738 |
+
// The function returns TRUE if successfull, FALSE otherwise !
|
| 739 |
+
//
|
| 740 |
+
FILEHC_EXPORT
|
| 741 |
+
BOOL __stdcall
|
| 742 |
+
ProduceDotStuffedContextInContext(
|
| 743 |
+
IN struct FIO_CONTEXT* pContextSource,
|
| 744 |
+
IN struct FIO_CONTEXT* pContextDestination,
|
| 745 |
+
IN BOOL fWantItDotStuffed,
|
| 746 |
+
_Out_opt_ OUT BOOL* pfModified
|
| 747 |
+
) ;
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
|
| 751 |
+
|
| 752 |
+
//
|
| 753 |
+
// Find out whether the file has a terminating 'CRLF.CRLF' sequence !
|
| 754 |
+
//
|
| 755 |
+
FILEHC_EXPORT
|
| 756 |
+
BOOL __stdcall
|
| 757 |
+
GetIsFileDotTerminated( IN struct FIO_CONTEXT* pContext ) ;
|
| 758 |
+
|
| 759 |
+
//
|
| 760 |
+
// Set whether the file has a terminating 'CRLF.CRLF' sequence !
|
| 761 |
+
//
|
| 762 |
+
FILEHC_EXPORT
|
| 763 |
+
void __stdcall
|
| 764 |
+
SetIsFileDotTerminated( IN struct FIO_CONTEXT* pContext,
|
| 765 |
+
IN BOOL fIsDotTerminated
|
| 766 |
+
) ;
|
| 767 |
+
|
| 768 |
+
//
|
| 769 |
+
// Enable dot stuffing properties on the write path of the file
|
| 770 |
+
// handle cache of this message !
|
| 771 |
+
//
|
| 772 |
+
// if fEnable is FALSE then all dot stuffing behaviour is turned
|
| 773 |
+
// off.
|
| 774 |
+
//
|
| 775 |
+
// if fStripDots is TRUE the File Handle Cache will convert
|
| 776 |
+
// occurrences of "\r\n." to "\r\n" within your message.
|
| 777 |
+
//
|
| 778 |
+
// if fStripDots is FALSE the FileHandle Cache will convert occurrences
|
| 779 |
+
// of "\r\n.." to "\r\n" within your message.
|
| 780 |
+
//
|
| 781 |
+
//
|
| 782 |
+
FILEHC_EXPORT
|
| 783 |
+
BOOL __stdcall
|
| 784 |
+
SetDotStuffingOnWrites( IN struct FIO_CONTEXT* pContext,
|
| 785 |
+
//
|
| 786 |
+
// fEnable == FALSE means ignore fStripDots, and writes are unmodified
|
| 787 |
+
//
|
| 788 |
+
IN BOOL fEnable,
|
| 789 |
+
//
|
| 790 |
+
// fStripDots == TRUE means we remove dots that are dot stuffed,
|
| 791 |
+
// fStripDots == FALSE means that we add dots to make the message dot stuffed
|
| 792 |
+
//
|
| 793 |
+
IN BOOL fStripDots
|
| 794 |
+
) ;
|
| 795 |
+
|
| 796 |
+
#if 0
|
| 797 |
+
//
|
| 798 |
+
// This function temporarily disabled !
|
| 799 |
+
//
|
| 800 |
+
FILEHC_EXPORT
|
| 801 |
+
BOOL __stdcall
|
| 802 |
+
SetDotStuffingOnReads( IN struct FIO_CONTEXT* pContext,
|
| 803 |
+
IN BOOL fEnable,
|
| 804 |
+
IN BOOL fStripDots
|
| 805 |
+
) ;
|
| 806 |
+
#endif
|
| 807 |
+
|
| 808 |
+
//
|
| 809 |
+
// Enable dot scanning properties on the write path
|
| 810 |
+
// of the file handle cache for this file !
|
| 811 |
+
//
|
| 812 |
+
// if fEnable is TRUE the we will examine each write
|
| 813 |
+
// that goes through us to determine whether the
|
| 814 |
+
// message has any occurrences of "\r\n.".
|
| 815 |
+
//
|
| 816 |
+
FILEHC_EXPORT
|
| 817 |
+
BOOL __stdcall
|
| 818 |
+
SetDotScanningOnWrites( IN struct FIO_CONTEXT* pContext,
|
| 819 |
+
IN BOOL fEnable
|
| 820 |
+
) ;
|
| 821 |
+
|
| 822 |
+
//
|
| 823 |
+
//
|
| 824 |
+
// This function should be called when we have finished doing all writes to an FIO_CONTEXT
|
| 825 |
+
// This function should be paired with SetDotStuffingOnWrites() and the fStripDots
|
| 826 |
+
// parameter should be the same as when SetDotStuffingOnWrites() was called.
|
| 827 |
+
//
|
| 828 |
+
// We will update the Dot Stuffing State of the FIO_CONTEXT and discard
|
| 829 |
+
// all dot stuffing memory and stuff that may have been required !
|
| 830 |
+
//
|
| 831 |
+
// If this function call is paired with a call to SetDotScanningOnWrites() fStripDots should be TRUE !
|
| 832 |
+
//
|
| 833 |
+
FILEHC_EXPORT
|
| 834 |
+
void __stdcall
|
| 835 |
+
CompleteDotStuffingOnWrites( IN struct FIO_CONTEXT* pContext,
|
| 836 |
+
IN BOOL fStripDots
|
| 837 |
+
) ;
|
| 838 |
+
|
| 839 |
+
//
|
| 840 |
+
// This will cause us to examine each read for occurrences of
|
| 841 |
+
// "\r\n."
|
| 842 |
+
//
|
| 843 |
+
// NOTE : the user must use ASYNC Reads for this to work - we will assert
|
| 844 |
+
// if the user tries to pend any synchronous reads while we are in this state !
|
| 845 |
+
//
|
| 846 |
+
FILEHC_EXPORT
|
| 847 |
+
BOOL __stdcall
|
| 848 |
+
SetDotScanningOnReads( IN struct FIO_CONTEXT* pContext,
|
| 849 |
+
IN BOOL fEnable
|
| 850 |
+
) ;
|
| 851 |
+
|
| 852 |
+
|
| 853 |
+
//
|
| 854 |
+
// If any of the dot stuffing mechanism our turned on,
|
| 855 |
+
// this will get a count of the number of occurrences/modifications
|
| 856 |
+
// have occurred.
|
| 857 |
+
//
|
| 858 |
+
// if fReads is TRUE we get the count for occurrences on Read's
|
| 859 |
+
// if fReads is FALSE we get the count for occurrences on Write's
|
| 860 |
+
//
|
| 861 |
+
// if dot stuffing was turned off or not enabled somehow then
|
| 862 |
+
// GetDotStuffState() will return FALSE.
|
| 863 |
+
//
|
| 864 |
+
// NOTE: A NULL pfStuffed is not allowed !
|
| 865 |
+
//
|
| 866 |
+
FILEHC_EXPORT
|
| 867 |
+
BOOL __stdcall
|
| 868 |
+
GetDotStuffState( IN struct FIO_CONTEXT* pContext,
|
| 869 |
+
IN BOOL fReads,
|
| 870 |
+
_Inout_ OUT BOOL* pfStuffed,
|
| 871 |
+
_Out_ OUT BOOL* pfStoredWithDots
|
| 872 |
+
) ;
|
| 873 |
+
|
| 874 |
+
//
|
| 875 |
+
// In this case we always assume that the FIO_CONTEXT is not going to be dot stuffed.
|
| 876 |
+
// fRequiresStuffing == TRUE indicates that it SHOULD BE stuffed.
|
| 877 |
+
// fRequiresStuffing == FALSE indicates that the message does not need dot stuffing.
|
| 878 |
+
//
|
| 879 |
+
FILEHC_EXPORT
|
| 880 |
+
void __stdcall
|
| 881 |
+
SetDotStuffState( IN struct FIO_CONTEXT* pContext,
|
| 882 |
+
//
|
| 883 |
+
// fIsStuffed is only relevant when fKnown == TRUE
|
| 884 |
+
//
|
| 885 |
+
IN BOOL fKnown, // We do know the dot stuff state
|
| 886 |
+
//
|
| 887 |
+
// if fKnown is TRUE then fIsStuffed is meaningfull, when thats the case
|
| 888 |
+
// if fIsStuffed is TRUE then the message
|
| 889 |
+
//
|
| 890 |
+
IN BOOL fRequiresStuffing// if fKnown is TRUE this arg is meaningfull
|
| 891 |
+
) ;
|
| 892 |
+
|
| 893 |
+
|
| 894 |
+
#ifdef __cplusplus
|
| 895 |
+
}
|
| 896 |
+
#endif
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
|
| 900 |
+
|
| 901 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 902 |
+
#pragma endregion
|
| 903 |
+
|
| 904 |
+
#endif // _FILEHC_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FileOpen.Dlg
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
fileopen.dlg
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This module contains the resource descriptions for the Win32
|
| 12 |
+
file open and save as common dialogs.
|
| 13 |
+
|
| 14 |
+
Revision History:
|
| 15 |
+
|
| 16 |
+
--*/
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
//
|
| 21 |
+
// Include Files.
|
| 22 |
+
//
|
| 23 |
+
|
| 24 |
+
#include <shlobj.h>
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
//
|
| 30 |
+
// Constant Declarations.
|
| 31 |
+
//
|
| 32 |
+
|
| 33 |
+
#define LBS_DISABLENOSCROLL 0x1000L
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
//
|
| 38 |
+
// New File Open and Save As Dialogs.
|
| 39 |
+
//
|
| 40 |
+
|
| 41 |
+
NEWFILEOPENV2ORD DIALOG DISCARDABLE 0, 0, 370, 237
|
| 42 |
+
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
|
| 43 |
+
WS_SYSMENU | WS_CLIPCHILDREN
|
| 44 |
+
CAPTION "Open"
|
| 45 |
+
FONT 8, "MS Shell Dlg"
|
| 46 |
+
BEGIN
|
| 47 |
+
LTEXT "Look &in:", stc4, 4, 7, 57, 8, SS_NOTIFY,WS_EX_RIGHT
|
| 48 |
+
COMBOBOX cmb2, 66, 4, 174, 300,
|
| 49 |
+
CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS |
|
| 50 |
+
WS_VSCROLL | WS_TABSTOP
|
| 51 |
+
|
| 52 |
+
LTEXT "", stc1, 248, 4, 80, 14, NOT WS_GROUP | NOT WS_VISIBLE,
|
| 53 |
+
CONTROL "", ctl1, TOOLBARCLASSNAME, WS_TABSTOP |
|
| 54 |
+
CCS_NODIVIDER |CCS_NOPARENTALIGN | CCS_NORESIZE | TBSTYLE_WRAPABLE |
|
| 55 |
+
TBSTYLE_FLAT | TBSTYLE_TOOLTIPS | TBSTYLE_CUSTOMERASE,
|
| 56 |
+
4,22,58,208 , WS_EX_CLIENTEDGE
|
| 57 |
+
LISTBOX lst1, 66, 22, 300, 156,
|
| 58 |
+
LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN |
|
| 59 |
+
WS_HSCROLL | NOT WS_VISIBLE
|
| 60 |
+
|
| 61 |
+
LTEXT "File &name:", stc3, 67, 187, 58, 8, SS_NOTIFY
|
| 62 |
+
|
| 63 |
+
EDITTEXT edt1, 130, 184, 164, 12, WS_TABSTOP | ES_AUTOHSCROLL
|
| 64 |
+
|
| 65 |
+
CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL |
|
| 66 |
+
CBS_DROPDOWN | CBS_AUTOHSCROLL,
|
| 67 |
+
130, 184, 164, 150
|
| 68 |
+
|
| 69 |
+
PUSHBUTTON "", psh5, 130, 184, 25, 14, WS_TABSTOP | BS_SPLITBUTTON | BS_BITMAP
|
| 70 |
+
|
| 71 |
+
LTEXT "Files of &type:", stc2, 67, 203, 58, 8, SS_NOTIFY
|
| 72 |
+
COMBOBOX cmb1, 130, 201, 164, 100,
|
| 73 |
+
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
| 74 |
+
|
| 75 |
+
AUTOCHECKBOX "Open as &read-only", chx1, 130, 217, 160, 8, WS_TABSTOP
|
| 76 |
+
|
| 77 |
+
DEFPUSHBUTTON "&Open", IDOK, 316, 184, 50, 14, WS_GROUP
|
| 78 |
+
PUSHBUTTON "Cancel", IDCANCEL, 316, 200, 50, 14, WS_GROUP
|
| 79 |
+
PUSHBUTTON "&Help", pshHelp, 316, 218, 50, 14, WS_GROUP
|
| 80 |
+
END
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
NEWFILEOPENORD DIALOG DISCARDABLE 0, 0, 280, 164
|
| 84 |
+
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
|
| 85 |
+
WS_SYSMENU | WS_CLIPCHILDREN
|
| 86 |
+
CAPTION "Open"
|
| 87 |
+
FONT 8, "MS Shell Dlg"
|
| 88 |
+
BEGIN
|
| 89 |
+
LTEXT "Look &in:", stc4, 7, 6, 27, 8, SS_NOTIFY
|
| 90 |
+
COMBOBOX cmb2, 36, 3, 148, 300,
|
| 91 |
+
CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS |
|
| 92 |
+
WS_VSCROLL | WS_TABSTOP
|
| 93 |
+
|
| 94 |
+
LTEXT "", stc1, 186, 3, 88, 16, NOT WS_GROUP | NOT WS_VISIBLE
|
| 95 |
+
LISTBOX lst1, 4, 20, 272, 85,
|
| 96 |
+
LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN |
|
| 97 |
+
WS_HSCROLL | NOT WS_VISIBLE
|
| 98 |
+
|
| 99 |
+
LTEXT "File &name:", stc3, 5, 112, 48, 8, SS_NOTIFY
|
| 100 |
+
EDITTEXT edt1, 54, 111, 155, 12, WS_TABSTOP | ES_AUTOHSCROLL
|
| 101 |
+
|
| 102 |
+
CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL |
|
| 103 |
+
CBS_DROPDOWN | CBS_AUTOHSCROLL,
|
| 104 |
+
54, 111, 155, 150
|
| 105 |
+
|
| 106 |
+
PUSHBUTTON "", psh5, 54, 111, 25, 14, WS_TABSTOP | BS_SPLITBUTTON | BS_BITMAP
|
| 107 |
+
|
| 108 |
+
LTEXT "Files of &type:", stc2, 5, 131, 48, 8, SS_NOTIFY
|
| 109 |
+
COMBOBOX cmb1, 54, 129, 155, 100,
|
| 110 |
+
CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
|
| 111 |
+
|
| 112 |
+
AUTOCHECKBOX "Open as &read-only", chx1, 54, 148, 74, 10, WS_TABSTOP
|
| 113 |
+
|
| 114 |
+
DEFPUSHBUTTON "&Open", IDOK, 222, 110, 50, 14
|
| 115 |
+
PUSHBUTTON "Cancel", IDCANCEL, 222, 128, 50, 14
|
| 116 |
+
PUSHBUTTON "&Help", pshHelp, 222, 145, 50, 14
|
| 117 |
+
END
|
| 118 |
+
|
| 119 |
+
//
|
| 120 |
+
// Old File Open and Save As Dialogs.
|
| 121 |
+
//
|
| 122 |
+
|
| 123 |
+
FILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134
|
| 124 |
+
STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME |
|
| 125 |
+
DS_3DLOOK
|
| 126 |
+
CAPTION "Open"
|
| 127 |
+
FONT 8, "MS Shell Dlg"
|
| 128 |
+
BEGIN
|
| 129 |
+
LTEXT "File &name:", stc3, 6, 6, 76, 9
|
| 130 |
+
EDITTEXT edt1, 6, 16, 90, 12,
|
| 131 |
+
ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT
|
| 132 |
+
LISTBOX lst1, 6, 32, 90, 68,
|
| 133 |
+
LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
|
| 134 |
+
LBS_DISABLENOSCROLL | WS_VSCROLL |
|
| 135 |
+
WS_TABSTOP | LBS_OWNERDRAWFIXED
|
| 136 |
+
|
| 137 |
+
LTEXT "&Folders:", -1, 110, 6, 96, 9
|
| 138 |
+
LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX
|
| 139 |
+
LISTBOX lst2, 110, 32, 96, 68,
|
| 140 |
+
LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
|
| 141 |
+
LBS_DISABLENOSCROLL | WS_VSCROLL |
|
| 142 |
+
WS_TABSTOP | LBS_OWNERDRAWFIXED
|
| 143 |
+
|
| 144 |
+
LTEXT "List files of &type:", stc2, 6, 104, 90, 9
|
| 145 |
+
COMBOBOX cmb1, 6, 114, 90, 96,
|
| 146 |
+
CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
|
| 147 |
+
|
| 148 |
+
LTEXT "Dri&ves:", stc4, 110, 104, 96, 9
|
| 149 |
+
COMBOBOX cmb2, 110, 114, 96, 68,
|
| 150 |
+
CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED |
|
| 151 |
+
CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
|
| 152 |
+
|
| 153 |
+
DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP
|
| 154 |
+
PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP
|
| 155 |
+
|
| 156 |
+
PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP
|
| 157 |
+
AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP
|
| 158 |
+
END
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
MULTIFILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134
|
| 163 |
+
STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME |
|
| 164 |
+
DS_3DLOOK
|
| 165 |
+
CAPTION "Open"
|
| 166 |
+
FONT 8, "MS Shell Dlg"
|
| 167 |
+
BEGIN
|
| 168 |
+
LTEXT "File &name:", stc3, 6, 6, 76, 9
|
| 169 |
+
EDITTEXT edt1, 6, 16, 90, 12,
|
| 170 |
+
ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT
|
| 171 |
+
LISTBOX lst1, 6, 32, 90, 68,
|
| 172 |
+
LBS_SORT | LBS_NOTIFY | LBS_DISABLENOSCROLL | WS_VSCROLL |
|
| 173 |
+
WS_TABSTOP | LBS_EXTENDEDSEL | LBS_HASSTRINGS |
|
| 174 |
+
LBS_OWNERDRAWFIXED
|
| 175 |
+
|
| 176 |
+
LTEXT "&Folders:", -1, 110, 6, 96, 9
|
| 177 |
+
LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX
|
| 178 |
+
LISTBOX lst2, 110, 32, 96, 68,
|
| 179 |
+
LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
|
| 180 |
+
LBS_DISABLENOSCROLL | WS_VSCROLL |
|
| 181 |
+
WS_TABSTOP | LBS_OWNERDRAWFIXED
|
| 182 |
+
|
| 183 |
+
LTEXT "List files of &type:", stc2, 6, 104, 90, 9
|
| 184 |
+
COMBOBOX cmb1, 6, 114, 90, 96,
|
| 185 |
+
CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
|
| 186 |
+
|
| 187 |
+
LTEXT "Dri&ves:", stc4, 110, 104, 96, 9
|
| 188 |
+
COMBOBOX cmb2, 110, 114, 96, 68,
|
| 189 |
+
CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED |
|
| 190 |
+
CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
|
| 191 |
+
|
| 192 |
+
DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP
|
| 193 |
+
PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP
|
| 194 |
+
|
| 195 |
+
PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP
|
| 196 |
+
AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP
|
| 197 |
+
END
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Filter.h
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __filter_h__
|
| 34 |
+
#define __filter_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IFilter_FWD_DEFINED__
|
| 51 |
+
#define __IFilter_FWD_DEFINED__
|
| 52 |
+
typedef interface IFilter IFilter;
|
| 53 |
+
|
| 54 |
+
#endif /* __IFilter_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
/* header files for imported files */
|
| 58 |
+
#include "unknwn.h"
|
| 59 |
+
#include "objidl.h"
|
| 60 |
+
#include "propidl.h"
|
| 61 |
+
|
| 62 |
+
#ifdef __cplusplus
|
| 63 |
+
extern "C"{
|
| 64 |
+
#endif
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
/* interface __MIDL_itf_filter_0000_0000 */
|
| 68 |
+
/* [local] */
|
| 69 |
+
|
| 70 |
+
#include <winapifamily.h>
|
| 71 |
+
#pragma region Desktop Family
|
| 72 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 73 |
+
//+-------------------------------------------------------------------------
|
| 74 |
+
//
|
| 75 |
+
// Microsoft Windows
|
| 76 |
+
// Copyright (C) Microsoft Corporation, 1993-1998.
|
| 77 |
+
//
|
| 78 |
+
//--------------------------------------------------------------------------
|
| 79 |
+
#if !defined(_TAGFULLPROPSPEC_DEFINED_)
|
| 80 |
+
#define _TAGFULLPROPSPEC_DEFINED_
|
| 81 |
+
typedef struct tagFULLPROPSPEC
|
| 82 |
+
{
|
| 83 |
+
GUID guidPropSet;
|
| 84 |
+
PROPSPEC psProperty;
|
| 85 |
+
} FULLPROPSPEC;
|
| 86 |
+
|
| 87 |
+
#endif // #if !defined(_TAGFULLPROPSPEC_DEFINED_)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0000_v0_0_c_ifspec;
|
| 91 |
+
extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0000_v0_0_s_ifspec;
|
| 92 |
+
|
| 93 |
+
#ifndef __IFilter_INTERFACE_DEFINED__
|
| 94 |
+
#define __IFilter_INTERFACE_DEFINED__
|
| 95 |
+
|
| 96 |
+
/* interface IFilter */
|
| 97 |
+
/* [unique][uuid][object][local] */
|
| 98 |
+
|
| 99 |
+
#ifndef _tagIFILTER_INIT_DEFINED
|
| 100 |
+
typedef
|
| 101 |
+
enum tagIFILTER_INIT
|
| 102 |
+
{
|
| 103 |
+
IFILTER_INIT_CANON_PARAGRAPHS = 1,
|
| 104 |
+
IFILTER_INIT_HARD_LINE_BREAKS = 2,
|
| 105 |
+
IFILTER_INIT_CANON_HYPHENS = 4,
|
| 106 |
+
IFILTER_INIT_CANON_SPACES = 8,
|
| 107 |
+
IFILTER_INIT_APPLY_INDEX_ATTRIBUTES = 16,
|
| 108 |
+
IFILTER_INIT_APPLY_OTHER_ATTRIBUTES = 32,
|
| 109 |
+
IFILTER_INIT_APPLY_CRAWL_ATTRIBUTES = 256,
|
| 110 |
+
IFILTER_INIT_INDEXING_ONLY = 64,
|
| 111 |
+
IFILTER_INIT_SEARCH_LINKS = 128,
|
| 112 |
+
IFILTER_INIT_FILTER_OWNED_VALUE_OK = 512,
|
| 113 |
+
IFILTER_INIT_FILTER_AGGRESSIVE_BREAK = 1024,
|
| 114 |
+
IFILTER_INIT_DISABLE_EMBEDDED = 2048,
|
| 115 |
+
IFILTER_INIT_EMIT_FORMATTING = 4096
|
| 116 |
+
} IFILTER_INIT;
|
| 117 |
+
|
| 118 |
+
#define _tagIFILTER_INIT_DEFINED
|
| 119 |
+
#define _IFILTER_INIT_DEFINED
|
| 120 |
+
#endif
|
| 121 |
+
#ifndef _tagIFILTER_FLAGS_DEFINED
|
| 122 |
+
typedef
|
| 123 |
+
enum tagIFILTER_FLAGS
|
| 124 |
+
{
|
| 125 |
+
IFILTER_FLAGS_OLE_PROPERTIES = 1
|
| 126 |
+
} IFILTER_FLAGS;
|
| 127 |
+
|
| 128 |
+
#define _tagIFILTER_FLAGS_DEFINED
|
| 129 |
+
#define _IFILTER_FLAGS_DEFINED
|
| 130 |
+
#endif
|
| 131 |
+
#ifndef _tagCHUNKSTATE_DEFINED
|
| 132 |
+
typedef
|
| 133 |
+
enum tagCHUNKSTATE
|
| 134 |
+
{
|
| 135 |
+
CHUNK_TEXT = 0x1,
|
| 136 |
+
CHUNK_VALUE = 0x2,
|
| 137 |
+
CHUNK_FILTER_OWNED_VALUE = 0x4
|
| 138 |
+
} CHUNKSTATE;
|
| 139 |
+
|
| 140 |
+
#define _tagCHUNKSTATE_DEFINED
|
| 141 |
+
#define _CHUNKSTATE_DEFINED
|
| 142 |
+
#endif
|
| 143 |
+
#ifndef _tagCHUNK_BREAKTYPE_DEFINED
|
| 144 |
+
typedef
|
| 145 |
+
enum tagCHUNK_BREAKTYPE
|
| 146 |
+
{
|
| 147 |
+
CHUNK_NO_BREAK = 0,
|
| 148 |
+
CHUNK_EOW = 1,
|
| 149 |
+
CHUNK_EOS = 2,
|
| 150 |
+
CHUNK_EOP = 3,
|
| 151 |
+
CHUNK_EOC = 4
|
| 152 |
+
} CHUNK_BREAKTYPE;
|
| 153 |
+
|
| 154 |
+
#define _tagCHUNK_BREAKTYPE_DEFINED
|
| 155 |
+
#define _CHUNK_BREAKTYPE_DEFINED
|
| 156 |
+
#endif
|
| 157 |
+
#ifndef _tagFILTERREGION_DEFINED
|
| 158 |
+
typedef struct tagFILTERREGION
|
| 159 |
+
{
|
| 160 |
+
ULONG idChunk;
|
| 161 |
+
ULONG cwcStart;
|
| 162 |
+
ULONG cwcExtent;
|
| 163 |
+
} FILTERREGION;
|
| 164 |
+
|
| 165 |
+
#define _tagFILTERREGION_DEFINED
|
| 166 |
+
#define _FILTERREGION_DEFINED
|
| 167 |
+
#endif
|
| 168 |
+
#ifndef _tagSTAT_CHUNK_DEFINED
|
| 169 |
+
typedef struct tagSTAT_CHUNK
|
| 170 |
+
{
|
| 171 |
+
ULONG idChunk;
|
| 172 |
+
CHUNK_BREAKTYPE breakType;
|
| 173 |
+
CHUNKSTATE flags;
|
| 174 |
+
LCID locale;
|
| 175 |
+
FULLPROPSPEC attribute;
|
| 176 |
+
ULONG idChunkSource;
|
| 177 |
+
ULONG cwcStartSource;
|
| 178 |
+
ULONG cwcLenSource;
|
| 179 |
+
} STAT_CHUNK;
|
| 180 |
+
|
| 181 |
+
#define _tagSTAT_CHUNK_DEFINED
|
| 182 |
+
#define _STAT_CHUNK_DEFINED
|
| 183 |
+
#endif
|
| 184 |
+
|
| 185 |
+
EXTERN_C const IID IID_IFilter;
|
| 186 |
+
|
| 187 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 188 |
+
|
| 189 |
+
MIDL_INTERFACE("89BCB740-6119-101A-BCB7-00DD010655AF")
|
| 190 |
+
IFilter : public IUnknown
|
| 191 |
+
{
|
| 192 |
+
public:
|
| 193 |
+
virtual SCODE STDMETHODCALLTYPE Init(
|
| 194 |
+
/* [in] */ ULONG grfFlags,
|
| 195 |
+
/* [in] */ ULONG cAttributes,
|
| 196 |
+
/* [size_is][in] */ const FULLPROPSPEC *aAttributes,
|
| 197 |
+
/* [out] */ ULONG *pFlags) = 0;
|
| 198 |
+
|
| 199 |
+
virtual SCODE STDMETHODCALLTYPE GetChunk(
|
| 200 |
+
/* [out] */ STAT_CHUNK *pStat) = 0;
|
| 201 |
+
|
| 202 |
+
virtual SCODE STDMETHODCALLTYPE GetText(
|
| 203 |
+
/* [out][in] */ ULONG *pcwcBuffer,
|
| 204 |
+
/* [size_is][out] */ WCHAR *awcBuffer) = 0;
|
| 205 |
+
|
| 206 |
+
virtual SCODE STDMETHODCALLTYPE GetValue(
|
| 207 |
+
/* [out] */ PROPVARIANT **ppPropValue) = 0;
|
| 208 |
+
|
| 209 |
+
virtual SCODE STDMETHODCALLTYPE BindRegion(
|
| 210 |
+
/* [in] */ FILTERREGION origPos,
|
| 211 |
+
/* [in] */ REFIID riid,
|
| 212 |
+
/* [out] */ void **ppunk) = 0;
|
| 213 |
+
|
| 214 |
+
};
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
#else /* C style interface */
|
| 218 |
+
|
| 219 |
+
typedef struct IFilterVtbl
|
| 220 |
+
{
|
| 221 |
+
BEGIN_INTERFACE
|
| 222 |
+
|
| 223 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 224 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 225 |
+
IFilter * This,
|
| 226 |
+
/* [in] */ REFIID riid,
|
| 227 |
+
/* [annotation][iid_is][out] */
|
| 228 |
+
_COM_Outptr_ void **ppvObject);
|
| 229 |
+
|
| 230 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 231 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 232 |
+
IFilter * This);
|
| 233 |
+
|
| 234 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 235 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 236 |
+
IFilter * This);
|
| 237 |
+
|
| 238 |
+
DECLSPEC_XFGVIRT(IFilter, Init)
|
| 239 |
+
SCODE ( STDMETHODCALLTYPE *Init )(
|
| 240 |
+
IFilter * This,
|
| 241 |
+
/* [in] */ ULONG grfFlags,
|
| 242 |
+
/* [in] */ ULONG cAttributes,
|
| 243 |
+
/* [size_is][in] */ const FULLPROPSPEC *aAttributes,
|
| 244 |
+
/* [out] */ ULONG *pFlags);
|
| 245 |
+
|
| 246 |
+
DECLSPEC_XFGVIRT(IFilter, GetChunk)
|
| 247 |
+
SCODE ( STDMETHODCALLTYPE *GetChunk )(
|
| 248 |
+
IFilter * This,
|
| 249 |
+
/* [out] */ STAT_CHUNK *pStat);
|
| 250 |
+
|
| 251 |
+
DECLSPEC_XFGVIRT(IFilter, GetText)
|
| 252 |
+
SCODE ( STDMETHODCALLTYPE *GetText )(
|
| 253 |
+
IFilter * This,
|
| 254 |
+
/* [out][in] */ ULONG *pcwcBuffer,
|
| 255 |
+
/* [size_is][out] */ WCHAR *awcBuffer);
|
| 256 |
+
|
| 257 |
+
DECLSPEC_XFGVIRT(IFilter, GetValue)
|
| 258 |
+
SCODE ( STDMETHODCALLTYPE *GetValue )(
|
| 259 |
+
IFilter * This,
|
| 260 |
+
/* [out] */ PROPVARIANT **ppPropValue);
|
| 261 |
+
|
| 262 |
+
DECLSPEC_XFGVIRT(IFilter, BindRegion)
|
| 263 |
+
SCODE ( STDMETHODCALLTYPE *BindRegion )(
|
| 264 |
+
IFilter * This,
|
| 265 |
+
/* [in] */ FILTERREGION origPos,
|
| 266 |
+
/* [in] */ REFIID riid,
|
| 267 |
+
/* [out] */ void **ppunk);
|
| 268 |
+
|
| 269 |
+
END_INTERFACE
|
| 270 |
+
} IFilterVtbl;
|
| 271 |
+
|
| 272 |
+
interface IFilter
|
| 273 |
+
{
|
| 274 |
+
CONST_VTBL struct IFilterVtbl *lpVtbl;
|
| 275 |
+
};
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
#ifdef COBJMACROS
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
#define IFilter_QueryInterface(This,riid,ppvObject) \
|
| 283 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 284 |
+
|
| 285 |
+
#define IFilter_AddRef(This) \
|
| 286 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 287 |
+
|
| 288 |
+
#define IFilter_Release(This) \
|
| 289 |
+
( (This)->lpVtbl -> Release(This) )
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
#define IFilter_Init(This,grfFlags,cAttributes,aAttributes,pFlags) \
|
| 293 |
+
( (This)->lpVtbl -> Init(This,grfFlags,cAttributes,aAttributes,pFlags) )
|
| 294 |
+
|
| 295 |
+
#define IFilter_GetChunk(This,pStat) \
|
| 296 |
+
( (This)->lpVtbl -> GetChunk(This,pStat) )
|
| 297 |
+
|
| 298 |
+
#define IFilter_GetText(This,pcwcBuffer,awcBuffer) \
|
| 299 |
+
( (This)->lpVtbl -> GetText(This,pcwcBuffer,awcBuffer) )
|
| 300 |
+
|
| 301 |
+
#define IFilter_GetValue(This,ppPropValue) \
|
| 302 |
+
( (This)->lpVtbl -> GetValue(This,ppPropValue) )
|
| 303 |
+
|
| 304 |
+
#define IFilter_BindRegion(This,origPos,riid,ppunk) \
|
| 305 |
+
( (This)->lpVtbl -> BindRegion(This,origPos,riid,ppunk) )
|
| 306 |
+
|
| 307 |
+
#endif /* COBJMACROS */
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
#endif /* C style interface */
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
#endif /* __IFilter_INTERFACE_DEFINED__ */
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
/* interface __MIDL_itf_filter_0000_0001 */
|
| 319 |
+
/* [local] */
|
| 320 |
+
|
| 321 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 322 |
+
#pragma endregion
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0001_v0_0_c_ifspec;
|
| 326 |
+
extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0001_v0_0_s_ifspec;
|
| 327 |
+
|
| 328 |
+
/* Additional Prototypes for ALL interfaces */
|
| 329 |
+
|
| 330 |
+
/* end of Additional Prototypes */
|
| 331 |
+
|
| 332 |
+
#ifdef __cplusplus
|
| 333 |
+
}
|
| 334 |
+
#endif
|
| 335 |
+
|
| 336 |
+
#endif
|
| 337 |
+
|
| 338 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/Filter.idl
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+-------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Microsoft Windows
|
| 4 |
+
// Copyright (C) Microsoft Corporation, 1992-1998
|
| 5 |
+
//
|
| 6 |
+
// File: ifilt.idl
|
| 7 |
+
//
|
| 8 |
+
// Contents: IFilter interface definition
|
| 9 |
+
//
|
| 10 |
+
// History: 12-Jul-93 AmyA Created
|
| 11 |
+
//
|
| 12 |
+
//--------------------------------------------------------------------------
|
| 13 |
+
|
| 14 |
+
import "unknwn.idl";
|
| 15 |
+
import "objidl.idl";
|
| 16 |
+
import "propidl.idl";
|
| 17 |
+
|
| 18 |
+
cpp_quote("//+-------------------------------------------------------------------------")
|
| 19 |
+
cpp_quote("//")
|
| 20 |
+
cpp_quote("// Microsoft Windows")
|
| 21 |
+
cpp_quote("// Copyright (C) Microsoft Corporation, 1993-1998.")
|
| 22 |
+
cpp_quote("//")
|
| 23 |
+
cpp_quote("//--------------------------------------------------------------------------")
|
| 24 |
+
|
| 25 |
+
cpp_quote("#include <winapifamily.h>")
|
| 26 |
+
|
| 27 |
+
#pragma region Desktop Family
|
| 28 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 29 |
+
|
| 30 |
+
cpp_quote("#if !defined(_TAGFULLPROPSPEC_DEFINED_)")
|
| 31 |
+
cpp_quote("#define _TAGFULLPROPSPEC_DEFINED_")
|
| 32 |
+
typedef struct tagFULLPROPSPEC
|
| 33 |
+
{
|
| 34 |
+
GUID guidPropSet;
|
| 35 |
+
PROPSPEC psProperty;
|
| 36 |
+
} FULLPROPSPEC;
|
| 37 |
+
cpp_quote("#endif // #if !defined(_TAGFULLPROPSPEC_DEFINED_)")
|
| 38 |
+
|
| 39 |
+
[
|
| 40 |
+
object,
|
| 41 |
+
uuid(89BCB740-6119-101A-BCB7-00DD010655AF),
|
| 42 |
+
pointer_default(unique)
|
| 43 |
+
]
|
| 44 |
+
|
| 45 |
+
interface IFilter : IUnknown
|
| 46 |
+
{
|
| 47 |
+
cpp_quote("#ifndef _tagIFILTER_INIT_DEFINED")
|
| 48 |
+
typedef enum tagIFILTER_INIT
|
| 49 |
+
{
|
| 50 |
+
IFILTER_INIT_CANON_PARAGRAPHS = 1,
|
| 51 |
+
IFILTER_INIT_HARD_LINE_BREAKS = 2,
|
| 52 |
+
IFILTER_INIT_CANON_HYPHENS = 4,
|
| 53 |
+
IFILTER_INIT_CANON_SPACES = 8,
|
| 54 |
+
|
| 55 |
+
IFILTER_INIT_APPLY_INDEX_ATTRIBUTES = 16,
|
| 56 |
+
IFILTER_INIT_APPLY_OTHER_ATTRIBUTES = 32,
|
| 57 |
+
IFILTER_INIT_APPLY_CRAWL_ATTRIBUTES = 256,
|
| 58 |
+
|
| 59 |
+
IFILTER_INIT_INDEXING_ONLY = 64,
|
| 60 |
+
|
| 61 |
+
IFILTER_INIT_SEARCH_LINKS = 128,
|
| 62 |
+
|
| 63 |
+
IFILTER_INIT_FILTER_OWNED_VALUE_OK = 512,
|
| 64 |
+
|
| 65 |
+
IFILTER_INIT_FILTER_AGGRESSIVE_BREAK = 1024,
|
| 66 |
+
|
| 67 |
+
IFILTER_INIT_DISABLE_EMBEDDED = 2048,
|
| 68 |
+
|
| 69 |
+
IFILTER_INIT_EMIT_FORMATTING = 4096
|
| 70 |
+
|
| 71 |
+
} IFILTER_INIT;
|
| 72 |
+
cpp_quote("#define _tagIFILTER_INIT_DEFINED")
|
| 73 |
+
cpp_quote("#define _IFILTER_INIT_DEFINED")
|
| 74 |
+
cpp_quote("#endif")
|
| 75 |
+
|
| 76 |
+
cpp_quote("#ifndef _tagIFILTER_FLAGS_DEFINED")
|
| 77 |
+
typedef enum tagIFILTER_FLAGS
|
| 78 |
+
{
|
| 79 |
+
IFILTER_FLAGS_OLE_PROPERTIES = 1
|
| 80 |
+
} IFILTER_FLAGS;
|
| 81 |
+
cpp_quote("#define _tagIFILTER_FLAGS_DEFINED")
|
| 82 |
+
cpp_quote("#define _IFILTER_FLAGS_DEFINED")
|
| 83 |
+
cpp_quote("#endif")
|
| 84 |
+
|
| 85 |
+
cpp_quote("#ifndef _tagCHUNKSTATE_DEFINED")
|
| 86 |
+
typedef enum tagCHUNKSTATE
|
| 87 |
+
{
|
| 88 |
+
CHUNK_TEXT = 0x1,
|
| 89 |
+
CHUNK_VALUE = 0x2,
|
| 90 |
+
CHUNK_FILTER_OWNED_VALUE = 0x4,
|
| 91 |
+
CHUNK_IMAGE = 0x8
|
| 92 |
+
|
| 93 |
+
} CHUNKSTATE;
|
| 94 |
+
cpp_quote("#define _tagCHUNKSTATE_DEFINED")
|
| 95 |
+
cpp_quote("#define _CHUNKSTATE_DEFINED")
|
| 96 |
+
cpp_quote("#endif")
|
| 97 |
+
|
| 98 |
+
cpp_quote("#ifndef _tagCHUNK_BREAKTYPE_DEFINED")
|
| 99 |
+
typedef enum tagCHUNK_BREAKTYPE
|
| 100 |
+
{
|
| 101 |
+
CHUNK_NO_BREAK = 0,
|
| 102 |
+
CHUNK_EOW = 1,
|
| 103 |
+
CHUNK_EOS = 2,
|
| 104 |
+
CHUNK_EOP = 3,
|
| 105 |
+
CHUNK_EOC = 4
|
| 106 |
+
} CHUNK_BREAKTYPE;
|
| 107 |
+
cpp_quote("#define _tagCHUNK_BREAKTYPE_DEFINED")
|
| 108 |
+
cpp_quote("#define _CHUNK_BREAKTYPE_DEFINED")
|
| 109 |
+
cpp_quote("#endif")
|
| 110 |
+
|
| 111 |
+
cpp_quote("#ifndef _tagFILTERREGION_DEFINED")
|
| 112 |
+
typedef struct tagFILTERREGION
|
| 113 |
+
{
|
| 114 |
+
ULONG idChunk;
|
| 115 |
+
ULONG cwcStart;
|
| 116 |
+
ULONG cwcExtent;
|
| 117 |
+
} FILTERREGION;
|
| 118 |
+
cpp_quote("#define _tagFILTERREGION_DEFINED")
|
| 119 |
+
cpp_quote("#define _FILTERREGION_DEFINED")
|
| 120 |
+
cpp_quote("#endif")
|
| 121 |
+
|
| 122 |
+
cpp_quote("#ifndef _tagSTAT_CHUNK_DEFINED")
|
| 123 |
+
typedef struct tagSTAT_CHUNK
|
| 124 |
+
{
|
| 125 |
+
ULONG idChunk;
|
| 126 |
+
CHUNK_BREAKTYPE breakType;
|
| 127 |
+
CHUNKSTATE flags;
|
| 128 |
+
LCID locale;
|
| 129 |
+
FULLPROPSPEC attribute;
|
| 130 |
+
ULONG idChunkSource;
|
| 131 |
+
ULONG cwcStartSource;
|
| 132 |
+
ULONG cwcLenSource;
|
| 133 |
+
} STAT_CHUNK;
|
| 134 |
+
|
| 135 |
+
cpp_quote("#define _tagSTAT_CHUNK_DEFINED")
|
| 136 |
+
cpp_quote("#define _STAT_CHUNK_DEFINED")
|
| 137 |
+
cpp_quote("#endif")
|
| 138 |
+
|
| 139 |
+
SCODE Init([in] ULONG grfFlags,
|
| 140 |
+
[in] ULONG cAttributes,
|
| 141 |
+
[in, size_is(cAttributes), unique] FULLPROPSPEC const * aAttributes,
|
| 142 |
+
[out] ULONG * pFlags );
|
| 143 |
+
|
| 144 |
+
SCODE GetChunk([out] STAT_CHUNK * pStat );
|
| 145 |
+
|
| 146 |
+
SCODE GetText([in, out] ULONG * pcwcBuffer,
|
| 147 |
+
[out, size_is(*pcwcBuffer)] WCHAR * awcBuffer );
|
| 148 |
+
|
| 149 |
+
SCODE GetValue([out] PROPVARIANT ** ppPropValue );
|
| 150 |
+
|
| 151 |
+
[local]
|
| 152 |
+
SCODE BindRegion([in] FILTERREGION origPos,
|
| 153 |
+
[in] REFIID riid,
|
| 154 |
+
[out] void ** ppunk );
|
| 155 |
+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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef _FILTERR_H_
|
| 2 |
+
#define _FILTERR_H_
|
| 3 |
+
#ifndef FACILITY_WINDOWS
|
| 4 |
+
//
|
| 5 |
+
// Values are 32 bit values laid out as follows:
|
| 6 |
+
//
|
| 7 |
+
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
|
| 8 |
+
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
| 9 |
+
// +---+-+-+-----------------------+-------------------------------+
|
| 10 |
+
// |Sev|C|R| Facility | Code |
|
| 11 |
+
// +---+-+-+-----------------------+-------------------------------+
|
| 12 |
+
//
|
| 13 |
+
// where
|
| 14 |
+
//
|
| 15 |
+
// Sev - is the severity code
|
| 16 |
+
//
|
| 17 |
+
// 00 - Success
|
| 18 |
+
// 01 - Informational
|
| 19 |
+
// 10 - Warning
|
| 20 |
+
// 11 - Error
|
| 21 |
+
//
|
| 22 |
+
// C - is the Customer code flag
|
| 23 |
+
//
|
| 24 |
+
// R - is a reserved bit
|
| 25 |
+
//
|
| 26 |
+
// Facility - is the facility code
|
| 27 |
+
//
|
| 28 |
+
// Code - is the facility's status code
|
| 29 |
+
//
|
| 30 |
+
//
|
| 31 |
+
// Define the facility codes
|
| 32 |
+
//
|
| 33 |
+
#define FACILITY_ITF 0x4
|
| 34 |
+
#define FACILITY_WINDOWS 0x8
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
//
|
| 38 |
+
// Define the severity codes
|
| 39 |
+
//
|
| 40 |
+
#define STATUS_SEVERITY_SUCCESS 0x0
|
| 41 |
+
#define STATUS_SEVERITY_COERROR 0x2
|
| 42 |
+
#define STATUS_SEVERITY_COFAIL 0x3
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
//
|
| 46 |
+
// MessageId: NOT_AN_ERROR
|
| 47 |
+
//
|
| 48 |
+
// MessageText:
|
| 49 |
+
//
|
| 50 |
+
// NOTE: This dummy error message is necessary to force MC to output
|
| 51 |
+
// the above defines inside the FACILITY_WINDOWS guard instead
|
| 52 |
+
// of leaving it empty.
|
| 53 |
+
//
|
| 54 |
+
#define NOT_AN_ERROR ((HRESULT)0x00080000L)
|
| 55 |
+
|
| 56 |
+
#endif // FACILITY_WINDOWS
|
| 57 |
+
//
|
| 58 |
+
// Codes 0x1700-0x172F are reserved for FILTER
|
| 59 |
+
//
|
| 60 |
+
//
|
| 61 |
+
// MessageId: FILTER_E_END_OF_CHUNKS
|
| 62 |
+
//
|
| 63 |
+
// MessageText:
|
| 64 |
+
//
|
| 65 |
+
// No more chunks of text available in object.
|
| 66 |
+
//
|
| 67 |
+
#define FILTER_E_END_OF_CHUNKS ((HRESULT)0x80041700L)
|
| 68 |
+
|
| 69 |
+
//
|
| 70 |
+
// MessageId: FILTER_E_NO_MORE_TEXT
|
| 71 |
+
//
|
| 72 |
+
// MessageText:
|
| 73 |
+
//
|
| 74 |
+
// No more text available in chunk.
|
| 75 |
+
//
|
| 76 |
+
#define FILTER_E_NO_MORE_TEXT ((HRESULT)0x80041701L)
|
| 77 |
+
|
| 78 |
+
//
|
| 79 |
+
// MessageId: FILTER_E_NO_MORE_VALUES
|
| 80 |
+
//
|
| 81 |
+
// MessageText:
|
| 82 |
+
//
|
| 83 |
+
// No more property values available in chunk.
|
| 84 |
+
//
|
| 85 |
+
#define FILTER_E_NO_MORE_VALUES ((HRESULT)0x80041702L)
|
| 86 |
+
|
| 87 |
+
//
|
| 88 |
+
// MessageId: FILTER_E_ACCESS
|
| 89 |
+
//
|
| 90 |
+
// MessageText:
|
| 91 |
+
//
|
| 92 |
+
// Unable to access object.
|
| 93 |
+
//
|
| 94 |
+
#define FILTER_E_ACCESS ((HRESULT)0x80041703L)
|
| 95 |
+
|
| 96 |
+
//
|
| 97 |
+
// MessageId: FILTER_W_MONIKER_CLIPPED
|
| 98 |
+
//
|
| 99 |
+
// MessageText:
|
| 100 |
+
//
|
| 101 |
+
// Moniker doesn't cover entire region.
|
| 102 |
+
//
|
| 103 |
+
#define FILTER_W_MONIKER_CLIPPED ((HRESULT)0x00041704L)
|
| 104 |
+
|
| 105 |
+
//
|
| 106 |
+
// MessageId: FILTER_E_NO_TEXT
|
| 107 |
+
//
|
| 108 |
+
// MessageText:
|
| 109 |
+
//
|
| 110 |
+
// No text in current chunk.
|
| 111 |
+
//
|
| 112 |
+
#define FILTER_E_NO_TEXT ((HRESULT)0x80041705L)
|
| 113 |
+
|
| 114 |
+
//
|
| 115 |
+
// MessageId: FILTER_E_NO_VALUES
|
| 116 |
+
//
|
| 117 |
+
// MessageText:
|
| 118 |
+
//
|
| 119 |
+
// No values in current chunk.
|
| 120 |
+
//
|
| 121 |
+
#define FILTER_E_NO_VALUES ((HRESULT)0x80041706L)
|
| 122 |
+
|
| 123 |
+
//
|
| 124 |
+
// MessageId: FILTER_E_EMBEDDING_UNAVAILABLE
|
| 125 |
+
//
|
| 126 |
+
// MessageText:
|
| 127 |
+
//
|
| 128 |
+
// Unable to bind IFilter for embedded object.
|
| 129 |
+
//
|
| 130 |
+
#define FILTER_E_EMBEDDING_UNAVAILABLE ((HRESULT)0x80041707L)
|
| 131 |
+
|
| 132 |
+
//
|
| 133 |
+
// MessageId: FILTER_E_LINK_UNAVAILABLE
|
| 134 |
+
//
|
| 135 |
+
// MessageText:
|
| 136 |
+
//
|
| 137 |
+
// Unable to bind IFilter for linked object.
|
| 138 |
+
//
|
| 139 |
+
#define FILTER_E_LINK_UNAVAILABLE ((HRESULT)0x80041708L)
|
| 140 |
+
|
| 141 |
+
//
|
| 142 |
+
// MessageId: FILTER_S_LAST_TEXT
|
| 143 |
+
//
|
| 144 |
+
// MessageText:
|
| 145 |
+
//
|
| 146 |
+
// This is the last text in the current chunk.
|
| 147 |
+
//
|
| 148 |
+
#define FILTER_S_LAST_TEXT ((HRESULT)0x00041709L)
|
| 149 |
+
|
| 150 |
+
//
|
| 151 |
+
// MessageId: FILTER_S_LAST_VALUES
|
| 152 |
+
//
|
| 153 |
+
// MessageText:
|
| 154 |
+
//
|
| 155 |
+
// This is the last value in the current chunk.
|
| 156 |
+
//
|
| 157 |
+
#define FILTER_S_LAST_VALUES ((HRESULT)0x0004170AL)
|
| 158 |
+
|
| 159 |
+
//
|
| 160 |
+
// MessageId: FILTER_E_PASSWORD
|
| 161 |
+
//
|
| 162 |
+
// MessageText:
|
| 163 |
+
//
|
| 164 |
+
// File was not filtered due to password protection.
|
| 165 |
+
//
|
| 166 |
+
#define FILTER_E_PASSWORD ((HRESULT)0x8004170BL)
|
| 167 |
+
|
| 168 |
+
//
|
| 169 |
+
// MessageId: FILTER_E_UNKNOWNFORMAT
|
| 170 |
+
//
|
| 171 |
+
// MessageText:
|
| 172 |
+
//
|
| 173 |
+
// The document format is not recognized by the flter.
|
| 174 |
+
//
|
| 175 |
+
#define FILTER_E_UNKNOWNFORMAT ((HRESULT)0x8004170CL)
|
| 176 |
+
|
| 177 |
+
#endif // _FILTERR_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FindText.Dlg
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
findtext.dlg
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This module contains the resource descriptions for the Win32
|
| 12 |
+
find and replace common dialogs.
|
| 13 |
+
|
| 14 |
+
Revision History:
|
| 15 |
+
|
| 16 |
+
--*/
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
//
|
| 21 |
+
// Find and Replace Dialogs.
|
| 22 |
+
//
|
| 23 |
+
|
| 24 |
+
FINDDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 30, 73, 236, 74
|
| 25 |
+
STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU |
|
| 26 |
+
DS_3DLOOK
|
| 27 |
+
CAPTION "Find"
|
| 28 |
+
FONT 8, "MS Shell Dlg"
|
| 29 |
+
BEGIN
|
| 30 |
+
LTEXT "Fi&nd what:", -1, 4, 8, 42, 8
|
| 31 |
+
EDITTEXT edt1, 47, 7, 128, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL
|
| 32 |
+
|
| 33 |
+
AUTOCHECKBOX "Match &whole word only", chx1, 4, 26, 100, 12, WS_GROUP
|
| 34 |
+
AUTOCHECKBOX "Match &case", chx2, 4, 42, 64, 12
|
| 35 |
+
AUTOCHECKBOX "W&rap around", chx3, 4, 58, 64, 12
|
| 36 |
+
|
| 37 |
+
GROUPBOX "Direction", grp1, 107, 26, 68, 28, WS_GROUP
|
| 38 |
+
AUTORADIOBUTTON "&Up", rad1, 111, 38, 25, 12, WS_GROUP
|
| 39 |
+
AUTORADIOBUTTON "&Down", rad2, 138, 38, 35, 12
|
| 40 |
+
|
| 41 |
+
DEFPUSHBUTTON "&Find Next", IDOK, 182, 5, 50, 14, WS_GROUP
|
| 42 |
+
PUSHBUTTON "Cancel", IDCANCEL, 182, 23, 50, 14
|
| 43 |
+
PUSHBUTTON "&Help", pshHelp, 182, 45, 50, 14
|
| 44 |
+
|
| 45 |
+
LTEXT "", stc1, 4, 56, 1, 1, NOT WS_VISIBLE
|
| 46 |
+
END
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
REPLACEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 44, 230, 94
|
| 50 |
+
STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU |
|
| 51 |
+
DS_3DLOOK
|
| 52 |
+
CAPTION "Replace"
|
| 53 |
+
FONT 8, "MS Shell Dlg"
|
| 54 |
+
BEGIN
|
| 55 |
+
LTEXT "Fi&nd what:", -1, 4, 9, 48, 8
|
| 56 |
+
EDITTEXT edt1, 54, 7, 114, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL
|
| 57 |
+
|
| 58 |
+
LTEXT "Re&place with:", -1, 4, 26, 48, 8
|
| 59 |
+
EDITTEXT edt2, 54, 24, 114, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL
|
| 60 |
+
|
| 61 |
+
AUTOCHECKBOX "Match &whole word only", chx1, 4, 46, 104, 12, WS_GROUP
|
| 62 |
+
AUTOCHECKBOX "Match &case", chx2, 4, 62, 59, 12
|
| 63 |
+
AUTOCHECKBOX "W&rap around", chx3, 4, 78, 64, 12
|
| 64 |
+
|
| 65 |
+
DEFPUSHBUTTON "&Find Next", IDOK, 174, 4, 50, 14, WS_GROUP
|
| 66 |
+
PUSHBUTTON "&Replace", psh1, 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
font.dlg
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This module contains the resource descriptions for the Win32
|
| 12 |
+
font common dialogs.
|
| 13 |
+
|
| 14 |
+
Revision History:
|
| 15 |
+
|
| 16 |
+
--*/
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
//
|
| 21 |
+
// Font Dialogs.
|
| 22 |
+
//
|
| 23 |
+
|
| 24 |
+
FORMATDLGORD31 DIALOG 13, 54, 287, 196
|
| 25 |
+
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU |
|
| 26 |
+
DS_3DLOOK
|
| 27 |
+
CAPTION "Font"
|
| 28 |
+
FONT 8, "MS Shell Dlg"
|
| 29 |
+
BEGIN
|
| 30 |
+
LTEXT "&Font:", stc1, 7, 7, 40, 9
|
| 31 |
+
COMBOBOX cmb1, 7, 16, 98, 76,
|
| 32 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 33 |
+
CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 34 |
+
CBS_OWNERDRAWFIXED
|
| 35 |
+
|
| 36 |
+
LTEXT "Font st&yle:", stc2, 110, 7, 44, 9
|
| 37 |
+
COMBOBOX cmb2, 110, 16, 74, 76,
|
| 38 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 39 |
+
WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 40 |
+
CBS_OWNERDRAWFIXED
|
| 41 |
+
|
| 42 |
+
LTEXT "&Size:", stc3, 189, 7, 30, 9
|
| 43 |
+
COMBOBOX cmb3, 190, 16, 36, 76,
|
| 44 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 45 |
+
CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 46 |
+
CBS_OWNERDRAWFIXED
|
| 47 |
+
|
| 48 |
+
GROUPBOX "Effects", grp1, 7, 97, 98, 72, WS_GROUP
|
| 49 |
+
AUTOCHECKBOX "Stri&keout", chx1, 13, 110, 49, 10, WS_TABSTOP
|
| 50 |
+
AUTOCHECKBOX "&Underline", chx2, 13, 123, 51, 10
|
| 51 |
+
|
| 52 |
+
LTEXT "&Color:", stc4, 13, 136, 30, 9
|
| 53 |
+
COMBOBOX cmb4, 13, 146, 82, 100,
|
| 54 |
+
CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL |
|
| 55 |
+
CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP
|
| 56 |
+
|
| 57 |
+
GROUPBOX "Sample", grp2, 110, 97, 116, 43, WS_GROUP
|
| 58 |
+
CTEXT "AaBbYyZz", stc5, 118, 111, 100, 23,
|
| 59 |
+
SS_NOPREFIX | NOT WS_VISIBLE
|
| 60 |
+
LTEXT "", stc6, 7, 172, 219, 20, SS_NOPREFIX | NOT WS_GROUP
|
| 61 |
+
|
| 62 |
+
LTEXT "Sc&ript:", stc7, 110, 147, 30, 9
|
| 63 |
+
COMBOBOX cmb5, 110, 157, 116, 30, CBS_DROPDOWNLIST |
|
| 64 |
+
CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_HASSTRINGS |
|
| 65 |
+
WS_BORDER | WS_VSCROLL | WS_TABSTOP
|
| 66 |
+
|
| 67 |
+
DEFPUSHBUTTON "OK", IDOK, 231, 16, 45, 14, WS_GROUP
|
| 68 |
+
PUSHBUTTON "Cancel", IDCANCEL, 231, 32, 45, 14, WS_GROUP
|
| 69 |
+
PUSHBUTTON "&Apply", psh3, 231, 48, 45, 14, WS_GROUP
|
| 70 |
+
PUSHBUTTON "&Help", pshHelp, 231, 64, 45, 14, WS_GROUP
|
| 71 |
+
|
| 72 |
+
END
|
| 73 |
+
|
| 74 |
+
//
|
| 75 |
+
// New Font Dialog with Syslink
|
| 76 |
+
//
|
| 77 |
+
NEWFORMATDLGWITHLINK DIALOG 13, 54, 243, 234
|
| 78 |
+
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU |
|
| 79 |
+
DS_3DLOOK
|
| 80 |
+
CAPTION "Font"
|
| 81 |
+
FONT 9, "Segoe UI"
|
| 82 |
+
BEGIN
|
| 83 |
+
LTEXT "&Font:", stc1, 7, 7, 98, 9
|
| 84 |
+
COMBOBOX cmb1, 7, 16, 98, 76,
|
| 85 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 86 |
+
CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 87 |
+
CBS_OWNERDRAWFIXED
|
| 88 |
+
|
| 89 |
+
LTEXT "Font st&yle:", stc2, 114, 7, 74, 9
|
| 90 |
+
COMBOBOX cmb2, 114, 16, 74, 76,
|
| 91 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 92 |
+
WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 93 |
+
CBS_OWNERDRAWFIXED
|
| 94 |
+
|
| 95 |
+
LTEXT "&Size:", stc3, 198, 7, 36, 9
|
| 96 |
+
COMBOBOX cmb3, 198, 16, 36, 76,
|
| 97 |
+
CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL |
|
| 98 |
+
CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS |
|
| 99 |
+
CBS_OWNERDRAWFIXED
|
| 100 |
+
|
| 101 |
+
GROUPBOX "Effects", grp1, 7, 97, 98, 76, WS_GROUP
|
| 102 |
+
AUTOCHECKBOX "Stri&keout", chx1, 13, 111, 90, 10, WS_TABSTOP
|
| 103 |
+
AUTOCHECKBOX "&Underline", chx2, 13, 127, 90, 10
|
| 104 |
+
|
| 105 |
+
LTEXT "&Color:", stc4, 13, 144, 89, 9
|
| 106 |
+
COMBOBOX cmb4, 13, 155, 85, 100,
|
| 107 |
+
CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL |
|
| 108 |
+
CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP
|
| 109 |
+
|
| 110 |
+
GROUPBOX "Sample", grp2, 114, 97, 120, 43, WS_GROUP
|
| 111 |
+
CTEXT "AaBbYyZz", stc5, 116, 106, 117, 33,
|
| 112 |
+
SS_NOPREFIX | NOT WS_VISIBLE
|
| 113 |
+
LTEXT "", stc6, 7, 178, 227, 20, SS_NOPREFIX | NOT WS_GROUP
|
| 114 |
+
|
| 115 |
+
LTEXT "Sc&ript:", stc7, 114, 145, 118, 9
|
| 116 |
+
COMBOBOX cmb5, 114, 155, 120, 30, CBS_DROPDOWNLIST |
|
| 117 |
+
CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_HASSTRINGS |
|
| 118 |
+
WS_BORDER | WS_VSCROLL | WS_TABSTOP
|
| 119 |
+
|
| 120 |
+
CONTROL "<A>Show more fonts</A>", IDC_MANAGE_LINK, "SysLink",
|
| 121 |
+
WS_TABSTOP, 7, 199, 227, 9
|
| 122 |
+
|
| 123 |
+
DEFPUSHBUTTON "OK", IDOK, 141, 215, 45, 14, WS_GROUP
|
| 124 |
+
PUSHBUTTON "Cancel", IDCANCEL, 190, 215, 45, 14, WS_GROUP
|
| 125 |
+
PUSHBUTTON "&Apply", psh3, 92, 215, 45, 14, WS_GROUP
|
| 126 |
+
PUSHBUTTON "&Help", pshHelp, 43, 215, 45, 14, WS_GROUP
|
| 127 |
+
|
| 128 |
+
END
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/FrQuery.h
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//***************************************************************************
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
//
|
| 5 |
+
// FRQuery.h
|
| 6 |
+
//
|
| 7 |
+
// Purpose: query support classes
|
| 8 |
+
//
|
| 9 |
+
//***************************************************************************
|
| 10 |
+
|
| 11 |
+
#if _MSC_VER > 1000
|
| 12 |
+
#pragma once
|
| 13 |
+
#endif
|
| 14 |
+
|
| 15 |
+
#ifndef _FRAMEWORK_QUERY_H_
|
| 16 |
+
#define _FRAMEWORK_QUERY_H_
|
| 17 |
+
|
| 18 |
+
#include <winapifamily.h>
|
| 19 |
+
|
| 20 |
+
#pragma region Desktop Family
|
| 21 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 22 |
+
|
| 23 |
+
#include <stdio.h>
|
| 24 |
+
#include <sql_1.h>
|
| 25 |
+
#include <comdef.h>
|
| 26 |
+
#include <vector>
|
| 27 |
+
|
| 28 |
+
class POLARITY CFrameworkQuery
|
| 29 |
+
{
|
| 30 |
+
public:
|
| 31 |
+
CFrameworkQuery();
|
| 32 |
+
~CFrameworkQuery();
|
| 33 |
+
|
| 34 |
+
// Finds out if a particular field was requested by the query in either
|
| 35 |
+
// the Select statement, or the Where statement. Only meaningful if we
|
| 36 |
+
// are in ExecQueryAsync and the query has been sucessfully parsed.
|
| 37 |
+
bool IsPropertyRequired(LPCWSTR propName);
|
| 38 |
+
|
| 39 |
+
// Gets the class name from the query. Only meaningful if we are
|
| 40 |
+
// in ExecQueryAsync and the query has been sucessfully parsed. It
|
| 41 |
+
// is the responsibility of the caller to SysFreeString the returned
|
| 42 |
+
// string.
|
| 43 |
+
BSTR GetQueryClassName(void) { return SysAllocString(m_bstrtClassName); }
|
| 44 |
+
|
| 45 |
+
// Given a property name, it will return all the values
|
| 46 |
+
// that the query requests in a CHStringArray.
|
| 47 |
+
// Select * from win32_directory where drive = "C:" GetValuesForProp(L"Drive") -> C:
|
| 48 |
+
// Where Drive = "C:" or Drive = "D:" GetValuesForProp(L"Drive") -> C:, D:
|
| 49 |
+
// Where Path = "\DOS" GetValuesForProp(L"Drive") -> (empty)
|
| 50 |
+
// Where Drive <> "C:" GetValuesForProp(L"Drive") -> (empty)
|
| 51 |
+
// Where Drive = "C:" or (Drive = "D:" and Mounted = true) GetValuesForProp(L"Drive") -> C:, D:
|
| 52 |
+
HRESULT GetValuesForProp(LPCWSTR wszPropName, CHStringArray& achNames);
|
| 53 |
+
|
| 54 |
+
// Here's an overloaded version in case client wants to pass in a vector of _bstr_t's
|
| 55 |
+
HRESULT GetValuesForProp(LPCWSTR wszPropName, std::vector<_bstr_t>& vectorNames);
|
| 56 |
+
|
| 57 |
+
// Returns a list of all the properties specified in the Select clause, plus.
|
| 58 |
+
// all the the properties from the Where clauses. If the returned array is empty, all
|
| 59 |
+
// properties are required.
|
| 60 |
+
void GetRequiredProperties(CHStringArray &saProperties);
|
| 61 |
+
|
| 62 |
+
// Boolean indicating if all properties are being requested.
|
| 63 |
+
bool AllPropertiesAreRequired(void) { return (m_csaPropertiesRequired.GetSize() == 0); }
|
| 64 |
+
|
| 65 |
+
// Boolean indicating if only the key properties are required.
|
| 66 |
+
bool KeysOnly(void) { return m_bKeysOnly; }
|
| 67 |
+
|
| 68 |
+
// Accessor function to retrieve wql query
|
| 69 |
+
const CHString &GetQuery() ;
|
| 70 |
+
|
| 71 |
+
// Moves the values into the member variables. Should never be called by users.
|
| 72 |
+
HRESULT Init(
|
| 73 |
+
|
| 74 |
+
const BSTR bstrQueryFormat,
|
| 75 |
+
const BSTR bstrQuery,
|
| 76 |
+
long lFlags,
|
| 77 |
+
CHString &sNamespace
|
| 78 |
+
);
|
| 79 |
+
|
| 80 |
+
// Moves the values into the member variables. Should never be called by users.
|
| 81 |
+
HRESULT Init(
|
| 82 |
+
|
| 83 |
+
ParsedObjectPath *pParsedObjectPath,
|
| 84 |
+
IWbemContext *pCtx,
|
| 85 |
+
LPCWSTR lpwszClassName,
|
| 86 |
+
CHString &sNamespace
|
| 87 |
+
);
|
| 88 |
+
|
| 89 |
+
// Initializes the KeysOnly data member. Should never be called by users.
|
| 90 |
+
void Init2(IWbemClassObject *IClass);
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
protected:
|
| 94 |
+
|
| 95 |
+
/*****************************************************************************/
|
| 96 |
+
/* The rest of these data members and functions are intended for Microsoft */
|
| 97 |
+
/* internal use only. Use by third parties is unsupported and unrecommended. */
|
| 98 |
+
/*****************************************************************************/
|
| 99 |
+
|
| 100 |
+
SQL_LEVEL_1_RPN_EXPRESSION *m_pLevel1RPNExpression;
|
| 101 |
+
CHStringArray m_csaPropertiesRequired;
|
| 102 |
+
enum QueryTypes{eUnknown, eWQLCommand, eContextObject} m_QueryType;
|
| 103 |
+
|
| 104 |
+
DWORD IsInList(const CHStringArray &csaArray, LPCWSTR pwszValue);
|
| 105 |
+
|
| 106 |
+
BOOL IsReference(LPCWSTR lpwszPropertyName);
|
| 107 |
+
const CHString &GetNamespace();
|
| 108 |
+
|
| 109 |
+
private:
|
| 110 |
+
|
| 111 |
+
CHString m_sNamespace;
|
| 112 |
+
long m_lFlags;
|
| 113 |
+
IWbemClassObject *m_IClass;
|
| 114 |
+
CHString m_sQueryFormat;
|
| 115 |
+
|
| 116 |
+
void Reset(void);
|
| 117 |
+
bool m_bKeysOnly;
|
| 118 |
+
bool m_AddKeys;
|
| 119 |
+
CHString m_sQuery;
|
| 120 |
+
bstr_t m_bstrtClassName;
|
| 121 |
+
|
| 122 |
+
};
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 126 |
+
#pragma endregion
|
| 127 |
+
|
| 128 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/event.xsd
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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t="http://schemas.microsoft.com/win/2004/08/events/event">
|
| 2 |
+
<xs:simpleType name="GUIDType">
|
| 3 |
+
<xs:restriction base="xs:string">
|
| 4 |
+
<xs:pattern value="\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}"/>
|
| 5 |
+
</xs:restriction>
|
| 6 |
+
</xs:simpleType>
|
| 7 |
+
<xs:complexType name="DataType">
|
| 8 |
+
<xs:simpleContent>
|
| 9 |
+
<xs:extension base="xs:string">
|
| 10 |
+
<xs:attribute name="Name" type="xs:string" use="optional"/>
|
| 11 |
+
<xs:attribute name="Type" type="xs:QName" use="optional"/>
|
| 12 |
+
</xs:extension>
|
| 13 |
+
</xs:simpleContent>
|
| 14 |
+
</xs:complexType>
|
| 15 |
+
<xs:simpleType name="HexInt32Type">
|
| 16 |
+
<xs:annotation>
|
| 17 |
+
<xs:documentation> Hex 1-8 digits in size</xs:documentation>
|
| 18 |
+
</xs:annotation>
|
| 19 |
+
<xs:restriction base="xs:string">
|
| 20 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,8}"/>
|
| 21 |
+
</xs:restriction>
|
| 22 |
+
</xs:simpleType>
|
| 23 |
+
<xs:simpleType name="HexInt64Type">
|
| 24 |
+
<xs:annotation>
|
| 25 |
+
<xs:documentation> Hex 1-16 digits in size</xs:documentation>
|
| 26 |
+
</xs:annotation>
|
| 27 |
+
<xs:restriction base="xs:string">
|
| 28 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,16}"/>
|
| 29 |
+
</xs:restriction>
|
| 30 |
+
</xs:simpleType>
|
| 31 |
+
<xs:complexType name="ComplexDataType">
|
| 32 |
+
<xs:sequence>
|
| 33 |
+
<xs:element name="Data" type="evt:DataType" minOccurs="0" maxOccurs="unbounded"/>
|
| 34 |
+
</xs:sequence>
|
| 35 |
+
<xs:attribute name="Name" type="xs:string" use="optional"/>
|
| 36 |
+
</xs:complexType>
|
| 37 |
+
<xs:complexType name="SystemPropertiesType">
|
| 38 |
+
<xs:sequence>
|
| 39 |
+
<xs:element name="Provider">
|
| 40 |
+
<xs:complexType>
|
| 41 |
+
<xs:attribute name="Name" type="xs:anyURI" use="optional"/>
|
| 42 |
+
<xs:attribute name="Guid" type="evt:GUIDType" use="optional"/>
|
| 43 |
+
<xs:attribute name="EventSourceName" type="xs:string" use="optional"/>
|
| 44 |
+
</xs:complexType>
|
| 45 |
+
</xs:element>
|
| 46 |
+
<xs:element name="EventID">
|
| 47 |
+
<xs:complexType>
|
| 48 |
+
<xs:simpleContent>
|
| 49 |
+
<xs:extension base="xs:unsignedShort">
|
| 50 |
+
<xs:attribute name="Qualifiers" type="xs:unsignedShort" use="optional"/>
|
| 51 |
+
</xs:extension>
|
| 52 |
+
</xs:simpleContent>
|
| 53 |
+
</xs:complexType>
|
| 54 |
+
</xs:element>
|
| 55 |
+
<xs:element name="Version" type="xs:unsignedByte" minOccurs="0"/>
|
| 56 |
+
<xs:element name="Level" type="xs:unsignedByte" minOccurs="0"/>
|
| 57 |
+
<xs:element name="Task" type="xs:unsignedShort" minOccurs="0"/>
|
| 58 |
+
<xs:element name="Opcode" type="xs:unsignedByte" minOccurs="0"/>
|
| 59 |
+
<xs:element name="Keywords" type="evt:HexInt64Type" minOccurs="0"/>
|
| 60 |
+
<xs:element name="TimeCreated" minOccurs="0">
|
| 61 |
+
<xs:complexType>
|
| 62 |
+
<xs:attribute name="SystemTime" type="xs:dateTime" use="optional"/>
|
| 63 |
+
<xs:attribute name="RawTime" type="xs:unsignedLong" use="optional"/>
|
| 64 |
+
</xs:complexType>
|
| 65 |
+
<xs:key name="uniqueAtt">
|
| 66 |
+
<xs:selector xpath="."/>
|
| 67 |
+
<xs:field xpath="@SystemTime|@RawTime"/>
|
| 68 |
+
</xs:key>
|
| 69 |
+
</xs:element>
|
| 70 |
+
<xs:element name="EventRecordID" minOccurs="0">
|
| 71 |
+
<xs:complexType>
|
| 72 |
+
<xs:simpleContent>
|
| 73 |
+
<xs:extension base="xs:unsignedLong"/>
|
| 74 |
+
</xs:simpleContent>
|
| 75 |
+
</xs:complexType>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="Correlation" minOccurs="0">
|
| 78 |
+
<xs:complexType>
|
| 79 |
+
<xs:attribute name="ActivityID" type="evt:GUIDType" use="optional"/>
|
| 80 |
+
<xs:attribute name="RelatedActivityID" type="evt:GUIDType" use="optional"/>
|
| 81 |
+
</xs:complexType>
|
| 82 |
+
</xs:element>
|
| 83 |
+
<xs:element name="Execution" minOccurs="0">
|
| 84 |
+
<xs:complexType>
|
| 85 |
+
<xs:attribute name="ProcessID" type="xs:unsignedInt" use="required"/>
|
| 86 |
+
<xs:attribute name="ThreadID" type="xs:unsignedInt" use="required"/>
|
| 87 |
+
<xs:attribute name="ProcessorID" type="xs:unsignedByte" use="optional"/>
|
| 88 |
+
<xs:attribute name="SessionID" type="xs:unsignedInt" use="optional"/>
|
| 89 |
+
<xs:attribute name="KernelTime" type="xs:unsignedInt" use="optional"/>
|
| 90 |
+
<xs:attribute name="UserTime" type="xs:unsignedInt" use="optional"/>
|
| 91 |
+
<xs:attribute name="ProcessorTime" type="xs:unsignedInt" use="optional"/>
|
| 92 |
+
</xs:complexType>
|
| 93 |
+
</xs:element>
|
| 94 |
+
<xs:element name="Channel" type="xs:anyURI" minOccurs="0"/>
|
| 95 |
+
<xs:element name="Computer" type="xs:string"/>
|
| 96 |
+
<xs:element name="Security" minOccurs="0">
|
| 97 |
+
<xs:complexType>
|
| 98 |
+
<xs:attribute name="UserID" type="xs:string" use="optional"/>
|
| 99 |
+
</xs:complexType>
|
| 100 |
+
</xs:element>
|
| 101 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 102 |
+
</xs:sequence>
|
| 103 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 104 |
+
</xs:complexType>
|
| 105 |
+
<xs:complexType name="EventDataType">
|
| 106 |
+
<xs:sequence>
|
| 107 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 108 |
+
<xs:element name="Data" type="evt:DataType"/>
|
| 109 |
+
<xs:element name="ComplexData" type="evt:ComplexDataType"/>
|
| 110 |
+
</xs:choice>
|
| 111 |
+
<xs:element name="Binary" type="xs:hexBinary" minOccurs="0">
|
| 112 |
+
<xs:annotation>
|
| 113 |
+
<xs:documentation>Classic eventlog binary data</xs:documentation>
|
| 114 |
+
</xs:annotation>
|
| 115 |
+
</xs:element>
|
| 116 |
+
</xs:sequence>
|
| 117 |
+
<xs:attribute name="Name" type="xs:string" use="optional"/>
|
| 118 |
+
</xs:complexType>
|
| 119 |
+
<xs:complexType name="UserDataType">
|
| 120 |
+
<xs:sequence>
|
| 121 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 122 |
+
</xs:sequence>
|
| 123 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 124 |
+
</xs:complexType>
|
| 125 |
+
<xs:complexType name="DebugDataType">
|
| 126 |
+
<xs:sequence>
|
| 127 |
+
<xs:element name="SequenceNumber" type="xs:unsignedInt" minOccurs="0"/>
|
| 128 |
+
<xs:element name="FlagsName" type="xs:string" minOccurs="0"/>
|
| 129 |
+
<xs:element name="LevelName" type="xs:string" minOccurs="0"/>
|
| 130 |
+
<xs:element name="Component" type="xs:string"/>
|
| 131 |
+
<xs:element name="SubComponent" type="xs:string" minOccurs="0"/>
|
| 132 |
+
<xs:element name="FileLine" type="xs:string" minOccurs="0"/>
|
| 133 |
+
<xs:element name="Function" type="xs:string" minOccurs="0"/>
|
| 134 |
+
<xs:element name="Message" type="xs:string"/>
|
| 135 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 136 |
+
</xs:sequence>
|
| 137 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 138 |
+
</xs:complexType>
|
| 139 |
+
<xs:complexType name="ProcessingErrorDataType">
|
| 140 |
+
<xs:sequence>
|
| 141 |
+
<xs:element name="ErrorCode" type="xs:unsignedInt"/>
|
| 142 |
+
<xs:element name="DataItemName" type="xs:string"/>
|
| 143 |
+
<xs:element name="EventPayload" type="xs:hexBinary"/>
|
| 144 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 145 |
+
</xs:sequence>
|
| 146 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 147 |
+
</xs:complexType>
|
| 148 |
+
<xs:complexType name="RenderingInfoType">
|
| 149 |
+
<xs:sequence>
|
| 150 |
+
<xs:element name="Message" type="xs:string" minOccurs="0"/>
|
| 151 |
+
<xs:element name="Level" type="xs:string" minOccurs="0"/>
|
| 152 |
+
<xs:element name="Opcode" type="xs:string" minOccurs="0"/>
|
| 153 |
+
<xs:element name="Task" type="xs:string" minOccurs="0"/>
|
| 154 |
+
<xs:element name="Channel" type="xs:string" minOccurs="0"/>
|
| 155 |
+
<xs:element name="Provider" type="xs:string" minOccurs="0"/>
|
| 156 |
+
<xs:element name="Keywords" minOccurs="0">
|
| 157 |
+
<xs:complexType>
|
| 158 |
+
<xs:sequence>
|
| 159 |
+
<xs:element name="Keyword" type="xs:string" minOccurs="0" maxOccurs="64"/>
|
| 160 |
+
</xs:sequence>
|
| 161 |
+
</xs:complexType>
|
| 162 |
+
</xs:element>
|
| 163 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 164 |
+
</xs:sequence>
|
| 165 |
+
<xs:attribute name="Culture" type="xs:language" use="required"/>
|
| 166 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 167 |
+
</xs:complexType>
|
| 168 |
+
<xs:complexType name="EventType">
|
| 169 |
+
<xs:sequence>
|
| 170 |
+
<xs:element name="System" type="evt:SystemPropertiesType"/>
|
| 171 |
+
<xs:choice>
|
| 172 |
+
<xs:element name="EventData" type="evt:EventDataType" minOccurs="0">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation>Generic event</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
</xs:element>
|
| 177 |
+
<xs:element name="UserData" type="evt:UserDataType" minOccurs="0">
|
| 178 |
+
<xs:annotation>
|
| 179 |
+
<xs:documentation>Custom event</xs:documentation>
|
| 180 |
+
</xs:annotation>
|
| 181 |
+
</xs:element>
|
| 182 |
+
<xs:element name="DebugData" type="evt:DebugDataType" minOccurs="0">
|
| 183 |
+
<xs:annotation>
|
| 184 |
+
<xs:documentation>WPP debug event</xs:documentation>
|
| 185 |
+
</xs:annotation>
|
| 186 |
+
</xs:element>
|
| 187 |
+
<xs:element name="BinaryEventData" type="xs:hexBinary" minOccurs="0">
|
| 188 |
+
<xs:annotation>
|
| 189 |
+
<xs:documentation>Non schematized event</xs:documentation>
|
| 190 |
+
</xs:annotation>
|
| 191 |
+
</xs:element>
|
| 192 |
+
<xs:element name="ProcessingErrorData" type="evt:ProcessingErrorDataType" minOccurs="0">
|
| 193 |
+
<xs:annotation>
|
| 194 |
+
<xs:documentation>Instrumentation event</xs:documentation>
|
| 195 |
+
</xs:annotation>
|
| 196 |
+
</xs:element>
|
| 197 |
+
</xs:choice>
|
| 198 |
+
<xs:element name="RenderingInfo" type="evt:RenderingInfoType" minOccurs="0"/>
|
| 199 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 200 |
+
</xs:sequence>
|
| 201 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 202 |
+
</xs:complexType>
|
| 203 |
+
<xs:element name="Event" type="evt:EventType"/>
|
| 204 |
+
</xs:schema>
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eventlogquery.xsd
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<xs:schema targetNamespace="http://schemas.microsoft.com/win/2004/08/events/eventquery" elementFormDefault="qualified" xmlns="http://schemas.microsoft.com/win/2004/08/events/eventquery" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
| 3 |
+
<xs:complexType name="QueryType">
|
| 4 |
+
<xs:choice maxOccurs="unbounded">
|
| 5 |
+
<xs:element name="Select">
|
| 6 |
+
<xs:complexType mixed="true">
|
| 7 |
+
<xs:attribute name="Path" type="xs:anyURI" use="optional"/>
|
| 8 |
+
</xs:complexType>
|
| 9 |
+
</xs:element>
|
| 10 |
+
<xs:element name="Suppress">
|
| 11 |
+
<xs:complexType mixed="true">
|
| 12 |
+
<xs:attribute name="Path" type="xs:anyURI" use="optional"/>
|
| 13 |
+
</xs:complexType>
|
| 14 |
+
</xs:element>
|
| 15 |
+
</xs:choice>
|
| 16 |
+
<xs:attribute name="Id" type="xs:long" use="optional"/>
|
| 17 |
+
<xs:attribute name="Path" type="xs:anyURI" use="optional"/>
|
| 18 |
+
</xs:complexType>
|
| 19 |
+
<xs:complexType name="QueryListType">
|
| 20 |
+
<xs:sequence maxOccurs="unbounded">
|
| 21 |
+
<xs:element name="Query" type="QueryType"/>
|
| 22 |
+
</xs:sequence>
|
| 23 |
+
</xs:complexType>
|
| 24 |
+
<xs:element name="QueryList" type="QueryListType"/>
|
| 25 |
+
</xs:schema>
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eventman.xsd
ADDED
|
@@ -0,0 +1,1332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<xs:schema
|
| 2 |
+
targetNamespace="http://schemas.microsoft.com/win/2004/08/events"
|
| 3 |
+
elementFormDefault="qualified"
|
| 4 |
+
xmlns:man="http://schemas.microsoft.com/win/2004/08/events"
|
| 5 |
+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
| 6 |
+
|
| 7 |
+
<!-- SECTION: instrumentationManifest element (root) -->
|
| 8 |
+
|
| 9 |
+
<xs:element name="instrumentationManifest" type="man:InstrumentationManifestType">
|
| 10 |
+
<xs:annotation>
|
| 11 |
+
<xs:documentation>
|
| 12 |
+
Root element of an instrumentation manifest.
|
| 13 |
+
</xs:documentation>
|
| 14 |
+
</xs:annotation>
|
| 15 |
+
</xs:element>
|
| 16 |
+
|
| 17 |
+
<xs:element name="events" type="man:EventsType">
|
| 18 |
+
<xs:annotation>
|
| 19 |
+
<xs:documentation>
|
| 20 |
+
Not a valid root element for an instrumentation manifest. Used when
|
| 21 |
+
storing instrumentation data within other XML documents.
|
| 22 |
+
</xs:documentation>
|
| 23 |
+
</xs:annotation>
|
| 24 |
+
</xs:element>
|
| 25 |
+
|
| 26 |
+
<xs:complexType name="InstrumentationManifestType">
|
| 27 |
+
<xs:annotation>
|
| 28 |
+
<xs:documentation>
|
| 29 |
+
An instrumentation manifest may contain MESSAGETABLE strings, ETW
|
| 30 |
+
providers, and/or a Windows Performance Counter V2 provider.
|
| 31 |
+
|
| 32 |
+
Manifests containing MESSAGETABLE strings can be compiled with mc.exe.
|
| 33 |
+
|
| 34 |
+
Manifests containing ETW providers can be compiled with mc.exe,
|
| 35 |
+
installed or uninstalled with wevtutil.exe, and used with TDH APIs or
|
| 36 |
+
ETW tools to decode ETL traces.
|
| 37 |
+
|
| 38 |
+
Manifests containing a Performance Counter V2 provider can be compiled
|
| 39 |
+
with ctrpp.exe, installed using lodctr.exe, and uninstalled using
|
| 40 |
+
unlodctr.exe.
|
| 41 |
+
|
| 42 |
+
Note that instrumentation manifests must be uninstalled before they can
|
| 43 |
+
be reinstalled.
|
| 44 |
+
</xs:documentation>
|
| 45 |
+
</xs:annotation>
|
| 46 |
+
<xs:choice maxOccurs="3">
|
| 47 |
+
<xs:element name="metadata" type="man:MetadataType"/>
|
| 48 |
+
<xs:element name="instrumentation" type="man:InstrumentationType"/>
|
| 49 |
+
<xs:element name="localization" type="man:LocalizationType"/>
|
| 50 |
+
<xs:any namespace="##other" processContents="lax" maxOccurs="unbounded"/>
|
| 51 |
+
</xs:choice>
|
| 52 |
+
</xs:complexType>
|
| 53 |
+
|
| 54 |
+
<xs:complexType name="InstrumentationType">
|
| 55 |
+
<xs:annotation>
|
| 56 |
+
<xs:documentation>
|
| 57 |
+
May contain MESSAGETABLE strings, ETW providers, and/or a Windows
|
| 58 |
+
Performance Counter V2 provider.
|
| 59 |
+
|
| 60 |
+
The events element is used for MESSAGETABLE strings and ETW providers.
|
| 61 |
+
|
| 62 |
+
The counters element (defined in the counterman.xsd schema) is used for
|
| 63 |
+
a Windows Performance Counter V2 provider.
|
| 64 |
+
</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 67 |
+
<xs:element name="events" type="man:EventsType"/>
|
| 68 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 69 |
+
</xs:choice>
|
| 70 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 71 |
+
</xs:complexType>
|
| 72 |
+
|
| 73 |
+
<xs:complexType name="EventsType">
|
| 74 |
+
<xs:annotation>
|
| 75 |
+
<xs:documentation>
|
| 76 |
+
Contains MESSAGETABLE strings and ETW providers.
|
| 77 |
+
</xs:documentation>
|
| 78 |
+
</xs:annotation>
|
| 79 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 80 |
+
<xs:element name="provider" type="man:ProviderType"/>
|
| 81 |
+
<xs:element name="messageTable" type="man:EventsMessageTableType"/>
|
| 82 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 83 |
+
</xs:choice>
|
| 84 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 85 |
+
</xs:complexType>
|
| 86 |
+
|
| 87 |
+
<!-- SECTION: provider (ETW provider declarations) -->
|
| 88 |
+
|
| 89 |
+
<xs:complexType name="ProviderType">
|
| 90 |
+
<xs:annotation>
|
| 91 |
+
<xs:documentation>
|
| 92 |
+
Defines an ETW provider. A provider is a unit of organization for ETW
|
| 93 |
+
event definitions. At runtime, the provider GUID is used when opening
|
| 94 |
+
the ETW handle. When collecting a trace, the provider's control GUID is
|
| 95 |
+
used to enable or disable the collection of the provider's events.
|
| 96 |
+
Within the trace data, the provider GUID identifies the provider as the
|
| 97 |
+
source of the event. When the trace data is processed, the provider
|
| 98 |
+
GUID is used to match an event to the manifest that contains the event
|
| 99 |
+
definitions needed to decode it.
|
| 100 |
+
</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 103 |
+
<xs:element name="channels" type="man:ChannelListType"/>
|
| 104 |
+
<xs:element name="levels" type="man:LevelListType"/>
|
| 105 |
+
<xs:element name="tasks" type="man:TaskListType"/>
|
| 106 |
+
<xs:element name="opcodes" type="man:OpcodeListType"/>
|
| 107 |
+
<xs:element name="keywords" type="man:KeywordListType"/>
|
| 108 |
+
<xs:element name="maps" type="man:MapType"/>
|
| 109 |
+
<xs:element name="namedQueries" type="man:NamedQueryType"/>
|
| 110 |
+
<xs:element name="templates" type="man:TemplateListType"/>
|
| 111 |
+
<xs:element name="events" type="man:DefinitionType"/>
|
| 112 |
+
<xs:element name="filters" type="man:FilterListType"/>
|
| 113 |
+
<xs:element name="traits" type="man:TraitsType"/>
|
| 114 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 115 |
+
</xs:choice>
|
| 116 |
+
<xs:attribute name="name" type="xs:anyURI" use="required"/>
|
| 117 |
+
<xs:attribute name="namespace" type="man:NamespaceType" use="optional"/>
|
| 118 |
+
<xs:attribute name="guid" type="man:GUIDType" use="required"/>
|
| 119 |
+
<xs:attribute name="controlGuid" type="man:GUIDType" use="optional">
|
| 120 |
+
<xs:annotation>
|
| 121 |
+
<xs:documentation>
|
| 122 |
+
A manifest-based ETW provider has a decode GUID (used to locate the manifest)
|
| 123 |
+
and a control GUID (used to enable the provider or filter events). Normally,
|
| 124 |
+
the same GUID (the provider guid) is used for both decode and control.
|
| 125 |
+
If distinct values are needed for the decode and control GUIDs, set the
|
| 126 |
+
"guid" attribute to the decode GUID and set the "controlGuid" attribute to the
|
| 127 |
+
control GUID. Note that to avoid provider name conflicts, if the controlGuid
|
| 128 |
+
attribute is used, the provider name must end with the decode guid, e.g.
|
| 129 |
+
|
| 130 |
+
guid="{54bab802-bb0b-4b4a-9ce9-7360a0120b3e}"
|
| 131 |
+
name="MyProvider.54bab802bb0b4b4a9ce97360a0120b3e"
|
| 132 |
+
controlGuid="{74d557d9-4a8e-4a3f-9a32-3f1a0eab71ba}"
|
| 133 |
+
|
| 134 |
+
If a provider uses distinct decode and control GUIDs, the resulting traces may
|
| 135 |
+
not decode properly when decoded on Windows versions prior to Windows 10
|
| 136 |
+
Fall Creators Update (2017).
|
| 137 |
+
|
| 138 |
+
Note that distinct decode and control GUIDs are typically used to support
|
| 139 |
+
tool-generated manifests and are generally unnecessary for hand-maintained
|
| 140 |
+
manifests.
|
| 141 |
+
</xs:documentation>
|
| 142 |
+
</xs:annotation>
|
| 143 |
+
</xs:attribute>
|
| 144 |
+
<xs:attribute name="resourceFileName" type="man:filePath" use="optional">
|
| 145 |
+
<xs:annotation>
|
| 146 |
+
<xs:documentation>
|
| 147 |
+
Name of the executable file into which the provider's non-localized template
|
| 148 |
+
resource is linked, usually the same as the provider's binary.
|
| 149 |
+
|
| 150 |
+
Since the full install path of the provider binary is usually determined at
|
| 151 |
+
install time, the value of this attribute is usually overridden by using
|
| 152 |
+
wevtutil.exe's /rf:FullResourceFilePath parameter.
|
| 153 |
+
</xs:documentation>
|
| 154 |
+
</xs:annotation>
|
| 155 |
+
</xs:attribute>
|
| 156 |
+
<xs:attribute name="messageFileName" type="man:filePath" use="optional">
|
| 157 |
+
<xs:annotation>
|
| 158 |
+
<xs:documentation>
|
| 159 |
+
Name of the executable file into which the provider's localizable message
|
| 160 |
+
resource is linked, usually the same as the provider's binary.
|
| 161 |
+
|
| 162 |
+
Since the full install path of the provider binary is usually determined at
|
| 163 |
+
install time, the value of this attribute is usually overridden by using
|
| 164 |
+
wevtutil.exe's /mf:FullMessageFilePath parameter.
|
| 165 |
+
</xs:documentation>
|
| 166 |
+
</xs:annotation>
|
| 167 |
+
</xs:attribute>
|
| 168 |
+
<xs:attribute name="parameterFileName" type="man:filePath" use="optional">
|
| 169 |
+
<xs:annotation>
|
| 170 |
+
<xs:documentation>Deprecated.</xs:documentation>
|
| 171 |
+
</xs:annotation>
|
| 172 |
+
</xs:attribute>
|
| 173 |
+
<xs:attribute name="helpLink" type="xs:anyURI" use="optional"/>
|
| 174 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="required"/>
|
| 175 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 176 |
+
<xs:attribute name="source" use="optional" default="Xml">
|
| 177 |
+
<xs:simpleType>
|
| 178 |
+
<xs:restriction base="xs:string">
|
| 179 |
+
<xs:enumeration value="Xml"/>
|
| 180 |
+
<xs:enumeration value="Wbem"/>
|
| 181 |
+
</xs:restriction>
|
| 182 |
+
</xs:simpleType>
|
| 183 |
+
</xs:attribute>
|
| 184 |
+
<xs:attribute name="warnOnApplicationCompatibilityError" type="xs:boolean" use="optional" default="false"/>
|
| 185 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 186 |
+
</xs:complexType>
|
| 187 |
+
|
| 188 |
+
<xs:complexType name="ChannelListType">
|
| 189 |
+
<xs:annotation>
|
| 190 |
+
<xs:documentation>
|
| 191 |
+
Use channels to describe the destinations for your events. Each channel you
|
| 192 |
+
define here will show up in the Windows Event Viewer.
|
| 193 |
+
</xs:documentation>
|
| 194 |
+
</xs:annotation>
|
| 195 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 196 |
+
<xs:element name="importChannel" type="man:ImportChannelType"/>
|
| 197 |
+
<xs:element name="channel" type="man:ChannelType"/>
|
| 198 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 199 |
+
</xs:choice>
|
| 200 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 201 |
+
</xs:complexType>
|
| 202 |
+
|
| 203 |
+
<xs:complexType name="ImportChannelType" mixed="true">
|
| 204 |
+
<xs:annotation>
|
| 205 |
+
<xs:documentation>
|
| 206 |
+
Declares a channel that is used by events in this manifest but is not
|
| 207 |
+
owned by this manifest. This may be used to reference well-known
|
| 208 |
+
channels from winmeta.xml or to reference channels owned by other
|
| 209 |
+
components that this manifest will depend upon.
|
| 210 |
+
|
| 211 |
+
Note that only the attributes of this element are significant. The text
|
| 212 |
+
content of this element is not used by mc.exe.
|
| 213 |
+
</xs:documentation>
|
| 214 |
+
</xs:annotation>
|
| 215 |
+
<xs:attribute name="chid" type="xs:token" use="optional"/>
|
| 216 |
+
<xs:attribute name="name" type="xs:anyURI" use="required"/>
|
| 217 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 218 |
+
</xs:complexType>
|
| 219 |
+
|
| 220 |
+
<xs:complexType name="ChannelType" mixed="true">
|
| 221 |
+
<xs:annotation>
|
| 222 |
+
<xs:documentation>
|
| 223 |
+
Defines a channel that is used by events in this manifest and is owned
|
| 224 |
+
by this manifest.
|
| 225 |
+
|
| 226 |
+
Note that only the attributes of this element are significant. The text
|
| 227 |
+
content of this element is not used by mc.exe.
|
| 228 |
+
</xs:documentation>
|
| 229 |
+
</xs:annotation>
|
| 230 |
+
<xs:sequence>
|
| 231 |
+
<xs:element name="logging" type="man:ChannelLoggingType" minOccurs="0"/>
|
| 232 |
+
<xs:element name="publishing" type="man:ChannelPublishingType" minOccurs="0"/>
|
| 233 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 234 |
+
</xs:sequence>
|
| 235 |
+
<xs:attribute name="name" type="xs:anyURI" use="required"/>
|
| 236 |
+
<xs:attribute name="chid" type="xs:token" use="optional"/>
|
| 237 |
+
<xs:attribute name="type" use="required">
|
| 238 |
+
<xs:simpleType>
|
| 239 |
+
<xs:restriction base="xs:string">
|
| 240 |
+
<xs:enumeration value="Admin"/>
|
| 241 |
+
<xs:enumeration value="Operational"/>
|
| 242 |
+
<xs:enumeration value="Analytic"/>
|
| 243 |
+
<xs:enumeration value="Debug"/>
|
| 244 |
+
</xs:restriction>
|
| 245 |
+
</xs:simpleType>
|
| 246 |
+
</xs:attribute>
|
| 247 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 248 |
+
<xs:attribute name="access" type="xs:string" use="optional"/>
|
| 249 |
+
<xs:attribute name="isolation" use="optional">
|
| 250 |
+
<xs:annotation>
|
| 251 |
+
<xs:documentation>
|
| 252 |
+
Default publishing session/security if not specified explicitly by
|
| 253 |
+
the channel access attribute.
|
| 254 |
+
</xs:documentation>
|
| 255 |
+
</xs:annotation>
|
| 256 |
+
<xs:simpleType>
|
| 257 |
+
<xs:restriction base="xs:string">
|
| 258 |
+
<xs:enumeration value="Application"/>
|
| 259 |
+
<xs:enumeration value="System"/>
|
| 260 |
+
<xs:enumeration value="Custom"/>
|
| 261 |
+
</xs:restriction>
|
| 262 |
+
</xs:simpleType>
|
| 263 |
+
</xs:attribute>
|
| 264 |
+
<xs:attribute name="enabled" type="xs:boolean" use="optional" default="false"/>
|
| 265 |
+
<xs:attribute name="value" type="man:UInt8Type" use="optional"/>
|
| 266 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 267 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 268 |
+
</xs:complexType>
|
| 269 |
+
|
| 270 |
+
<xs:complexType name="ChannelLoggingType">
|
| 271 |
+
<xs:annotation>
|
| 272 |
+
<xs:documentation>Channel logging config</xs:documentation>
|
| 273 |
+
</xs:annotation>
|
| 274 |
+
<xs:sequence>
|
| 275 |
+
<xs:element name="autoBackup" type="xs:boolean" minOccurs="0"/>
|
| 276 |
+
<xs:element name="retention" type="xs:boolean" default="false" minOccurs="0"/>
|
| 277 |
+
<xs:element name="maxSize" type="man:UInt64Type" default="1048576" minOccurs="0"/>
|
| 278 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 279 |
+
</xs:sequence>
|
| 280 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 281 |
+
</xs:complexType>
|
| 282 |
+
|
| 283 |
+
<xs:complexType name="ChannelPublishingType">
|
| 284 |
+
<xs:annotation>
|
| 285 |
+
<xs:documentation>Channel publishing config</xs:documentation>
|
| 286 |
+
</xs:annotation>
|
| 287 |
+
<xs:sequence>
|
| 288 |
+
<xs:element name="level" type="man:UInt8Type" default="0" minOccurs="0"/>
|
| 289 |
+
<xs:element name="keywords" type="man:UInt64Type" default="0" minOccurs="0"/>
|
| 290 |
+
<xs:element name="controlGuid" type="man:GUIDType" minOccurs="0"/>
|
| 291 |
+
<xs:element name="bufferSize" type="man:UInt32Type" minOccurs="0">
|
| 292 |
+
<xs:annotation>
|
| 293 |
+
<xs:documentation>Amount of memory allocated for the session buffers (KB)</xs:documentation>
|
| 294 |
+
</xs:annotation>
|
| 295 |
+
</xs:element>
|
| 296 |
+
<xs:element name="fileMax" type="man:UInt32Type" minOccurs="0">
|
| 297 |
+
<xs:annotation>
|
| 298 |
+
<xs:documentation>Number of etl files to create across enablement</xs:documentation>
|
| 299 |
+
</xs:annotation>
|
| 300 |
+
</xs:element>
|
| 301 |
+
<xs:element name="minBuffers" type="man:UInt32Type" minOccurs="0">
|
| 302 |
+
<xs:annotation>
|
| 303 |
+
<xs:documentation>Minimum number of session buffers</xs:documentation>
|
| 304 |
+
</xs:annotation>
|
| 305 |
+
</xs:element>
|
| 306 |
+
<xs:element name="maxBuffers" type="man:UInt32Type" minOccurs="0">
|
| 307 |
+
<xs:annotation>
|
| 308 |
+
<xs:documentation>Maximum number of session buffers</xs:documentation>
|
| 309 |
+
</xs:annotation>
|
| 310 |
+
</xs:element>
|
| 311 |
+
<xs:element name="latency" type="man:UInt32Type" minOccurs="0">
|
| 312 |
+
<xs:annotation>
|
| 313 |
+
<xs:documentation>Buffer flush interval (sec)</xs:documentation>
|
| 314 |
+
</xs:annotation>
|
| 315 |
+
</xs:element>
|
| 316 |
+
<xs:element name="clockType" default="SystemTime" minOccurs="0">
|
| 317 |
+
<xs:annotation>
|
| 318 |
+
<xs:documentation>Clock resolution</xs:documentation>
|
| 319 |
+
</xs:annotation>
|
| 320 |
+
<xs:simpleType>
|
| 321 |
+
<xs:restriction base="xs:string">
|
| 322 |
+
<xs:enumeration value="SystemTime"/>
|
| 323 |
+
<xs:enumeration value="QPC"/>
|
| 324 |
+
</xs:restriction>
|
| 325 |
+
</xs:simpleType>
|
| 326 |
+
</xs:element>
|
| 327 |
+
<xs:element name="sidType" minOccurs="0">
|
| 328 |
+
<xs:simpleType>
|
| 329 |
+
<xs:restriction base="xs:string">
|
| 330 |
+
<xs:enumeration value="None"/>
|
| 331 |
+
<xs:enumeration value="Publishing"/>
|
| 332 |
+
</xs:restriction>
|
| 333 |
+
</xs:simpleType>
|
| 334 |
+
</xs:element>
|
| 335 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 336 |
+
</xs:sequence>
|
| 337 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 338 |
+
</xs:complexType>
|
| 339 |
+
|
| 340 |
+
<xs:complexType name="LevelListType">
|
| 341 |
+
<xs:annotation>
|
| 342 |
+
<xs:documentation>
|
| 343 |
+
Defines custom levels for use by this provider. Levels are used to
|
| 344 |
+
filter events.
|
| 345 |
+
|
| 346 |
+
Note that winmeta.xml provides predefined levels win:LogAlways,
|
| 347 |
+
win:Critical, win:Error, win:Warning, win:Informational, win:Verbose.
|
| 348 |
+
Custom levels must use values 16-255.
|
| 349 |
+
</xs:documentation>
|
| 350 |
+
</xs:annotation>
|
| 351 |
+
<xs:sequence>
|
| 352 |
+
<xs:element name="level" type="man:LevelType" minOccurs="0" maxOccurs="unbounded"/>
|
| 353 |
+
</xs:sequence>
|
| 354 |
+
</xs:complexType>
|
| 355 |
+
|
| 356 |
+
<xs:complexType name="LevelType" mixed="true">
|
| 357 |
+
<xs:annotation>
|
| 358 |
+
<xs:documentation>
|
| 359 |
+
Defines a custom level for use by this provider.
|
| 360 |
+
|
| 361 |
+
Note that only the attributes of this element are significant. The text
|
| 362 |
+
content of this element is not used by mc.exe.
|
| 363 |
+
</xs:documentation>
|
| 364 |
+
</xs:annotation>
|
| 365 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 366 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 367 |
+
<xs:attribute name="value" type="man:UInt8Type" use="required"/>
|
| 368 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 369 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 370 |
+
</xs:complexType>
|
| 371 |
+
|
| 372 |
+
<xs:complexType name="TaskListType">
|
| 373 |
+
<xs:annotation>
|
| 374 |
+
<xs:documentation>
|
| 375 |
+
Defines custom tasks for use by this provider. A task is a localizable
|
| 376 |
+
string label that can be applied to an event.
|
| 377 |
+
|
| 378 |
+
Note that winmeta.xml provides predefined task win:None.
|
| 379 |
+
Custom tasks must use values 1-65535.
|
| 380 |
+
</xs:documentation>
|
| 381 |
+
</xs:annotation>
|
| 382 |
+
<xs:sequence>
|
| 383 |
+
<xs:element name="task" type="man:TaskType" minOccurs="0" maxOccurs="unbounded"/>
|
| 384 |
+
</xs:sequence>
|
| 385 |
+
</xs:complexType>
|
| 386 |
+
|
| 387 |
+
<xs:complexType name="TaskType" mixed="true">
|
| 388 |
+
<xs:annotation>
|
| 389 |
+
<xs:documentation>
|
| 390 |
+
Defines a custom task for use by this provider.
|
| 391 |
+
|
| 392 |
+
Note that only the attributes of this element are significant. The text
|
| 393 |
+
content of this element is not used by mc.exe.
|
| 394 |
+
</xs:documentation>
|
| 395 |
+
</xs:annotation>
|
| 396 |
+
<xs:sequence>
|
| 397 |
+
<xs:element name="opcodes" type="man:OpcodeListType" minOccurs="0"/>
|
| 398 |
+
</xs:sequence>
|
| 399 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 400 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 401 |
+
<xs:attribute name="value" type="man:UInt16Type" use="required"/>
|
| 402 |
+
<xs:attribute name="eventGUID" type="man:GUIDType" use="optional"/>
|
| 403 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 404 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 405 |
+
</xs:complexType>
|
| 406 |
+
|
| 407 |
+
<xs:complexType name="OpcodeListType">
|
| 408 |
+
<xs:annotation>
|
| 409 |
+
<xs:documentation>
|
| 410 |
+
Defines custom opcodes for use by this provider. An opcode is a
|
| 411 |
+
semantic category for certain special types of event. For example, the
|
| 412 |
+
Start opcode is used on events that trace the beginning of an activity,
|
| 413 |
+
and the Stop opcode is used on events that trace the end.
|
| 414 |
+
|
| 415 |
+
Note that winmeta.xml provides predefined opcodes win:Info, win:Start,
|
| 416 |
+
win:Stop, win:DC_Start, win:DC_Stop, win:Extension, win:Reply,
|
| 417 |
+
win:Resume, win:Suspend, win:Send, win:Receive. Custom opcodes must use
|
| 418 |
+
values 10-239.
|
| 419 |
+
</xs:documentation>
|
| 420 |
+
</xs:annotation>
|
| 421 |
+
<xs:sequence>
|
| 422 |
+
<xs:element name="opcode" type="man:OpcodeType" minOccurs="0" maxOccurs="unbounded"/>
|
| 423 |
+
</xs:sequence>
|
| 424 |
+
</xs:complexType>
|
| 425 |
+
|
| 426 |
+
<xs:complexType name="OpcodeType" mixed="true">
|
| 427 |
+
<xs:annotation>
|
| 428 |
+
<xs:documentation>
|
| 429 |
+
Defines a custom opcode for use by this provider.
|
| 430 |
+
|
| 431 |
+
Note that only the attributes of this element are significant. The text
|
| 432 |
+
content of this element is not used by mc.exe.
|
| 433 |
+
</xs:documentation>
|
| 434 |
+
</xs:annotation>
|
| 435 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 436 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 437 |
+
<xs:attribute name="value" type="man:UInt8Type" use="required"/>
|
| 438 |
+
<xs:attribute name="mofValue" type="man:UInt8Type" use="optional"/>
|
| 439 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 440 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 441 |
+
</xs:complexType>
|
| 442 |
+
|
| 443 |
+
<xs:complexType name="KeywordListType">
|
| 444 |
+
<xs:annotation>
|
| 445 |
+
<xs:documentation>
|
| 446 |
+
Defines custom keywords for use by this provider. A keyword is a bit
|
| 447 |
+
(flag) that specifies a category that an event may belong to. Keywords
|
| 448 |
+
are used to filter events.
|
| 449 |
+
|
| 450 |
+
Note that winmeta.xml provides several predefined keywords. These
|
| 451 |
+
keywords should only be used for their described purpose. The reserved
|
| 452 |
+
keywords should not be used directly (mc.exe adds the reserved keywords
|
| 453 |
+
to events as appropriate based on the event's channel). Custom keywords
|
| 454 |
+
must use the low 48 bits of the keyword mask.
|
| 455 |
+
</xs:documentation>
|
| 456 |
+
</xs:annotation>
|
| 457 |
+
<xs:sequence>
|
| 458 |
+
<xs:element name="keyword" type="man:KeywordType" minOccurs="0" maxOccurs="unbounded"/>
|
| 459 |
+
</xs:sequence>
|
| 460 |
+
</xs:complexType>
|
| 461 |
+
|
| 462 |
+
<xs:complexType name="KeywordType" mixed="true">
|
| 463 |
+
<xs:annotation>
|
| 464 |
+
<xs:documentation>
|
| 465 |
+
Defines a custom keyword for use by this provider.
|
| 466 |
+
|
| 467 |
+
Note that only the attributes of this element are significant. The text
|
| 468 |
+
content of this element is not used by mc.exe.
|
| 469 |
+
</xs:documentation>
|
| 470 |
+
</xs:annotation>
|
| 471 |
+
<xs:attribute name="name" type="xs:QName" use="required">
|
| 472 |
+
<xs:annotation>
|
| 473 |
+
<xs:documentation>
|
| 474 |
+
Each keyword must have a unique name, which is used to reference the keyword
|
| 475 |
+
from the events section of the manifest.
|
| 476 |
+
</xs:documentation>
|
| 477 |
+
</xs:annotation>
|
| 478 |
+
</xs:attribute>
|
| 479 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 480 |
+
<xs:attribute name="mask" type="man:HexInt64Type" use="required">
|
| 481 |
+
<xs:annotation>
|
| 482 |
+
<xs:documentation>
|
| 483 |
+
Mask is a 64-bit value in which only one bit is set. Mask value cannot be zero.
|
| 484 |
+
The high 16 bits of the mask are reserved for definition by winmeta.xml.
|
| 485 |
+
</xs:documentation>
|
| 486 |
+
</xs:annotation>
|
| 487 |
+
</xs:attribute>
|
| 488 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 489 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 490 |
+
</xs:complexType>
|
| 491 |
+
|
| 492 |
+
<xs:complexType name="MapType">
|
| 493 |
+
<xs:annotation>
|
| 494 |
+
<xs:documentation>
|
| 495 |
+
Defines custom enumerated types (maps) for use by this provider.
|
| 496 |
+
</xs:documentation>
|
| 497 |
+
</xs:annotation>
|
| 498 |
+
<xs:choice maxOccurs="unbounded">
|
| 499 |
+
<xs:element name="valueMap" type="man:ValueMapType"/>
|
| 500 |
+
<xs:element name="bitMap" type="man:BitMapType"/>
|
| 501 |
+
</xs:choice>
|
| 502 |
+
</xs:complexType>
|
| 503 |
+
|
| 504 |
+
<xs:complexType name="ValueMapType">
|
| 505 |
+
<xs:sequence>
|
| 506 |
+
<xs:element name="map" type="man:ValueMapValueType" maxOccurs="unbounded"/>
|
| 507 |
+
</xs:sequence>
|
| 508 |
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
| 509 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 510 |
+
</xs:complexType>
|
| 511 |
+
|
| 512 |
+
<xs:complexType name="ValueMapValueType" mixed="true">
|
| 513 |
+
<xs:annotation>
|
| 514 |
+
<xs:documentation>
|
| 515 |
+
Defines an enumeration value for use in this value map.
|
| 516 |
+
|
| 517 |
+
Note that only the attributes of this element are significant. The text
|
| 518 |
+
content of this element is not used by mc.exe.
|
| 519 |
+
</xs:documentation>
|
| 520 |
+
</xs:annotation>
|
| 521 |
+
<xs:attribute name="value" type="man:UInt32Type" use="required"/>
|
| 522 |
+
<xs:attribute name="message" type="man:strTableRef" use="required"/>
|
| 523 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 524 |
+
</xs:complexType>
|
| 525 |
+
|
| 526 |
+
<xs:complexType name="BitMapType">
|
| 527 |
+
<xs:sequence>
|
| 528 |
+
<xs:element name="map" type="man:BitMapValueType" maxOccurs="unbounded"/>
|
| 529 |
+
</xs:sequence>
|
| 530 |
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
| 531 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 532 |
+
</xs:complexType>
|
| 533 |
+
|
| 534 |
+
<xs:complexType name="BitMapValueType" mixed="true">
|
| 535 |
+
<xs:annotation>
|
| 536 |
+
<xs:documentation>
|
| 537 |
+
Defines a flag value for use in this bit map.
|
| 538 |
+
|
| 539 |
+
Note that only the attributes of this element are significant. The text
|
| 540 |
+
content of this element is not used by mc.exe.
|
| 541 |
+
</xs:documentation>
|
| 542 |
+
</xs:annotation>
|
| 543 |
+
<xs:attribute name="value" type="man:HexInt32Type" use="required"/>
|
| 544 |
+
<xs:attribute name="message" type="man:strTableRef" use="required"/>
|
| 545 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 546 |
+
</xs:complexType>
|
| 547 |
+
|
| 548 |
+
<xs:complexType name="NamedQueryType">
|
| 549 |
+
<xs:sequence>
|
| 550 |
+
<xs:element name="patternMaps" type="man:PatternMapListType" minOccurs="0"/>
|
| 551 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 552 |
+
</xs:sequence>
|
| 553 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 554 |
+
</xs:complexType>
|
| 555 |
+
|
| 556 |
+
<xs:complexType name="PatternMapListType">
|
| 557 |
+
<xs:sequence>
|
| 558 |
+
<xs:element name="patternMap" type="man:PatternMapType" maxOccurs="unbounded"/>
|
| 559 |
+
</xs:sequence>
|
| 560 |
+
</xs:complexType>
|
| 561 |
+
|
| 562 |
+
<xs:complexType name="PatternMapType">
|
| 563 |
+
<xs:sequence>
|
| 564 |
+
<xs:element name="map" type="man:PatternMapValueType" maxOccurs="unbounded"/>
|
| 565 |
+
</xs:sequence>
|
| 566 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 567 |
+
<xs:attribute name="format" type="xs:anyURI" use="required"/>
|
| 568 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 569 |
+
</xs:complexType>
|
| 570 |
+
|
| 571 |
+
<xs:complexType name="PatternMapValueType" mixed="true">
|
| 572 |
+
<xs:annotation>
|
| 573 |
+
<xs:documentation>
|
| 574 |
+
Defines a value for use in this pattern map.
|
| 575 |
+
|
| 576 |
+
Note that only the attributes of this element are significant. The text
|
| 577 |
+
content of this element is not used by mc.exe.
|
| 578 |
+
</xs:documentation>
|
| 579 |
+
</xs:annotation>
|
| 580 |
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
| 581 |
+
<xs:attribute name="value" type="xs:string" use="required"/>
|
| 582 |
+
</xs:complexType>
|
| 583 |
+
|
| 584 |
+
<xs:complexType name="TemplateListType">
|
| 585 |
+
<xs:annotation>
|
| 586 |
+
<xs:documentation>
|
| 587 |
+
Use templates to describe the payload logged by an event. Many events
|
| 588 |
+
can share a template.
|
| 589 |
+
</xs:documentation>
|
| 590 |
+
</xs:annotation>
|
| 591 |
+
<xs:sequence>
|
| 592 |
+
<xs:element name="template" type="man:TemplateItemType" minOccurs="0" maxOccurs="unbounded"/>
|
| 593 |
+
</xs:sequence>
|
| 594 |
+
</xs:complexType>
|
| 595 |
+
|
| 596 |
+
<xs:complexType name="TemplateItemType">
|
| 597 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 598 |
+
<xs:element name="data" type="man:DataDefinitionType"/>
|
| 599 |
+
<xs:element name="struct" type="man:StructDefinitionType"/>
|
| 600 |
+
<xs:element name="binary" type="man:TemplateItemBinaryType"/>
|
| 601 |
+
<xs:element name="UserData" type="man:XmlType"/>
|
| 602 |
+
</xs:choice>
|
| 603 |
+
<xs:attribute name="tid" type="xs:token" use="required"/>
|
| 604 |
+
<xs:attribute name="name" type="xs:string" use="optional"/>
|
| 605 |
+
<xs:attribute name="tags" type="man:UInt32Type" use="optional">
|
| 606 |
+
<xs:annotation>
|
| 607 |
+
<xs:documentation>
|
| 608 |
+
Tags is a 28-bit user-defined metadata value applied to each event that uses
|
| 609 |
+
this template. The event producer and consumer coordinate to define the
|
| 610 |
+
semantics of the tags value. During event processing on Windows 10 Fall
|
| 611 |
+
Creators Update (2017) or later, this value can be retrieved from the
|
| 612 |
+
TRACE_EVENT_INFO Tags field.
|
| 613 |
+
</xs:documentation>
|
| 614 |
+
</xs:annotation>
|
| 615 |
+
</xs:attribute>
|
| 616 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 617 |
+
</xs:complexType>
|
| 618 |
+
|
| 619 |
+
<xs:complexType name="DataDefinitionType" mixed="true">
|
| 620 |
+
<xs:annotation>
|
| 621 |
+
<xs:documentation>
|
| 622 |
+
Defines the name and type of an event property (field).
|
| 623 |
+
|
| 624 |
+
Note that only the attributes of this element are significant. The text
|
| 625 |
+
content of this element is not used by mc.exe.
|
| 626 |
+
</xs:documentation>
|
| 627 |
+
</xs:annotation>
|
| 628 |
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
| 629 |
+
<xs:attribute name="inType" type="xs:QName" use="required"/>
|
| 630 |
+
<xs:attribute name="outType" type="xs:QName" use="optional"/>
|
| 631 |
+
<xs:attribute name="map" type="xs:string" use="optional"/>
|
| 632 |
+
<xs:attribute name="length" type="man:LengthType" use="optional"/>
|
| 633 |
+
<xs:attribute name="count" type="man:CountType" use="optional"/>
|
| 634 |
+
<xs:attribute name="tags" type="man:UInt32Type" use="optional">
|
| 635 |
+
<xs:annotation>
|
| 636 |
+
<xs:documentation>
|
| 637 |
+
Tags is a 28-bit user-defined metadata value applied to this property. The
|
| 638 |
+
event producer and consumer coordinate to define the semantics of the tags
|
| 639 |
+
value. During event processing on Windows 10 Fall Creators Update (2017) or
|
| 640 |
+
later, this value can be retrieved from the EVENT_PROPERTY_INFO Tags field.
|
| 641 |
+
</xs:documentation>
|
| 642 |
+
</xs:annotation>
|
| 643 |
+
</xs:attribute>
|
| 644 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 645 |
+
</xs:complexType>
|
| 646 |
+
|
| 647 |
+
<xs:complexType name="StructDefinitionType" mixed="true">
|
| 648 |
+
<xs:annotation>
|
| 649 |
+
<xs:documentation>
|
| 650 |
+
Defines the properties (fields) of an event structure.
|
| 651 |
+
|
| 652 |
+
Note that only the attributes of this element are significant. The text
|
| 653 |
+
content of this element is not used by mc.exe.
|
| 654 |
+
</xs:documentation>
|
| 655 |
+
</xs:annotation>
|
| 656 |
+
<xs:sequence>
|
| 657 |
+
<xs:element name="data" type="man:DataDefinitionType" maxOccurs="unbounded"/>
|
| 658 |
+
</xs:sequence>
|
| 659 |
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
| 660 |
+
<xs:attribute name="count" type="man:CountType" use="optional"/>
|
| 661 |
+
<xs:attribute name="tags" type="man:UInt32Type" use="optional">
|
| 662 |
+
<xs:annotation>
|
| 663 |
+
<xs:documentation>
|
| 664 |
+
Tags is a 28-bit user-defined metadata value applied to this property. The
|
| 665 |
+
event producer and consumer coordinate to define the semantics of the tags
|
| 666 |
+
value. During event processing on Windows 10 Fall Creators Update (2017) or
|
| 667 |
+
later, this value can be retrieved from the EVENT_PROPERTY_INFO Tags field.
|
| 668 |
+
</xs:documentation>
|
| 669 |
+
</xs:annotation>
|
| 670 |
+
</xs:attribute>
|
| 671 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 672 |
+
</xs:complexType>
|
| 673 |
+
|
| 674 |
+
<xs:complexType name="TemplateItemBinaryType">
|
| 675 |
+
<xs:annotation>
|
| 676 |
+
<xs:documentation>Represents binary data in classic eventlog API</xs:documentation>
|
| 677 |
+
</xs:annotation>
|
| 678 |
+
<xs:attribute name="name" type="xs:string" use="optional"/>
|
| 679 |
+
</xs:complexType>
|
| 680 |
+
|
| 681 |
+
<xs:complexType name="XmlType">
|
| 682 |
+
<xs:sequence>
|
| 683 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 684 |
+
</xs:sequence>
|
| 685 |
+
</xs:complexType>
|
| 686 |
+
|
| 687 |
+
<xs:complexType name="DefinitionType">
|
| 688 |
+
<xs:annotation>
|
| 689 |
+
<xs:documentation>
|
| 690 |
+
Defines the events logged by this provider.
|
| 691 |
+
</xs:documentation>
|
| 692 |
+
</xs:annotation>
|
| 693 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 694 |
+
<xs:element name="event" type="man:EventDefinitionType"/>
|
| 695 |
+
</xs:choice>
|
| 696 |
+
</xs:complexType>
|
| 697 |
+
|
| 698 |
+
<xs:complexType name="EventDefinitionType" mixed="true">
|
| 699 |
+
<xs:annotation>
|
| 700 |
+
<xs:documentation>
|
| 701 |
+
Defines the event's value (ID), name, level, keywords, fields, etc.
|
| 702 |
+
|
| 703 |
+
Note that only the attributes of this element are significant. The text
|
| 704 |
+
content of this element is not used by mc.exe.
|
| 705 |
+
</xs:documentation>
|
| 706 |
+
</xs:annotation>
|
| 707 |
+
<xs:attribute name="value" type="man:UInt32Type" use="required">
|
| 708 |
+
<xs:annotation>
|
| 709 |
+
<xs:documentation>
|
| 710 |
+
Also referred to as the Event-Id. A manifest-based ETW event is uniquely
|
| 711 |
+
identified by the {Provider-Guid,Event-Id,Event-Version} tuple.
|
| 712 |
+
</xs:documentation>
|
| 713 |
+
</xs:annotation>
|
| 714 |
+
</xs:attribute>
|
| 715 |
+
<xs:attribute name="name" type="xs:string" use="optional">
|
| 716 |
+
<xs:annotation>
|
| 717 |
+
<xs:documentation>
|
| 718 |
+
Non-localized event name. During event processing on Windows 10 Fall
|
| 719 |
+
Creators Update (2017) or later, this value can be retrieved from the
|
| 720 |
+
TRACE_EVENT_INFO EventNameOffset field.
|
| 721 |
+
</xs:documentation>
|
| 722 |
+
</xs:annotation>
|
| 723 |
+
</xs:attribute>
|
| 724 |
+
<xs:attribute name="attributes" type="xs:string" use="optional">
|
| 725 |
+
<xs:annotation>
|
| 726 |
+
<xs:documentation>
|
| 727 |
+
Non-localized event attributes. This should be a semicolon-delimited list of
|
| 728 |
+
name=value attributes associated with the event. During event processing on
|
| 729 |
+
Windows 10 Fall Creators Update (2017) or later, this value can be retrieved
|
| 730 |
+
from the TRACE_EVENT_INFO EventAttributesOffset field.
|
| 731 |
+
|
| 732 |
+
Defined attributes include:
|
| 733 |
+
FILE=Filename of source code associated with event;
|
| 734 |
+
LINE=Line number of source code associated with event;
|
| 735 |
+
FUNC=Function name associated with event;
|
| 736 |
+
MJ=Major component associated with event (component name);
|
| 737 |
+
MN=Minor component associated with event (subcomponent name).
|
| 738 |
+
Values containing semicolons or double-quotes should be quoted using
|
| 739 |
+
double-quotes; double-quotes within the value should be doubled. Example:
|
| 740 |
+
attributes='FILE=source.cpp;LINE=123;MJ="Value; ""Quoted"""'
|
| 741 |
+
|
| 742 |
+
Note that most of these attributes are intended for use with tool-generated
|
| 743 |
+
manifests and may not be appropriate for use with hand-maintained manifests. For
|
| 744 |
+
example, the FILE ane LINE attributes are not generally appropriate for use in
|
| 745 |
+
a hand-maintained manifest, since a single event might be emitted from multiple
|
| 746 |
+
source code locations and the source code locations will change over time. The
|
| 747 |
+
FILE and LINE attributes are intended for use in cases where the manifest is
|
| 748 |
+
regenerated (with a new GUID) by a code generation tool each time the source
|
| 749 |
+
code changes.
|
| 750 |
+
</xs:documentation>
|
| 751 |
+
</xs:annotation>
|
| 752 |
+
</xs:attribute>
|
| 753 |
+
<xs:attribute name="level" type="xs:QName" use="optional">
|
| 754 |
+
<xs:annotation>
|
| 755 |
+
<xs:documentation>
|
| 756 |
+
Reference to the name of a predefined level (from winmeta.xml) or the name of a
|
| 757 |
+
custom level (defined in the <levels> section). If not specified, the
|
| 758 |
+
event's level will default to "LogAlways".
|
| 759 |
+
|
| 760 |
+
Event level is a primary filtering attribute. All events should be assigned
|
| 761 |
+
a meaningful level (win:Critical, win:Error, win:Warning, win:Informational,
|
| 762 |
+
or win:Verbose) to support effective filtering during event collection.
|
| 763 |
+
</xs:documentation>
|
| 764 |
+
</xs:annotation>
|
| 765 |
+
</xs:attribute>
|
| 766 |
+
<xs:attribute name="template" type="xs:token" use="optional"/>
|
| 767 |
+
<xs:attribute name="channel" type="xs:token" use="optional"/>
|
| 768 |
+
<xs:attribute name="keywords" type="man:QNameList" use="optional">
|
| 769 |
+
<xs:annotation>
|
| 770 |
+
<xs:documentation>
|
| 771 |
+
Reference to the name of a custom level defined in the <keywords> section.
|
| 772 |
+
If not specified, the event will have no keywords set and will bypass most
|
| 773 |
+
keyword-based event filtering.
|
| 774 |
+
|
| 775 |
+
Event keyword is a primary filtering attribute. All events should be assigned
|
| 776 |
+
at least one meaningful keyword to support effective filtering during event
|
| 777 |
+
collection.
|
| 778 |
+
</xs:documentation>
|
| 779 |
+
</xs:annotation>
|
| 780 |
+
</xs:attribute>
|
| 781 |
+
<xs:attribute name="task" type="xs:QName" use="optional"/>
|
| 782 |
+
<xs:attribute name="opcode" type="xs:QName" use="optional"/>
|
| 783 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 784 |
+
<xs:attribute name="version" type="man:UInt8Type" use="optional">
|
| 785 |
+
<xs:annotation>
|
| 786 |
+
<xs:documentation>
|
| 787 |
+
Increment the version of an event if its template is modified.
|
| 788 |
+
</xs:documentation>
|
| 789 |
+
</xs:annotation>
|
| 790 |
+
</xs:attribute>
|
| 791 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 792 |
+
<xs:attribute name="notLogged" type="xs:boolean" use="optional" default="false">
|
| 793 |
+
<xs:annotation>
|
| 794 |
+
<xs:documentation>
|
| 795 |
+
Use this to indicate that this event has been removed and will not be logged
|
| 796 |
+
by this version of the provider. The description of the event should be retained
|
| 797 |
+
in this manifest so that if an etl file collected from an older version of the
|
| 798 |
+
provider on a different machine is brought to this machine, it can be correctly
|
| 799 |
+
decoded on this machine.
|
| 800 |
+
</xs:documentation>
|
| 801 |
+
</xs:annotation>
|
| 802 |
+
</xs:attribute>
|
| 803 |
+
<xs:attribute name="suppressProjection" type="xs:boolean" use="optional" default="false">
|
| 804 |
+
<xs:annotation>
|
| 805 |
+
<xs:documentation>
|
| 806 |
+
Use this to indicate that the template associated with this event contains
|
| 807 |
+
valid WinRT types i.e. the event payload fields can come from arguments
|
| 808 |
+
of projected WinRT methods. This attribute will be used if generating code
|
| 809 |
+
for WinRT projection APIs.
|
| 810 |
+
</xs:documentation>
|
| 811 |
+
</xs:annotation>
|
| 812 |
+
</xs:attribute>
|
| 813 |
+
</xs:complexType>
|
| 814 |
+
|
| 815 |
+
<xs:complexType name="FilterListType" mixed="true">
|
| 816 |
+
<xs:annotation>
|
| 817 |
+
<xs:documentation>
|
| 818 |
+
Defines a set of custom filters for use in this provider.
|
| 819 |
+
|
| 820 |
+
Note that only the attributes of this element are significant. The text
|
| 821 |
+
content of this element is not used by mc.exe.
|
| 822 |
+
</xs:documentation>
|
| 823 |
+
</xs:annotation>
|
| 824 |
+
<xs:sequence>
|
| 825 |
+
<xs:element name="filter" type="man:FilterType" minOccurs="0" maxOccurs="unbounded"/>
|
| 826 |
+
</xs:sequence>
|
| 827 |
+
</xs:complexType>
|
| 828 |
+
|
| 829 |
+
<xs:complexType name="FilterType" mixed="true">
|
| 830 |
+
<xs:annotation>
|
| 831 |
+
<xs:documentation>
|
| 832 |
+
Defines a custom filter for use in this provider.
|
| 833 |
+
|
| 834 |
+
Note that only the attributes of this element are significant. The text
|
| 835 |
+
content of this element is not used by mc.exe.
|
| 836 |
+
</xs:documentation>
|
| 837 |
+
</xs:annotation>
|
| 838 |
+
<xs:attribute name="value" type="man:UInt8Type" use="required"/>
|
| 839 |
+
<xs:attribute name="version" type="man:UInt8Type" use="optional"/>
|
| 840 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 841 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 842 |
+
<xs:attribute name="message" type="man:strTableRef" use="optional"/>
|
| 843 |
+
<xs:attribute name="tid" type="xs:token" use="optional"/>
|
| 844 |
+
</xs:complexType>
|
| 845 |
+
|
| 846 |
+
<xs:complexType name="TraitsType">
|
| 847 |
+
<xs:annotation>
|
| 848 |
+
<xs:documentation>
|
| 849 |
+
Specifies values for this provider's provider traits. The provider traits
|
| 850 |
+
consist of a small binary blob that is registered with the ETW runtime via
|
| 851 |
+
EventSetInformation and included with each call to EventWrite. The traits
|
| 852 |
+
blob contains information about a provider's name, decode GUID, and group
|
| 853 |
+
GUID.
|
| 854 |
+
|
| 855 |
+
When provider traits are needed (i.e. when the provider has different values
|
| 856 |
+
for its control GUID and its decode GUID or when the traits element is
|
| 857 |
+
present), the MC tool's -um or -km codegen will generate a provider traits
|
| 858 |
+
blob, will generate code to automatically register the blob as part of
|
| 859 |
+
EventRegister, and will include the blob in each call to EventWrite.
|
| 860 |
+
</xs:documentation>
|
| 861 |
+
</xs:annotation>
|
| 862 |
+
<xs:attribute name="includeName" type="xs:boolean" use="optional">
|
| 863 |
+
<xs:annotation>
|
| 864 |
+
<xs:documentation>
|
| 865 |
+
Optional. Default is false. If true, the provider's name will be included
|
| 866 |
+
in the provider traits. If false, the provider's name will be left blank
|
| 867 |
+
to reduce the size of the trace file. Including the provider name makes it
|
| 868 |
+
possible to filter an event by provider name.
|
| 869 |
+
</xs:documentation>
|
| 870 |
+
</xs:annotation>
|
| 871 |
+
</xs:attribute>
|
| 872 |
+
<xs:attribute name="groupGuid" type="man:GUIDType" use="optional">
|
| 873 |
+
<xs:annotation>
|
| 874 |
+
<xs:documentation>
|
| 875 |
+
Optional. Specifies that this provider is a member of the specified provider
|
| 876 |
+
group. By default, the provider is not a member of any provider group.
|
| 877 |
+
</xs:documentation>
|
| 878 |
+
</xs:annotation>
|
| 879 |
+
</xs:attribute>
|
| 880 |
+
</xs:complexType>
|
| 881 |
+
|
| 882 |
+
<!-- SECTION: messageTable element (MESSAGETABLE string declarations) -->
|
| 883 |
+
|
| 884 |
+
<xs:complexType name="EventsMessageTableType">
|
| 885 |
+
<xs:sequence>
|
| 886 |
+
<xs:element name="message" type="man:EventsMessageTableMessageType" minOccurs="0" maxOccurs="unbounded"/>
|
| 887 |
+
</xs:sequence>
|
| 888 |
+
</xs:complexType>
|
| 889 |
+
|
| 890 |
+
<xs:complexType name="EventsMessageTableMessageType">
|
| 891 |
+
<xs:attribute name="value" type="xs:string" use="required">
|
| 892 |
+
<xs:annotation>
|
| 893 |
+
<xs:documentation>
|
| 894 |
+
Decimal or hexadecimal message ID. Decimal should have no leading 0s.
|
| 895 |
+
Hexadecimal requires '0x' prefix.
|
| 896 |
+
</xs:documentation>
|
| 897 |
+
</xs:annotation>
|
| 898 |
+
</xs:attribute>
|
| 899 |
+
<xs:attribute name="mid" type="xs:string" use="optional">
|
| 900 |
+
<xs:annotation>
|
| 901 |
+
<xs:documentation>
|
| 902 |
+
Deprecated. Specifies an alias for this string table entry.
|
| 903 |
+
</xs:documentation>
|
| 904 |
+
</xs:annotation>
|
| 905 |
+
</xs:attribute>
|
| 906 |
+
<xs:attribute name="message" type="man:strTableRef" use="required"/>
|
| 907 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 908 |
+
</xs:complexType>
|
| 909 |
+
|
| 910 |
+
<!-- SECTION: localization element (string values) -->
|
| 911 |
+
|
| 912 |
+
<xs:complexType name="LocalizationType">
|
| 913 |
+
<xs:annotation>
|
| 914 |
+
<xs:documentation>
|
| 915 |
+
Contains one or more resource tables, each of which contains resources
|
| 916 |
+
for a single locale.
|
| 917 |
+
</xs:documentation>
|
| 918 |
+
</xs:annotation>
|
| 919 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 920 |
+
<xs:element name="resources" type="man:LocalizationResourcesType"/>
|
| 921 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 922 |
+
</xs:choice>
|
| 923 |
+
<xs:attribute name="fallbackCulture" type="xs:string" use="optional" default="en-us">
|
| 924 |
+
<xs:annotation>
|
| 925 |
+
<xs:documentation>This attribute is not used.</xs:documentation>
|
| 926 |
+
</xs:annotation>
|
| 927 |
+
</xs:attribute>
|
| 928 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 929 |
+
</xs:complexType>
|
| 930 |
+
|
| 931 |
+
<xs:complexType name="LocalizationResourcesType">
|
| 932 |
+
<xs:annotation>
|
| 933 |
+
<xs:documentation>
|
| 934 |
+
Contains resources for a single locale.
|
| 935 |
+
</xs:documentation>
|
| 936 |
+
</xs:annotation>
|
| 937 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 938 |
+
<xs:element name="stringTable" type="man:StringTableType"/>
|
| 939 |
+
</xs:choice>
|
| 940 |
+
<xs:attribute name="culture" type="xs:string" use="required">
|
| 941 |
+
<xs:annotation>
|
| 942 |
+
<xs:documentation>
|
| 943 |
+
Specify the locale of the resources using a Windows locale name, e.g.
|
| 944 |
+
"en-US". Locale name syntax is documented in MSDN topics such as
|
| 945 |
+
"locale names" and "LocaleNameToLCID".
|
| 946 |
+
</xs:documentation>
|
| 947 |
+
</xs:annotation>
|
| 948 |
+
</xs:attribute>
|
| 949 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 950 |
+
</xs:complexType>
|
| 951 |
+
|
| 952 |
+
<xs:complexType name="StringTableType">
|
| 953 |
+
<xs:annotation>
|
| 954 |
+
<xs:documentation>
|
| 955 |
+
Localized values of strings referenced in MESSAGETABLE strings and ETW
|
| 956 |
+
providers.
|
| 957 |
+
</xs:documentation>
|
| 958 |
+
</xs:annotation>
|
| 959 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 960 |
+
<xs:element name="string" type="man:StringTableStringType"/>
|
| 961 |
+
</xs:choice>
|
| 962 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 963 |
+
</xs:complexType>
|
| 964 |
+
|
| 965 |
+
<xs:complexType name="StringTableStringType" mixed="true">
|
| 966 |
+
<xs:annotation>
|
| 967 |
+
<xs:documentation>
|
| 968 |
+
Defines the localized value of a string referenced by an event or a
|
| 969 |
+
message table in this manifest.
|
| 970 |
+
|
| 971 |
+
Note that only the attributes of this element are significant. The text
|
| 972 |
+
content of this element is not used by mc.exe.
|
| 973 |
+
</xs:documentation>
|
| 974 |
+
</xs:annotation>
|
| 975 |
+
<xs:attribute name="id" type="xs:string" use="required">
|
| 976 |
+
<xs:annotation>
|
| 977 |
+
<xs:documentation>
|
| 978 |
+
The stringTableId of the string reference in the ETW provider or the
|
| 979 |
+
MESSAGETABLE string. For example, if a string is referenced as
|
| 980 |
+
"$(string.MyString1)" then the id would be "MyString1".
|
| 981 |
+
</xs:documentation>
|
| 982 |
+
</xs:annotation>
|
| 983 |
+
</xs:attribute>
|
| 984 |
+
<xs:attribute name="value" type="xs:string" use="required">
|
| 985 |
+
<xs:annotation>
|
| 986 |
+
<xs:documentation>
|
| 987 |
+
The localized string.
|
| 988 |
+
</xs:documentation>
|
| 989 |
+
</xs:annotation>
|
| 990 |
+
</xs:attribute>
|
| 991 |
+
<xs:attribute name="stringType" type="xs:string" use="optional">
|
| 992 |
+
<xs:annotation>
|
| 993 |
+
<xs:documentation>
|
| 994 |
+
Not used by Windows or mc.exe. This attribute can be used to describe
|
| 995 |
+
the usage of the string to aid in tracking and localization.
|
| 996 |
+
</xs:documentation>
|
| 997 |
+
</xs:annotation>
|
| 998 |
+
</xs:attribute>
|
| 999 |
+
</xs:complexType>
|
| 1000 |
+
|
| 1001 |
+
<!-- SECTION: metadata element (used by Microsoft-provided winmeta.xml) -->
|
| 1002 |
+
|
| 1003 |
+
<xs:complexType name="MetadataType">
|
| 1004 |
+
<xs:annotation>
|
| 1005 |
+
<xs:documentation>
|
| 1006 |
+
Used only by the Microsoft-provided WinMeta.xml file.
|
| 1007 |
+
|
| 1008 |
+
WinMeta.xml uses this element to document ETW facilities that are built
|
| 1009 |
+
into the Windows operating system or are commonly used by ETW decoding
|
| 1010 |
+
tools. This includes the definitions of the property types supported by
|
| 1011 |
+
TDH APIs as well as Microsoft-defined constants for well-known event
|
| 1012 |
+
levels, opcodes, and channels.
|
| 1013 |
+
</xs:documentation>
|
| 1014 |
+
</xs:annotation>
|
| 1015 |
+
<xs:sequence>
|
| 1016 |
+
<xs:element name="channels" type="man:ChannelListType"/>
|
| 1017 |
+
<xs:element name="levels" type="man:LevelListType"/>
|
| 1018 |
+
<xs:element name="tasks" type="man:TaskListType"/>
|
| 1019 |
+
<xs:element name="opcodes" type="man:OpcodeListType" minOccurs="0"/>
|
| 1020 |
+
<xs:element name="keywords" type="man:KeywordListType" minOccurs="0"/>
|
| 1021 |
+
<xs:element name="types" type="man:TypeListType" minOccurs="0"/>
|
| 1022 |
+
<xs:element name="namedQueries" type="man:NamedQueryType" minOccurs="0"/>
|
| 1023 |
+
<xs:element name="messageTable" type="man:MetadataMessageTableType" minOccurs="0"/>
|
| 1024 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 1025 |
+
</xs:sequence>
|
| 1026 |
+
<xs:attribute name="name" type="xs:anyURI" use="required"/>
|
| 1027 |
+
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
| 1028 |
+
</xs:complexType>
|
| 1029 |
+
|
| 1030 |
+
<xs:complexType name="TypeListType">
|
| 1031 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 1032 |
+
<xs:element name="xmlTypes" type="man:XmlTypeListType"/>
|
| 1033 |
+
<xs:element name="inTypes" type="man:InputTypeListType"/>
|
| 1034 |
+
<xs:any namespace="##other" processContents="lax"/>
|
| 1035 |
+
</xs:choice>
|
| 1036 |
+
</xs:complexType>
|
| 1037 |
+
|
| 1038 |
+
<xs:complexType name="XmlTypeListType">
|
| 1039 |
+
<xs:sequence>
|
| 1040 |
+
<xs:element name="xmlType" type="man:XmlTypeListItemType" minOccurs="0" maxOccurs="unbounded"/>
|
| 1041 |
+
</xs:sequence>
|
| 1042 |
+
</xs:complexType>
|
| 1043 |
+
|
| 1044 |
+
<xs:complexType name="XmlTypeListItemType">
|
| 1045 |
+
<xs:annotation>
|
| 1046 |
+
<xs:documentation>
|
| 1047 |
+
Declares an outType supported by Windows. An outType is a sub-type that
|
| 1048 |
+
extends the inType with additional semantics and presentation details
|
| 1049 |
+
for a property of an ETW event. For example, a property could have
|
| 1050 |
+
inType "AnsiString" (indicating nul-terminated CHAR8 string) and
|
| 1051 |
+
outType "Utf8" (indicating UTF-8 character encoding).
|
| 1052 |
+
</xs:documentation>
|
| 1053 |
+
</xs:annotation>
|
| 1054 |
+
<xs:complexContent>
|
| 1055 |
+
<xs:extension base="man:XmlType">
|
| 1056 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 1057 |
+
<xs:attribute name="value" type="xs:string" use="required"/>
|
| 1058 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="required"/>
|
| 1059 |
+
</xs:extension>
|
| 1060 |
+
</xs:complexContent>
|
| 1061 |
+
</xs:complexType>
|
| 1062 |
+
|
| 1063 |
+
<xs:complexType name="InputTypeListType">
|
| 1064 |
+
<xs:sequence>
|
| 1065 |
+
<xs:element name="inType" type="man:InputType" maxOccurs="unbounded"/>
|
| 1066 |
+
</xs:sequence>
|
| 1067 |
+
</xs:complexType>
|
| 1068 |
+
|
| 1069 |
+
<xs:complexType name="InputType">
|
| 1070 |
+
<xs:annotation>
|
| 1071 |
+
<xs:documentation>
|
| 1072 |
+
Declares an inType supported by Windows. An inType is the type of a
|
| 1073 |
+
property of an ETW event. Every ETW event property declares an inType.
|
| 1074 |
+
The inType fully defines the mechanism for determining the size of a
|
| 1075 |
+
property and also gives a general idea of how the property's value
|
| 1076 |
+
should be interpreted. For example, an inType "Int16" indicates the
|
| 1077 |
+
size is 2 and the property should be interpreted as a signed 16-bit
|
| 1078 |
+
integer.
|
| 1079 |
+
|
| 1080 |
+
Each inType has a set of outTypes that are supported for use with it.
|
| 1081 |
+
The outType adds semantics or presentation details to the inType. For
|
| 1082 |
+
example, the inType "UInt16" can be used with outType "Port" to
|
| 1083 |
+
indicate that an event property is a big-endian 16-bit Internet
|
| 1084 |
+
protocol port number.
|
| 1085 |
+
|
| 1086 |
+
Each inType specifies one outType as "default", indicating the behavior
|
| 1087 |
+
that should be used when an ETW property uses the inType but does not
|
| 1088 |
+
specify an outType.
|
| 1089 |
+
</xs:documentation>
|
| 1090 |
+
</xs:annotation>
|
| 1091 |
+
<xs:sequence>
|
| 1092 |
+
<xs:element name="description" type="xs:string"/>
|
| 1093 |
+
<xs:element name="outType" type="man:OutputType" minOccurs="0" maxOccurs="unbounded"/>
|
| 1094 |
+
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
| 1095 |
+
</xs:sequence>
|
| 1096 |
+
<xs:attribute name="name" type="xs:QName" use="required"/>
|
| 1097 |
+
<xs:attribute name="value" type="xs:string" use="required"/>
|
| 1098 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="required"/>
|
| 1099 |
+
</xs:complexType>
|
| 1100 |
+
|
| 1101 |
+
<xs:complexType name="OutputType" mixed="true">
|
| 1102 |
+
<xs:annotation>
|
| 1103 |
+
<xs:documentation>
|
| 1104 |
+
Declares that Windows supports the use of the specified outType with
|
| 1105 |
+
this inType.
|
| 1106 |
+
|
| 1107 |
+
Note that only the attributes of this element are significant. The text
|
| 1108 |
+
content of this element is not used by mc.exe.
|
| 1109 |
+
</xs:documentation>
|
| 1110 |
+
</xs:annotation>
|
| 1111 |
+
<xs:attribute name="default" type="xs:boolean" use="optional"/>
|
| 1112 |
+
<xs:attribute name="xmlType" type="xs:QName" use="required"/>
|
| 1113 |
+
</xs:complexType>
|
| 1114 |
+
|
| 1115 |
+
<xs:complexType name="MetadataMessageTableType">
|
| 1116 |
+
<xs:sequence>
|
| 1117 |
+
<xs:element name="message" type="man:MetadataMessageTableMessageType" minOccurs="0" maxOccurs="unbounded"/>
|
| 1118 |
+
</xs:sequence>
|
| 1119 |
+
</xs:complexType>
|
| 1120 |
+
|
| 1121 |
+
<xs:complexType name="MetadataMessageTableMessageType">
|
| 1122 |
+
<xs:attribute name="value" type="man:UInt32Type" use="required"/>
|
| 1123 |
+
<xs:attribute name="mid" type="xs:string" use="optional">
|
| 1124 |
+
<xs:annotation>
|
| 1125 |
+
<xs:documentation>
|
| 1126 |
+
Deprecated. Specifies an alias for this string table entry.
|
| 1127 |
+
</xs:documentation>
|
| 1128 |
+
</xs:annotation>
|
| 1129 |
+
</xs:attribute>
|
| 1130 |
+
<xs:attribute name="message" type="man:strTableRef" use="required"/>
|
| 1131 |
+
<xs:attribute name="symbol" type="man:CSymbolType" use="optional"/>
|
| 1132 |
+
</xs:complexType>
|
| 1133 |
+
|
| 1134 |
+
<!-- SECTION: simpleType -->
|
| 1135 |
+
|
| 1136 |
+
<xs:simpleType name="GUIDType">
|
| 1137 |
+
<xs:annotation>
|
| 1138 |
+
<xs:documentation>
|
| 1139 |
+
A globally unique identifier in Registry format,
|
| 1140 |
+
e.g. {12345678-4321-ABCD-1234-9ABCDEF012345678}.
|
| 1141 |
+
Use GUIDGen.exe or UUIDGen.exe to create a GUID.
|
| 1142 |
+
</xs:documentation>
|
| 1143 |
+
</xs:annotation>
|
| 1144 |
+
<xs:restriction base="xs:string">
|
| 1145 |
+
<xs:pattern value="\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}"/>
|
| 1146 |
+
</xs:restriction>
|
| 1147 |
+
</xs:simpleType>
|
| 1148 |
+
|
| 1149 |
+
<xs:simpleType name="CSymbolType">
|
| 1150 |
+
<xs:annotation>
|
| 1151 |
+
<xs:documentation>
|
| 1152 |
+
Symbol is used for code-generation. It should be a valid C Symbol or an empty string.
|
| 1153 |
+
</xs:documentation>
|
| 1154 |
+
</xs:annotation>
|
| 1155 |
+
<xs:restriction base="xs:string">
|
| 1156 |
+
<xs:pattern value="()|([_a-zA-Z][_0-9a-zA-Z]*)"/>
|
| 1157 |
+
</xs:restriction>
|
| 1158 |
+
</xs:simpleType>
|
| 1159 |
+
|
| 1160 |
+
<xs:simpleType name="NamespaceType">
|
| 1161 |
+
<xs:annotation>
|
| 1162 |
+
<xs:documentation>
|
| 1163 |
+
Is used for code-generation on namespaces which should be valid C++ symbols.
|
| 1164 |
+
E.g. Namespace1._Namespace2.Namespace2
|
| 1165 |
+
</xs:documentation>
|
| 1166 |
+
</xs:annotation>
|
| 1167 |
+
<xs:restriction base="xs:string">
|
| 1168 |
+
<xs:pattern value="([_a-zA-Z][_0-9a-zA-Z]*\.)*[_a-zA-Z][_0-9a-zA-Z]*"/>
|
| 1169 |
+
</xs:restriction>
|
| 1170 |
+
</xs:simpleType>
|
| 1171 |
+
|
| 1172 |
+
<xs:simpleType name="HexInt8Type">
|
| 1173 |
+
<xs:annotation>
|
| 1174 |
+
<xs:documentation>1-2 hexadecimal digits with '0x' prefix.</xs:documentation>
|
| 1175 |
+
</xs:annotation>
|
| 1176 |
+
<xs:restriction base="xs:string">
|
| 1177 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,2}"/>
|
| 1178 |
+
</xs:restriction>
|
| 1179 |
+
</xs:simpleType>
|
| 1180 |
+
|
| 1181 |
+
<xs:simpleType name="HexInt16Type">
|
| 1182 |
+
<xs:annotation>
|
| 1183 |
+
<xs:documentation>1-4 hexadecimal digits with '0x' prefix.</xs:documentation>
|
| 1184 |
+
</xs:annotation>
|
| 1185 |
+
<xs:restriction base="xs:string">
|
| 1186 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,4}"/>
|
| 1187 |
+
</xs:restriction>
|
| 1188 |
+
</xs:simpleType>
|
| 1189 |
+
|
| 1190 |
+
<xs:simpleType name="HexInt32Type">
|
| 1191 |
+
<xs:annotation>
|
| 1192 |
+
<xs:documentation>1-8 hexadecimal digits with '0x' prefix.</xs:documentation>
|
| 1193 |
+
</xs:annotation>
|
| 1194 |
+
<xs:restriction base="xs:string">
|
| 1195 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,8}"/>
|
| 1196 |
+
</xs:restriction>
|
| 1197 |
+
</xs:simpleType>
|
| 1198 |
+
|
| 1199 |
+
<xs:simpleType name="HexInt64Type">
|
| 1200 |
+
<xs:annotation>
|
| 1201 |
+
<xs:documentation>1-16 hexadecimal digits with '0x' prefix.</xs:documentation>
|
| 1202 |
+
</xs:annotation>
|
| 1203 |
+
<xs:restriction base="xs:string">
|
| 1204 |
+
<xs:pattern value="0[xX][0-9A-Fa-f]{1,16}"/>
|
| 1205 |
+
</xs:restriction>
|
| 1206 |
+
</xs:simpleType>
|
| 1207 |
+
|
| 1208 |
+
<xs:simpleType name="UInt8Type">
|
| 1209 |
+
<xs:annotation>
|
| 1210 |
+
<xs:documentation>
|
| 1211 |
+
8-bit unsigned decimal or hexadecimal integer. Decimal should have no
|
| 1212 |
+
leading 0s. Hexadecimal requires '0x' prefix.
|
| 1213 |
+
</xs:documentation>
|
| 1214 |
+
</xs:annotation>
|
| 1215 |
+
<xs:union memberTypes="xs:unsignedByte man:HexInt8Type"/>
|
| 1216 |
+
</xs:simpleType>
|
| 1217 |
+
|
| 1218 |
+
<xs:simpleType name="UInt16Type">
|
| 1219 |
+
<xs:annotation>
|
| 1220 |
+
<xs:documentation>
|
| 1221 |
+
16-bit unsigned decimal or hexadecimal integer. Decimal should have no
|
| 1222 |
+
leading 0s. Hexadecimal requires '0x' prefix.
|
| 1223 |
+
</xs:documentation>
|
| 1224 |
+
</xs:annotation>
|
| 1225 |
+
<xs:union memberTypes="xs:unsignedShort man:HexInt16Type"/>
|
| 1226 |
+
</xs:simpleType>
|
| 1227 |
+
|
| 1228 |
+
<xs:simpleType name="UInt32Type">
|
| 1229 |
+
<xs:annotation>
|
| 1230 |
+
<xs:documentation>
|
| 1231 |
+
32-bit unsigned decimal or hexadecimal integer. Decimal should have no
|
| 1232 |
+
leading 0s. Hexadecimal requires '0x' prefix.
|
| 1233 |
+
</xs:documentation>
|
| 1234 |
+
</xs:annotation>
|
| 1235 |
+
<xs:union memberTypes="xs:unsignedInt man:HexInt32Type"/>
|
| 1236 |
+
</xs:simpleType>
|
| 1237 |
+
|
| 1238 |
+
<xs:simpleType name="UInt64Type">
|
| 1239 |
+
<xs:annotation>
|
| 1240 |
+
<xs:documentation>
|
| 1241 |
+
64-bit unsigned decimal or hexadecimal integer. Decimal should have no
|
| 1242 |
+
leading 0s. Hexadecimal requires '0x' prefix.
|
| 1243 |
+
</xs:documentation>
|
| 1244 |
+
</xs:annotation>
|
| 1245 |
+
<xs:union memberTypes="xs:unsignedLong man:HexInt64Type"/>
|
| 1246 |
+
</xs:simpleType>
|
| 1247 |
+
|
| 1248 |
+
<xs:simpleType name="LengthType">
|
| 1249 |
+
<xs:annotation>
|
| 1250 |
+
<xs:documentation>
|
| 1251 |
+
For a constant-Length property, specify the value (decimal).
|
| 1252 |
+
For a variable-Length property, specify the name of the property that
|
| 1253 |
+
will have the length of this property.
|
| 1254 |
+
|
| 1255 |
+
Length is required for "Binary" properties. It indicates the size (in
|
| 1256 |
+
bytes) of the property value.
|
| 1257 |
+
|
| 1258 |
+
Length is optional for "UnicodeString" and "AnsiString" properties. If
|
| 1259 |
+
present, Length indicates the size (in characters) of the property
|
| 1260 |
+
value. If Length is not present, the property is assumed to be
|
| 1261 |
+
nul-terminated.
|
| 1262 |
+
|
| 1263 |
+
Length is not used for other inTypes. Other inTypes either use a
|
| 1264 |
+
well-known constant size (e.g. Int32 length is 4) or encode the size
|
| 1265 |
+
within the value (e.g. nul-terminated strings end at the first 0
|
| 1266 |
+
character, and "counted" values start with a 16-bit size).
|
| 1267 |
+
|
| 1268 |
+
In the case of an array (i.e. when the property has a Count), the same
|
| 1269 |
+
Length value applies to all elements of the array. As a result, it is
|
| 1270 |
+
not generally useful to create an array of variable-Length properties.
|
| 1271 |
+
|
| 1272 |
+
Note that some decoders only recognize Length properties that
|
| 1273 |
+
immediately precede the corresponding variable-Length property.
|
| 1274 |
+
</xs:documentation>
|
| 1275 |
+
</xs:annotation>
|
| 1276 |
+
<xs:union memberTypes="xs:unsignedShort xs:string"/>
|
| 1277 |
+
</xs:simpleType>
|
| 1278 |
+
|
| 1279 |
+
<xs:simpleType name="CountType">
|
| 1280 |
+
<xs:annotation>
|
| 1281 |
+
<xs:documentation>
|
| 1282 |
+
For constant-Count array, specify the value (decimal).
|
| 1283 |
+
For variable-Count array, specify the name of the property that will
|
| 1284 |
+
have the count of this property.
|
| 1285 |
+
|
| 1286 |
+
Note that some decoders will treat Count="0" as an error, and some
|
| 1287 |
+
decoders will treat Count="1" as non-array.
|
| 1288 |
+
|
| 1289 |
+
Note that some decoders only recognize Count properties that
|
| 1290 |
+
immediately precede the corresponding variable-Count property.
|
| 1291 |
+
</xs:documentation>
|
| 1292 |
+
</xs:annotation>
|
| 1293 |
+
<xs:union memberTypes="xs:unsignedShort xs:string"/>
|
| 1294 |
+
</xs:simpleType>
|
| 1295 |
+
|
| 1296 |
+
<xs:simpleType name="strTableRef">
|
| 1297 |
+
<xs:annotation>
|
| 1298 |
+
<xs:documentation>
|
| 1299 |
+
A reference to a localized string value provided elsewhere. The value
|
| 1300 |
+
of this attribute should be of the form "$(string.stringTableId)",
|
| 1301 |
+
where stringTableId is the "id" attribute of a <string> element
|
| 1302 |
+
defined in the <stringTable> section, or of the form
|
| 1303 |
+
"$(mc.mcSymbolId)", where mcSymbolId is the symbol of a message string
|
| 1304 |
+
defined in an .mc file compiled along with this manifest.
|
| 1305 |
+
</xs:documentation>
|
| 1306 |
+
</xs:annotation>
|
| 1307 |
+
<xs:restriction base="xs:string">
|
| 1308 |
+
<xs:pattern value="(\$\([Ss]tring\..*\))|(\$\([Mm][Cc]\..*\))"/>
|
| 1309 |
+
</xs:restriction>
|
| 1310 |
+
</xs:simpleType>
|
| 1311 |
+
|
| 1312 |
+
<xs:simpleType name="filePath">
|
| 1313 |
+
<xs:annotation>
|
| 1314 |
+
<xs:documentation>
|
| 1315 |
+
A fully-qualified path to a file. Standard Windows environment variables are
|
| 1316 |
+
allowed. Typically, the file is of type .exe, .dll, or .sys.
|
| 1317 |
+
</xs:documentation>
|
| 1318 |
+
</xs:annotation>
|
| 1319 |
+
<xs:restriction base="xs:string"/>
|
| 1320 |
+
</xs:simpleType>
|
| 1321 |
+
|
| 1322 |
+
<xs:simpleType name="QNameList">
|
| 1323 |
+
<xs:annotation>
|
| 1324 |
+
<xs:documentation>
|
| 1325 |
+
Space-separated list of keywords. To support consistent event
|
| 1326 |
+
filtering, all events should have at least one keyword assigned.
|
| 1327 |
+
</xs:documentation>
|
| 1328 |
+
</xs:annotation>
|
| 1329 |
+
<xs:list itemType="xs:QName"/>
|
| 1330 |
+
</xs:simpleType>
|
| 1331 |
+
|
| 1332 |
+
</xs:schema>
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evntcons.h
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/*++
|
| 3 |
+
|
| 4 |
+
Copyright 2004 (c) Microsoft Corporation. All rights reserved.
|
| 5 |
+
|
| 6 |
+
Module Name:
|
| 7 |
+
|
| 8 |
+
evntcons.h
|
| 9 |
+
|
| 10 |
+
Abstract:
|
| 11 |
+
|
| 12 |
+
This defines the event consumer API
|
| 13 |
+
|
| 14 |
+
Revision History:
|
| 15 |
+
|
| 16 |
+
Insung Park (insungp) 26-Aug-2004
|
| 17 |
+
Created the file.
|
| 18 |
+
|
| 19 |
+
--*/
|
| 20 |
+
|
| 21 |
+
#ifndef _EVNTCONS_H_
|
| 22 |
+
#define _EVNTCONS_H_
|
| 23 |
+
|
| 24 |
+
#pragma once
|
| 25 |
+
#include <winapifamily.h>
|
| 26 |
+
|
| 27 |
+
#pragma region Desktop Family or OneCore Family
|
| 28 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 29 |
+
|
| 30 |
+
#include <wmistr.h>
|
| 31 |
+
#include <evntrace.h>
|
| 32 |
+
#include <evntprov.h>
|
| 33 |
+
|
| 34 |
+
#ifndef EVNTCONS_INLINE
|
| 35 |
+
#define EVNTCONS_INLINE __inline
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
#ifdef __cplusplus
|
| 39 |
+
extern "C" {
|
| 40 |
+
#endif
|
| 41 |
+
|
| 42 |
+
#if defined (_MSC_VER)
|
| 43 |
+
#if _MSC_VER >= 1200
|
| 44 |
+
#pragma warning(push)
|
| 45 |
+
#pragma warning(disable:4820) // padding added
|
| 46 |
+
#endif
|
| 47 |
+
#pragma warning(disable:4201) // nonstandard extension used : nameless struct/union
|
| 48 |
+
#pragma warning(disable:4214) // nonstandard extension used : bit field types other then int
|
| 49 |
+
#endif
|
| 50 |
+
|
| 51 |
+
#define EVENT_HEADER_EXT_TYPE_RELATED_ACTIVITYID 0x0001
|
| 52 |
+
#define EVENT_HEADER_EXT_TYPE_SID 0x0002
|
| 53 |
+
#define EVENT_HEADER_EXT_TYPE_TS_ID 0x0003
|
| 54 |
+
#define EVENT_HEADER_EXT_TYPE_INSTANCE_INFO 0x0004
|
| 55 |
+
#define EVENT_HEADER_EXT_TYPE_STACK_TRACE32 0x0005
|
| 56 |
+
#define EVENT_HEADER_EXT_TYPE_STACK_TRACE64 0x0006
|
| 57 |
+
#define EVENT_HEADER_EXT_TYPE_PEBS_INDEX 0x0007
|
| 58 |
+
#define EVENT_HEADER_EXT_TYPE_PMC_COUNTERS 0x0008
|
| 59 |
+
#define EVENT_HEADER_EXT_TYPE_PSM_KEY 0x0009
|
| 60 |
+
#define EVENT_HEADER_EXT_TYPE_EVENT_KEY 0x000A
|
| 61 |
+
#define EVENT_HEADER_EXT_TYPE_EVENT_SCHEMA_TL 0x000B
|
| 62 |
+
#define EVENT_HEADER_EXT_TYPE_PROV_TRAITS 0x000C
|
| 63 |
+
#define EVENT_HEADER_EXT_TYPE_PROCESS_START_KEY 0x000D
|
| 64 |
+
#define EVENT_HEADER_EXT_TYPE_CONTROL_GUID 0x000E
|
| 65 |
+
#define EVENT_HEADER_EXT_TYPE_QPC_DELTA 0x000F
|
| 66 |
+
#define EVENT_HEADER_EXT_TYPE_CONTAINER_ID 0x0010
|
| 67 |
+
#define EVENT_HEADER_EXT_TYPE_STACK_KEY32 0x0011
|
| 68 |
+
#define EVENT_HEADER_EXT_TYPE_STACK_KEY64 0x0012
|
| 69 |
+
#define EVENT_HEADER_EXT_TYPE_MAX 0x0013
|
| 70 |
+
|
| 71 |
+
#ifndef EVENT_HEADER_EXTENDED_DATA_ITEM_DEF
|
| 72 |
+
#define EVENT_HEADER_EXTENDED_DATA_ITEM_DEF
|
| 73 |
+
typedef struct _EVENT_HEADER_EXTENDED_DATA_ITEM {
|
| 74 |
+
|
| 75 |
+
USHORT Reserved1; // Reserved for internal use
|
| 76 |
+
USHORT ExtType; // Extended info type
|
| 77 |
+
struct {
|
| 78 |
+
USHORT Linkage : 1; // Indicates additional extended
|
| 79 |
+
// data item
|
| 80 |
+
USHORT Reserved2 : 15;
|
| 81 |
+
};
|
| 82 |
+
USHORT DataSize; // Size of extended info data
|
| 83 |
+
ULONGLONG DataPtr; // Pointer to extended info data
|
| 84 |
+
|
| 85 |
+
} EVENT_HEADER_EXTENDED_DATA_ITEM, *PEVENT_HEADER_EXTENDED_DATA_ITEM;
|
| 86 |
+
#endif
|
| 87 |
+
|
| 88 |
+
//
|
| 89 |
+
// Structures for extended items.
|
| 90 |
+
//
|
| 91 |
+
|
| 92 |
+
typedef struct _EVENT_EXTENDED_ITEM_INSTANCE {
|
| 93 |
+
ULONG InstanceId;
|
| 94 |
+
ULONG ParentInstanceId;
|
| 95 |
+
GUID ParentGuid;
|
| 96 |
+
} EVENT_EXTENDED_ITEM_INSTANCE, *PEVENT_EXTENDED_ITEM_INSTANCE;
|
| 97 |
+
|
| 98 |
+
typedef struct _EVENT_EXTENDED_ITEM_RELATED_ACTIVITYID {
|
| 99 |
+
GUID RelatedActivityId;
|
| 100 |
+
} EVENT_EXTENDED_ITEM_RELATED_ACTIVITYID, *PEVENT_EXTENDED_ITEM_RELATED_ACTIVITYID;
|
| 101 |
+
|
| 102 |
+
typedef struct _EVENT_EXTENDED_ITEM_TS_ID {
|
| 103 |
+
ULONG SessionId;
|
| 104 |
+
} EVENT_EXTENDED_ITEM_TS_ID, *PEVENT_EXTENDED_ITEM_TS_ID;
|
| 105 |
+
|
| 106 |
+
typedef struct _EVENT_EXTENDED_ITEM_STACK_TRACE32 {
|
| 107 |
+
ULONG64 MatchId;
|
| 108 |
+
ULONG Address[ANYSIZE_ARRAY];
|
| 109 |
+
} EVENT_EXTENDED_ITEM_STACK_TRACE32, *PEVENT_EXTENDED_ITEM_STACK_TRACE32;
|
| 110 |
+
|
| 111 |
+
typedef struct _EVENT_EXTENDED_ITEM_STACK_TRACE64 {
|
| 112 |
+
ULONG64 MatchId;
|
| 113 |
+
ULONG64 Address[ANYSIZE_ARRAY];
|
| 114 |
+
} EVENT_EXTENDED_ITEM_STACK_TRACE64, *PEVENT_EXTENDED_ITEM_STACK_TRACE64;
|
| 115 |
+
|
| 116 |
+
typedef struct _EVENT_EXTENDED_ITEM_STACK_KEY32 {
|
| 117 |
+
ULONG64 MatchId;
|
| 118 |
+
ULONG StackKey;
|
| 119 |
+
ULONG Padding;
|
| 120 |
+
} EVENT_EXTENDED_ITEM_STACK_KEY32, *PEVENT_EXTENDED_ITEM_STACK_KEY32;
|
| 121 |
+
|
| 122 |
+
typedef struct _EVENT_EXTENDED_ITEM_STACK_KEY64 {
|
| 123 |
+
ULONG64 MatchId;
|
| 124 |
+
ULONG64 StackKey;
|
| 125 |
+
} EVENT_EXTENDED_ITEM_STACK_KEY64, *PEVENT_EXTENDED_ITEM_STACK_KEY64;
|
| 126 |
+
|
| 127 |
+
typedef struct _EVENT_EXTENDED_ITEM_PEBS_INDEX {
|
| 128 |
+
ULONG64 PebsIndex;
|
| 129 |
+
} EVENT_EXTENDED_ITEM_PEBS_INDEX, *PEVENT_EXTENDED_ITEM_PEBS_INDEX;
|
| 130 |
+
|
| 131 |
+
typedef struct _EVENT_EXTENDED_ITEM_PMC_COUNTERS {
|
| 132 |
+
ULONG64 Counter[ANYSIZE_ARRAY];
|
| 133 |
+
} EVENT_EXTENDED_ITEM_PMC_COUNTERS, *PEVENT_EXTENDED_ITEM_PMC_COUNTERS;
|
| 134 |
+
|
| 135 |
+
typedef struct _EVENT_EXTENDED_ITEM_PROCESS_START_KEY {
|
| 136 |
+
ULONG64 ProcessStartKey;
|
| 137 |
+
} EVENT_EXTENDED_ITEM_PROCESS_START_KEY, *PEVENT_EXTENDED_ITEM_PROCESS_START_KEY;
|
| 138 |
+
|
| 139 |
+
typedef struct _EVENT_EXTENDED_ITEM_EVENT_KEY {
|
| 140 |
+
ULONG64 Key;
|
| 141 |
+
} EVENT_EXTENDED_ITEM_EVENT_KEY, *PEVENT_EXTENDED_ITEM_EVENT_KEY;
|
| 142 |
+
|
| 143 |
+
#define EVENT_HEADER_PROPERTY_XML 0x0001
|
| 144 |
+
#define EVENT_HEADER_PROPERTY_FORWARDED_XML 0x0002
|
| 145 |
+
#define EVENT_HEADER_PROPERTY_LEGACY_EVENTLOG 0x0004
|
| 146 |
+
#define EVENT_HEADER_PROPERTY_RELOGGABLE 0x0008
|
| 147 |
+
|
| 148 |
+
#define EVENT_HEADER_FLAG_EXTENDED_INFO 0x0001
|
| 149 |
+
#define EVENT_HEADER_FLAG_PRIVATE_SESSION 0x0002
|
| 150 |
+
#define EVENT_HEADER_FLAG_STRING_ONLY 0x0004
|
| 151 |
+
#define EVENT_HEADER_FLAG_TRACE_MESSAGE 0x0008
|
| 152 |
+
#define EVENT_HEADER_FLAG_NO_CPUTIME 0x0010
|
| 153 |
+
#define EVENT_HEADER_FLAG_32_BIT_HEADER 0x0020
|
| 154 |
+
#define EVENT_HEADER_FLAG_64_BIT_HEADER 0x0040
|
| 155 |
+
#define EVENT_HEADER_FLAG_DECODE_GUID 0x0080 // ProviderId is decode GUID.
|
| 156 |
+
#define EVENT_HEADER_FLAG_CLASSIC_HEADER 0x0100
|
| 157 |
+
#define EVENT_HEADER_FLAG_PROCESSOR_INDEX 0x0200
|
| 158 |
+
|
| 159 |
+
#ifndef EVENT_HEADER_DEF
|
| 160 |
+
#define EVENT_HEADER_DEF
|
| 161 |
+
typedef struct _EVENT_HEADER {
|
| 162 |
+
|
| 163 |
+
USHORT Size; // Event Size
|
| 164 |
+
USHORT HeaderType; // Header Type
|
| 165 |
+
USHORT Flags; // Flags
|
| 166 |
+
USHORT EventProperty; // User given event property
|
| 167 |
+
ULONG ThreadId; // Thread Id
|
| 168 |
+
ULONG ProcessId; // Process Id
|
| 169 |
+
LARGE_INTEGER TimeStamp; // Event Timestamp
|
| 170 |
+
GUID ProviderId; // Provider Id
|
| 171 |
+
EVENT_DESCRIPTOR EventDescriptor; // Event Descriptor
|
| 172 |
+
union {
|
| 173 |
+
struct {
|
| 174 |
+
ULONG KernelTime; // Kernel Mode CPU ticks
|
| 175 |
+
ULONG UserTime; // User mode CPU ticks
|
| 176 |
+
} DUMMYSTRUCTNAME;
|
| 177 |
+
ULONG64 ProcessorTime; // Processor Clock
|
| 178 |
+
// for private session events
|
| 179 |
+
} DUMMYUNIONNAME;
|
| 180 |
+
GUID ActivityId; // Activity Id
|
| 181 |
+
|
| 182 |
+
} EVENT_HEADER, *PEVENT_HEADER;
|
| 183 |
+
#endif
|
| 184 |
+
|
| 185 |
+
#ifndef EVENT_RECORD_DEF
|
| 186 |
+
#define EVENT_RECORD_DEF
|
| 187 |
+
typedef struct _EVENT_RECORD {
|
| 188 |
+
|
| 189 |
+
EVENT_HEADER EventHeader; // Event header
|
| 190 |
+
ETW_BUFFER_CONTEXT BufferContext; // Buffer context
|
| 191 |
+
USHORT ExtendedDataCount; // Number of extended
|
| 192 |
+
// data items
|
| 193 |
+
USHORT UserDataLength; // User data length
|
| 194 |
+
PEVENT_HEADER_EXTENDED_DATA_ITEM // Pointer to an array of
|
| 195 |
+
ExtendedData; // extended data items
|
| 196 |
+
PVOID UserData; // Pointer to user data
|
| 197 |
+
PVOID UserContext; // Context from OpenTrace
|
| 198 |
+
} EVENT_RECORD, *PEVENT_RECORD;
|
| 199 |
+
|
| 200 |
+
typedef const EVENT_RECORD *PCEVENT_RECORD;
|
| 201 |
+
#endif
|
| 202 |
+
|
| 203 |
+
#define EVENT_ENABLE_PROPERTY_SID 0x00000001
|
| 204 |
+
#define EVENT_ENABLE_PROPERTY_TS_ID 0x00000002
|
| 205 |
+
#define EVENT_ENABLE_PROPERTY_STACK_TRACE 0x00000004
|
| 206 |
+
#define EVENT_ENABLE_PROPERTY_PSM_KEY 0x00000008
|
| 207 |
+
#define EVENT_ENABLE_PROPERTY_IGNORE_KEYWORD_0 0x00000010
|
| 208 |
+
#define EVENT_ENABLE_PROPERTY_PROVIDER_GROUP 0x00000020
|
| 209 |
+
#define EVENT_ENABLE_PROPERTY_ENABLE_KEYWORD_0 0x00000040
|
| 210 |
+
#define EVENT_ENABLE_PROPERTY_PROCESS_START_KEY 0x00000080
|
| 211 |
+
#define EVENT_ENABLE_PROPERTY_EVENT_KEY 0x00000100
|
| 212 |
+
#define EVENT_ENABLE_PROPERTY_EXCLUDE_INPRIVATE 0x00000200
|
| 213 |
+
#define EVENT_ENABLE_PROPERTY_ENABLE_SILOS 0x00000400
|
| 214 |
+
#define EVENT_ENABLE_PROPERTY_SOURCE_CONTAINER_TRACKING 0x00000800
|
| 215 |
+
|
| 216 |
+
//
|
| 217 |
+
// Consumer API
|
| 218 |
+
//
|
| 219 |
+
|
| 220 |
+
#define PROCESS_TRACE_MODE_REAL_TIME 0x00000100
|
| 221 |
+
#define PROCESS_TRACE_MODE_RAW_TIMESTAMP 0x00001000
|
| 222 |
+
#define PROCESS_TRACE_MODE_EVENT_RECORD 0x10000000
|
| 223 |
+
|
| 224 |
+
EVNTCONS_INLINE
|
| 225 |
+
ULONG
|
| 226 |
+
GetEventProcessorIndex (
|
| 227 |
+
_In_ PCEVENT_RECORD EventRecord
|
| 228 |
+
)
|
| 229 |
+
{
|
| 230 |
+
if ((EventRecord->EventHeader.Flags & EVENT_HEADER_FLAG_PROCESSOR_INDEX) != 0) {
|
| 231 |
+
return EventRecord->BufferContext.ProcessorIndex;
|
| 232 |
+
|
| 233 |
+
} else {
|
| 234 |
+
return EventRecord->BufferContext.ProcessorNumber;
|
| 235 |
+
}
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
//
|
| 239 |
+
// Provider Trait APIs
|
| 240 |
+
//
|
| 241 |
+
|
| 242 |
+
typedef enum {
|
| 243 |
+
EtwProviderTraitTypeGroup = 1, // Provider group GUID.
|
| 244 |
+
EtwProviderTraitDecodeGuid = 2, // Decode GUID (when different from control GUID)
|
| 245 |
+
EtwProviderTraitTypeMax
|
| 246 |
+
} ETW_PROVIDER_TRAIT_TYPE;
|
| 247 |
+
|
| 248 |
+
EVNTCONS_INLINE
|
| 249 |
+
VOID
|
| 250 |
+
EtwGetTraitFromProviderTraits(
|
| 251 |
+
_In_ PVOID ProviderTraits,
|
| 252 |
+
_In_ UCHAR TraitType,
|
| 253 |
+
_Out_ PVOID* Trait,
|
| 254 |
+
_Out_ PUSHORT Size
|
| 255 |
+
)
|
| 256 |
+
{
|
| 257 |
+
USHORT const ByteCount = *(USHORT UNALIGNED*)ProviderTraits;
|
| 258 |
+
PUCHAR Ptr = (PUCHAR)ProviderTraits;
|
| 259 |
+
UCHAR const* PtrEnd = Ptr + ByteCount;
|
| 260 |
+
|
| 261 |
+
*Trait = NULL;
|
| 262 |
+
*Size = 0;
|
| 263 |
+
|
| 264 |
+
//
|
| 265 |
+
// Abort on invalid size.
|
| 266 |
+
//
|
| 267 |
+
|
| 268 |
+
if (ByteCount < 3) {
|
| 269 |
+
return;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
//
|
| 273 |
+
// Skip byte counts
|
| 274 |
+
//
|
| 275 |
+
|
| 276 |
+
Ptr += 2;
|
| 277 |
+
|
| 278 |
+
//
|
| 279 |
+
// Skip the Provider Name, including the Null termination
|
| 280 |
+
//
|
| 281 |
+
|
| 282 |
+
Ptr += strnlen((PCSTR)Ptr, ByteCount - 3u);
|
| 283 |
+
Ptr += 1;
|
| 284 |
+
|
| 285 |
+
//
|
| 286 |
+
// Loop through the rest of the traits until one of the
|
| 287 |
+
// desired type is located.
|
| 288 |
+
//
|
| 289 |
+
|
| 290 |
+
while (Ptr < PtrEnd) {
|
| 291 |
+
USHORT const TraitByteCount = *(USHORT const UNALIGNED*)Ptr;
|
| 292 |
+
|
| 293 |
+
//
|
| 294 |
+
// Abort on invalid trait size.
|
| 295 |
+
//
|
| 296 |
+
|
| 297 |
+
if (TraitByteCount < 3) {
|
| 298 |
+
return;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
if ((Ptr[2] == TraitType) &&
|
| 302 |
+
(Ptr + TraitByteCount <= PtrEnd)) {
|
| 303 |
+
|
| 304 |
+
*Trait = (PVOID)(Ptr + 3);
|
| 305 |
+
*Size = TraitByteCount - 3u;
|
| 306 |
+
return;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
Ptr += TraitByteCount;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
return;
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
//
|
| 316 |
+
// Event Security APIs
|
| 317 |
+
//
|
| 318 |
+
|
| 319 |
+
typedef enum {
|
| 320 |
+
EventSecuritySetDACL,
|
| 321 |
+
EventSecuritySetSACL,
|
| 322 |
+
EventSecurityAddDACL,
|
| 323 |
+
EventSecurityAddSACL,
|
| 324 |
+
EventSecurityMax
|
| 325 |
+
} EVENTSECURITYOPERATION;
|
| 326 |
+
|
| 327 |
+
#if (WINVER >= _WIN32_WINNT_LONGHORN)
|
| 328 |
+
ULONG
|
| 329 |
+
EVNTAPI
|
| 330 |
+
EventAccessControl(
|
| 331 |
+
_In_ LPGUID Guid,
|
| 332 |
+
_In_ ULONG Operation,
|
| 333 |
+
_In_ PSID Sid,
|
| 334 |
+
_In_ ULONG Rights,
|
| 335 |
+
_In_ BOOLEAN AllowOrDeny
|
| 336 |
+
);
|
| 337 |
+
#endif
|
| 338 |
+
|
| 339 |
+
#if (WINVER >= _WIN32_WINNT_LONGHORN)
|
| 340 |
+
ULONG
|
| 341 |
+
EVNTAPI
|
| 342 |
+
EventAccessQuery(
|
| 343 |
+
_In_ LPGUID Guid,
|
| 344 |
+
_Out_writes_bytes_opt_(*BufferSize) PSECURITY_DESCRIPTOR Buffer,
|
| 345 |
+
_Inout_ PULONG BufferSize
|
| 346 |
+
);
|
| 347 |
+
#endif
|
| 348 |
+
|
| 349 |
+
#if (WINVER >= _WIN32_WINNT_LONGHORN)
|
| 350 |
+
ULONG
|
| 351 |
+
EVNTAPI
|
| 352 |
+
EventAccessRemove(
|
| 353 |
+
_In_ LPGUID Guid
|
| 354 |
+
);
|
| 355 |
+
#endif
|
| 356 |
+
|
| 357 |
+
#if defined (_MSC_VER)
|
| 358 |
+
#if _MSC_VER >= 1200
|
| 359 |
+
#pragma warning(pop) // restore 4201,4214
|
| 360 |
+
#else
|
| 361 |
+
#pragma warning(default:4201) // nonstandard extension used : nameless struct/union
|
| 362 |
+
#pragma warning(default:4214) // nonstandard extension used : bit field types other then int
|
| 363 |
+
#endif
|
| 364 |
+
#endif
|
| 365 |
+
|
| 366 |
+
#ifdef __cplusplus
|
| 367 |
+
}
|
| 368 |
+
#endif
|
| 369 |
+
|
| 370 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)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 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __evr_h__
|
| 34 |
+
#define __evr_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IMFVideoPositionMapper_FWD_DEFINED__
|
| 51 |
+
#define __IMFVideoPositionMapper_FWD_DEFINED__
|
| 52 |
+
typedef interface IMFVideoPositionMapper IMFVideoPositionMapper;
|
| 53 |
+
|
| 54 |
+
#endif /* __IMFVideoPositionMapper_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IMFVideoDeviceID_FWD_DEFINED__
|
| 58 |
+
#define __IMFVideoDeviceID_FWD_DEFINED__
|
| 59 |
+
typedef interface IMFVideoDeviceID IMFVideoDeviceID;
|
| 60 |
+
|
| 61 |
+
#endif /* __IMFVideoDeviceID_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IMFVideoDisplayControl_FWD_DEFINED__
|
| 65 |
+
#define __IMFVideoDisplayControl_FWD_DEFINED__
|
| 66 |
+
typedef interface IMFVideoDisplayControl IMFVideoDisplayControl;
|
| 67 |
+
|
| 68 |
+
#endif /* __IMFVideoDisplayControl_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
#ifndef __IMFVideoPresenter_FWD_DEFINED__
|
| 72 |
+
#define __IMFVideoPresenter_FWD_DEFINED__
|
| 73 |
+
typedef interface IMFVideoPresenter IMFVideoPresenter;
|
| 74 |
+
|
| 75 |
+
#endif /* __IMFVideoPresenter_FWD_DEFINED__ */
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
#ifndef __IMFDesiredSample_FWD_DEFINED__
|
| 79 |
+
#define __IMFDesiredSample_FWD_DEFINED__
|
| 80 |
+
typedef interface IMFDesiredSample IMFDesiredSample;
|
| 81 |
+
|
| 82 |
+
#endif /* __IMFDesiredSample_FWD_DEFINED__ */
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
#ifndef __IMFVideoMixerControl_FWD_DEFINED__
|
| 86 |
+
#define __IMFVideoMixerControl_FWD_DEFINED__
|
| 87 |
+
typedef interface IMFVideoMixerControl IMFVideoMixerControl;
|
| 88 |
+
|
| 89 |
+
#endif /* __IMFVideoMixerControl_FWD_DEFINED__ */
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
#ifndef __IMFVideoMixerControl2_FWD_DEFINED__
|
| 93 |
+
#define __IMFVideoMixerControl2_FWD_DEFINED__
|
| 94 |
+
typedef interface IMFVideoMixerControl2 IMFVideoMixerControl2;
|
| 95 |
+
|
| 96 |
+
#endif /* __IMFVideoMixerControl2_FWD_DEFINED__ */
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
#ifndef __IMFVideoRenderer_FWD_DEFINED__
|
| 100 |
+
#define __IMFVideoRenderer_FWD_DEFINED__
|
| 101 |
+
typedef interface IMFVideoRenderer IMFVideoRenderer;
|
| 102 |
+
|
| 103 |
+
#endif /* __IMFVideoRenderer_FWD_DEFINED__ */
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
#ifndef __IEVRFilterConfig_FWD_DEFINED__
|
| 107 |
+
#define __IEVRFilterConfig_FWD_DEFINED__
|
| 108 |
+
typedef interface IEVRFilterConfig IEVRFilterConfig;
|
| 109 |
+
|
| 110 |
+
#endif /* __IEVRFilterConfig_FWD_DEFINED__ */
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
#ifndef __IEVRFilterConfigEx_FWD_DEFINED__
|
| 114 |
+
#define __IEVRFilterConfigEx_FWD_DEFINED__
|
| 115 |
+
typedef interface IEVRFilterConfigEx IEVRFilterConfigEx;
|
| 116 |
+
|
| 117 |
+
#endif /* __IEVRFilterConfigEx_FWD_DEFINED__ */
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
#ifndef __IMFTopologyServiceLookup_FWD_DEFINED__
|
| 121 |
+
#define __IMFTopologyServiceLookup_FWD_DEFINED__
|
| 122 |
+
typedef interface IMFTopologyServiceLookup IMFTopologyServiceLookup;
|
| 123 |
+
|
| 124 |
+
#endif /* __IMFTopologyServiceLookup_FWD_DEFINED__ */
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
#ifndef __IMFTopologyServiceLookupClient_FWD_DEFINED__
|
| 128 |
+
#define __IMFTopologyServiceLookupClient_FWD_DEFINED__
|
| 129 |
+
typedef interface IMFTopologyServiceLookupClient IMFTopologyServiceLookupClient;
|
| 130 |
+
|
| 131 |
+
#endif /* __IMFTopologyServiceLookupClient_FWD_DEFINED__ */
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
#ifndef __IEVRTrustedVideoPlugin_FWD_DEFINED__
|
| 135 |
+
#define __IEVRTrustedVideoPlugin_FWD_DEFINED__
|
| 136 |
+
typedef interface IEVRTrustedVideoPlugin IEVRTrustedVideoPlugin;
|
| 137 |
+
|
| 138 |
+
#endif /* __IEVRTrustedVideoPlugin_FWD_DEFINED__ */
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
/* header files for imported files */
|
| 142 |
+
#include "unknwn.h"
|
| 143 |
+
#include "propidl.h"
|
| 144 |
+
#include "mfidl.h"
|
| 145 |
+
#include "strmif.h"
|
| 146 |
+
|
| 147 |
+
#ifdef __cplusplus
|
| 148 |
+
extern "C"{
|
| 149 |
+
#endif
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
/* interface __MIDL_itf_evr_0000_0000 */
|
| 153 |
+
/* [local] */
|
| 154 |
+
|
| 155 |
+
#include <winapifamily.h>
|
| 156 |
+
#pragma region Desktop Family
|
| 157 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 158 |
+
#if defined(__midl)
|
| 159 |
+
typedef
|
| 160 |
+
enum _D3DFORMAT
|
| 161 |
+
{
|
| 162 |
+
D3DFMT_UNKNOWN = 0,
|
| 163 |
+
D3DFMT_R8G8B8 = 20,
|
| 164 |
+
D3DFMT_A8R8G8B8 = 21,
|
| 165 |
+
D3DFMT_X8R8G8B8 = 22,
|
| 166 |
+
D3DFMT_R5G6B5 = 23,
|
| 167 |
+
D3DFMT_X1R5G5B5 = 24,
|
| 168 |
+
D3DFMT_A1R5G5B5 = 25,
|
| 169 |
+
D3DFMT_A4R4G4B4 = 26,
|
| 170 |
+
D3DFMT_R3G3B2 = 27,
|
| 171 |
+
D3DFMT_A8 = 28,
|
| 172 |
+
D3DFMT_A8R3G3B2 = 29,
|
| 173 |
+
D3DFMT_X4R4G4B4 = 30,
|
| 174 |
+
D3DFMT_A2B10G10R10 = 31,
|
| 175 |
+
D3DFMT_G16R16 = 34,
|
| 176 |
+
D3DFMT_A8P8 = 40,
|
| 177 |
+
D3DFMT_P8 = 41,
|
| 178 |
+
D3DFMT_L8 = 50,
|
| 179 |
+
D3DFMT_A8L8 = 51,
|
| 180 |
+
D3DFMT_A4L4 = 52,
|
| 181 |
+
D3DFMT_V8U8 = 60,
|
| 182 |
+
D3DFMT_L6V5U5 = 61,
|
| 183 |
+
D3DFMT_X8L8V8U8 = 62,
|
| 184 |
+
D3DFMT_Q8W8V8U8 = 63,
|
| 185 |
+
D3DFMT_V16U16 = 64,
|
| 186 |
+
D3DFMT_W11V11U10 = 65,
|
| 187 |
+
D3DFMT_A2W10V10U10 = 67,
|
| 188 |
+
D3DFMT_D16_LOCKABLE = 70,
|
| 189 |
+
D3DFMT_D32 = 71,
|
| 190 |
+
D3DFMT_D15S1 = 73,
|
| 191 |
+
D3DFMT_D24S8 = 75,
|
| 192 |
+
D3DFMT_D16 = 80,
|
| 193 |
+
D3DFMT_D24X8 = 77,
|
| 194 |
+
D3DFMT_D24X4S4 = 79,
|
| 195 |
+
D3DFMT_VERTEXDATA = 100,
|
| 196 |
+
D3DFMT_INDEX16 = 101,
|
| 197 |
+
D3DFMT_INDEX32 = 102,
|
| 198 |
+
D3DFMT_FORCE_DWORD = 0x7fffffff
|
| 199 |
+
} D3DFORMAT;
|
| 200 |
+
|
| 201 |
+
#endif // __midl
|
| 202 |
+
DEFINE_GUID(MR_VIDEO_RENDER_SERVICE,
|
| 203 |
+
0x1092a86c,
|
| 204 |
+
0xab1a,
|
| 205 |
+
0x459a,
|
| 206 |
+
0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff
|
| 207 |
+
);
|
| 208 |
+
DEFINE_GUID(MR_VIDEO_MIXER_SERVICE,
|
| 209 |
+
0x73cd2fc,
|
| 210 |
+
0x6cf4,
|
| 211 |
+
0x40b7,
|
| 212 |
+
0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8
|
| 213 |
+
);
|
| 214 |
+
DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE,
|
| 215 |
+
0xefef5175,
|
| 216 |
+
0x5c7d,
|
| 217 |
+
0x4ce2,
|
| 218 |
+
0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54
|
| 219 |
+
);
|
| 220 |
+
DEFINE_GUID(MR_BUFFER_SERVICE,
|
| 221 |
+
0xa562248c,
|
| 222 |
+
0x9ac6,
|
| 223 |
+
0x4ffc,
|
| 224 |
+
0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d
|
| 225 |
+
);
|
| 226 |
+
DEFINE_GUID(VIDEO_ZOOM_RECT,
|
| 227 |
+
0x7aaa1638,
|
| 228 |
+
0x1b7f,
|
| 229 |
+
0x4c93,
|
| 230 |
+
0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0
|
| 231 |
+
);
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0000_v0_0_c_ifspec;
|
| 244 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0000_v0_0_s_ifspec;
|
| 245 |
+
|
| 246 |
+
#ifndef __IMFVideoPositionMapper_INTERFACE_DEFINED__
|
| 247 |
+
#define __IMFVideoPositionMapper_INTERFACE_DEFINED__
|
| 248 |
+
|
| 249 |
+
/* interface IMFVideoPositionMapper */
|
| 250 |
+
/* [local][helpstring][uuid][object] */
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
EXTERN_C const IID IID_IMFVideoPositionMapper;
|
| 254 |
+
|
| 255 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 256 |
+
|
| 257 |
+
MIDL_INTERFACE("1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE")
|
| 258 |
+
IMFVideoPositionMapper : public IUnknown
|
| 259 |
+
{
|
| 260 |
+
public:
|
| 261 |
+
virtual HRESULT STDMETHODCALLTYPE MapOutputCoordinateToInputStream(
|
| 262 |
+
/* [in] */ float xOut,
|
| 263 |
+
/* [in] */ float yOut,
|
| 264 |
+
/* [in] */ DWORD dwOutputStreamIndex,
|
| 265 |
+
/* [in] */ DWORD dwInputStreamIndex,
|
| 266 |
+
/* [annotation][out] */
|
| 267 |
+
_Out_ float *pxIn,
|
| 268 |
+
/* [annotation][out] */
|
| 269 |
+
_Out_ float *pyIn) = 0;
|
| 270 |
+
|
| 271 |
+
};
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
#else /* C style interface */
|
| 275 |
+
|
| 276 |
+
typedef struct IMFVideoPositionMapperVtbl
|
| 277 |
+
{
|
| 278 |
+
BEGIN_INTERFACE
|
| 279 |
+
|
| 280 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 281 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 282 |
+
IMFVideoPositionMapper * This,
|
| 283 |
+
/* [in] */ REFIID riid,
|
| 284 |
+
/* [annotation][iid_is][out] */
|
| 285 |
+
_COM_Outptr_ void **ppvObject);
|
| 286 |
+
|
| 287 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 288 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 289 |
+
IMFVideoPositionMapper * This);
|
| 290 |
+
|
| 291 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 292 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 293 |
+
IMFVideoPositionMapper * This);
|
| 294 |
+
|
| 295 |
+
DECLSPEC_XFGVIRT(IMFVideoPositionMapper, MapOutputCoordinateToInputStream)
|
| 296 |
+
HRESULT ( STDMETHODCALLTYPE *MapOutputCoordinateToInputStream )(
|
| 297 |
+
IMFVideoPositionMapper * This,
|
| 298 |
+
/* [in] */ float xOut,
|
| 299 |
+
/* [in] */ float yOut,
|
| 300 |
+
/* [in] */ DWORD dwOutputStreamIndex,
|
| 301 |
+
/* [in] */ DWORD dwInputStreamIndex,
|
| 302 |
+
/* [annotation][out] */
|
| 303 |
+
_Out_ float *pxIn,
|
| 304 |
+
/* [annotation][out] */
|
| 305 |
+
_Out_ float *pyIn);
|
| 306 |
+
|
| 307 |
+
END_INTERFACE
|
| 308 |
+
} IMFVideoPositionMapperVtbl;
|
| 309 |
+
|
| 310 |
+
interface IMFVideoPositionMapper
|
| 311 |
+
{
|
| 312 |
+
CONST_VTBL struct IMFVideoPositionMapperVtbl *lpVtbl;
|
| 313 |
+
};
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
#ifdef COBJMACROS
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
#define IMFVideoPositionMapper_QueryInterface(This,riid,ppvObject) \
|
| 321 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 322 |
+
|
| 323 |
+
#define IMFVideoPositionMapper_AddRef(This) \
|
| 324 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 325 |
+
|
| 326 |
+
#define IMFVideoPositionMapper_Release(This) \
|
| 327 |
+
( (This)->lpVtbl -> Release(This) )
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
#define IMFVideoPositionMapper_MapOutputCoordinateToInputStream(This,xOut,yOut,dwOutputStreamIndex,dwInputStreamIndex,pxIn,pyIn) \
|
| 331 |
+
( (This)->lpVtbl -> MapOutputCoordinateToInputStream(This,xOut,yOut,dwOutputStreamIndex,dwInputStreamIndex,pxIn,pyIn) )
|
| 332 |
+
|
| 333 |
+
#endif /* COBJMACROS */
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
#endif /* C style interface */
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
#endif /* __IMFVideoPositionMapper_INTERFACE_DEFINED__ */
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
#ifndef __IMFVideoDeviceID_INTERFACE_DEFINED__
|
| 345 |
+
#define __IMFVideoDeviceID_INTERFACE_DEFINED__
|
| 346 |
+
|
| 347 |
+
/* interface IMFVideoDeviceID */
|
| 348 |
+
/* [local][helpstring][uuid][object] */
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
EXTERN_C const IID IID_IMFVideoDeviceID;
|
| 352 |
+
|
| 353 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 354 |
+
|
| 355 |
+
MIDL_INTERFACE("A38D9567-5A9C-4f3c-B293-8EB415B279BA")
|
| 356 |
+
IMFVideoDeviceID : public IUnknown
|
| 357 |
+
{
|
| 358 |
+
public:
|
| 359 |
+
virtual HRESULT STDMETHODCALLTYPE GetDeviceID(
|
| 360 |
+
/* [annotation][out] */
|
| 361 |
+
_Out_ IID *pDeviceID) = 0;
|
| 362 |
+
|
| 363 |
+
};
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
#else /* C style interface */
|
| 367 |
+
|
| 368 |
+
typedef struct IMFVideoDeviceIDVtbl
|
| 369 |
+
{
|
| 370 |
+
BEGIN_INTERFACE
|
| 371 |
+
|
| 372 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 373 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 374 |
+
IMFVideoDeviceID * This,
|
| 375 |
+
/* [in] */ REFIID riid,
|
| 376 |
+
/* [annotation][iid_is][out] */
|
| 377 |
+
_COM_Outptr_ void **ppvObject);
|
| 378 |
+
|
| 379 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 380 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 381 |
+
IMFVideoDeviceID * This);
|
| 382 |
+
|
| 383 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 384 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 385 |
+
IMFVideoDeviceID * This);
|
| 386 |
+
|
| 387 |
+
DECLSPEC_XFGVIRT(IMFVideoDeviceID, GetDeviceID)
|
| 388 |
+
HRESULT ( STDMETHODCALLTYPE *GetDeviceID )(
|
| 389 |
+
IMFVideoDeviceID * This,
|
| 390 |
+
/* [annotation][out] */
|
| 391 |
+
_Out_ IID *pDeviceID);
|
| 392 |
+
|
| 393 |
+
END_INTERFACE
|
| 394 |
+
} IMFVideoDeviceIDVtbl;
|
| 395 |
+
|
| 396 |
+
interface IMFVideoDeviceID
|
| 397 |
+
{
|
| 398 |
+
CONST_VTBL struct IMFVideoDeviceIDVtbl *lpVtbl;
|
| 399 |
+
};
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
|
| 403 |
+
#ifdef COBJMACROS
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
#define IMFVideoDeviceID_QueryInterface(This,riid,ppvObject) \
|
| 407 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 408 |
+
|
| 409 |
+
#define IMFVideoDeviceID_AddRef(This) \
|
| 410 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 411 |
+
|
| 412 |
+
#define IMFVideoDeviceID_Release(This) \
|
| 413 |
+
( (This)->lpVtbl -> Release(This) )
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
#define IMFVideoDeviceID_GetDeviceID(This,pDeviceID) \
|
| 417 |
+
( (This)->lpVtbl -> GetDeviceID(This,pDeviceID) )
|
| 418 |
+
|
| 419 |
+
#endif /* COBJMACROS */
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
#endif /* C style interface */
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
#endif /* __IMFVideoDeviceID_INTERFACE_DEFINED__ */
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
/* interface __MIDL_itf_evr_0000_0002 */
|
| 431 |
+
/* [local] */
|
| 432 |
+
|
| 433 |
+
typedef
|
| 434 |
+
enum MFVideoAspectRatioMode
|
| 435 |
+
{
|
| 436 |
+
MFVideoARMode_None = 0,
|
| 437 |
+
MFVideoARMode_PreservePicture = 0x1,
|
| 438 |
+
MFVideoARMode_PreservePixel = 0x2,
|
| 439 |
+
MFVideoARMode_NonLinearStretch = 0x4,
|
| 440 |
+
MFVideoARMode_Mask = 0x7
|
| 441 |
+
} MFVideoAspectRatioMode;
|
| 442 |
+
|
| 443 |
+
typedef
|
| 444 |
+
enum MFVideoRenderPrefs
|
| 445 |
+
{
|
| 446 |
+
MFVideoRenderPrefs_DoNotRenderBorder = 0x1,
|
| 447 |
+
MFVideoRenderPrefs_DoNotClipToDevice = 0x2,
|
| 448 |
+
MFVideoRenderPrefs_AllowOutputThrottling = 0x4,
|
| 449 |
+
MFVideoRenderPrefs_ForceOutputThrottling = 0x8,
|
| 450 |
+
MFVideoRenderPrefs_ForceBatching = 0x10,
|
| 451 |
+
MFVideoRenderPrefs_AllowBatching = 0x20,
|
| 452 |
+
MFVideoRenderPrefs_ForceScaling = 0x40,
|
| 453 |
+
MFVideoRenderPrefs_AllowScaling = 0x80,
|
| 454 |
+
MFVideoRenderPrefs_DoNotRepaintOnStop = 0x100,
|
| 455 |
+
MFVideoRenderPrefs_Mask = 0x1ff
|
| 456 |
+
} MFVideoRenderPrefs;
|
| 457 |
+
|
| 458 |
+
#ifndef _MFVideoNormalizedRect_
|
| 459 |
+
#define _MFVideoNormalizedRect_
|
| 460 |
+
typedef struct MFVideoNormalizedRect
|
| 461 |
+
{
|
| 462 |
+
float left;
|
| 463 |
+
float top;
|
| 464 |
+
float right;
|
| 465 |
+
float bottom;
|
| 466 |
+
} MFVideoNormalizedRect;
|
| 467 |
+
|
| 468 |
+
#endif
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0002_v0_0_c_ifspec;
|
| 472 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0002_v0_0_s_ifspec;
|
| 473 |
+
|
| 474 |
+
#ifndef __IMFVideoDisplayControl_INTERFACE_DEFINED__
|
| 475 |
+
#define __IMFVideoDisplayControl_INTERFACE_DEFINED__
|
| 476 |
+
|
| 477 |
+
/* interface IMFVideoDisplayControl */
|
| 478 |
+
/* [helpstring][uuid][object] */
|
| 479 |
+
|
| 480 |
+
|
| 481 |
+
EXTERN_C const IID IID_IMFVideoDisplayControl;
|
| 482 |
+
|
| 483 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 484 |
+
|
| 485 |
+
MIDL_INTERFACE("a490b1e4-ab84-4d31-a1b2-181e03b1077a")
|
| 486 |
+
IMFVideoDisplayControl : public IUnknown
|
| 487 |
+
{
|
| 488 |
+
public:
|
| 489 |
+
virtual HRESULT STDMETHODCALLTYPE GetNativeVideoSize(
|
| 490 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszVideo,
|
| 491 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszARVideo) = 0;
|
| 492 |
+
|
| 493 |
+
virtual HRESULT STDMETHODCALLTYPE GetIdealVideoSize(
|
| 494 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszMin,
|
| 495 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszMax) = 0;
|
| 496 |
+
|
| 497 |
+
virtual HRESULT STDMETHODCALLTYPE SetVideoPosition(
|
| 498 |
+
/* [unique][in] */ __RPC__in_opt const MFVideoNormalizedRect *pnrcSource,
|
| 499 |
+
/* [unique][in] */ __RPC__in_opt const LPRECT prcDest) = 0;
|
| 500 |
+
|
| 501 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoPosition(
|
| 502 |
+
/* [out] */ __RPC__out MFVideoNormalizedRect *pnrcSource,
|
| 503 |
+
/* [out] */ __RPC__out LPRECT prcDest) = 0;
|
| 504 |
+
|
| 505 |
+
virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode(
|
| 506 |
+
/* [in] */ DWORD dwAspectRatioMode) = 0;
|
| 507 |
+
|
| 508 |
+
virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode(
|
| 509 |
+
/* [out] */ __RPC__out DWORD *pdwAspectRatioMode) = 0;
|
| 510 |
+
|
| 511 |
+
virtual HRESULT STDMETHODCALLTYPE SetVideoWindow(
|
| 512 |
+
/* [in] */ __RPC__in HWND hwndVideo) = 0;
|
| 513 |
+
|
| 514 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoWindow(
|
| 515 |
+
/* [out] */ __RPC__deref_out_opt HWND *phwndVideo) = 0;
|
| 516 |
+
|
| 517 |
+
virtual HRESULT STDMETHODCALLTYPE RepaintVideo( void) = 0;
|
| 518 |
+
|
| 519 |
+
virtual HRESULT STDMETHODCALLTYPE GetCurrentImage(
|
| 520 |
+
/* [out][in] */ __RPC__inout BITMAPINFOHEADER *pBih,
|
| 521 |
+
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbDib) BYTE **pDib,
|
| 522 |
+
/* [out] */ __RPC__out DWORD *pcbDib,
|
| 523 |
+
/* [unique][out][in] */ __RPC__inout_opt LONGLONG *pTimeStamp) = 0;
|
| 524 |
+
|
| 525 |
+
virtual HRESULT STDMETHODCALLTYPE SetBorderColor(
|
| 526 |
+
/* [in] */ COLORREF Clr) = 0;
|
| 527 |
+
|
| 528 |
+
virtual HRESULT STDMETHODCALLTYPE GetBorderColor(
|
| 529 |
+
/* [out] */ __RPC__out COLORREF *pClr) = 0;
|
| 530 |
+
|
| 531 |
+
virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs(
|
| 532 |
+
/* [in] */ DWORD dwRenderFlags) = 0;
|
| 533 |
+
|
| 534 |
+
virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs(
|
| 535 |
+
/* [out] */ __RPC__out DWORD *pdwRenderFlags) = 0;
|
| 536 |
+
|
| 537 |
+
virtual HRESULT STDMETHODCALLTYPE SetFullscreen(
|
| 538 |
+
/* [in] */ BOOL fFullscreen) = 0;
|
| 539 |
+
|
| 540 |
+
virtual HRESULT STDMETHODCALLTYPE GetFullscreen(
|
| 541 |
+
/* [out] */ __RPC__out BOOL *pfFullscreen) = 0;
|
| 542 |
+
|
| 543 |
+
};
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
#else /* C style interface */
|
| 547 |
+
|
| 548 |
+
typedef struct IMFVideoDisplayControlVtbl
|
| 549 |
+
{
|
| 550 |
+
BEGIN_INTERFACE
|
| 551 |
+
|
| 552 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 553 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 554 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 555 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 556 |
+
/* [annotation][iid_is][out] */
|
| 557 |
+
_COM_Outptr_ void **ppvObject);
|
| 558 |
+
|
| 559 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 560 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 561 |
+
__RPC__in IMFVideoDisplayControl * This);
|
| 562 |
+
|
| 563 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 564 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 565 |
+
__RPC__in IMFVideoDisplayControl * This);
|
| 566 |
+
|
| 567 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetNativeVideoSize)
|
| 568 |
+
HRESULT ( STDMETHODCALLTYPE *GetNativeVideoSize )(
|
| 569 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 570 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszVideo,
|
| 571 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszARVideo);
|
| 572 |
+
|
| 573 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetIdealVideoSize)
|
| 574 |
+
HRESULT ( STDMETHODCALLTYPE *GetIdealVideoSize )(
|
| 575 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 576 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszMin,
|
| 577 |
+
/* [unique][out][in] */ __RPC__inout_opt SIZE *pszMax);
|
| 578 |
+
|
| 579 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetVideoPosition)
|
| 580 |
+
HRESULT ( STDMETHODCALLTYPE *SetVideoPosition )(
|
| 581 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 582 |
+
/* [unique][in] */ __RPC__in_opt const MFVideoNormalizedRect *pnrcSource,
|
| 583 |
+
/* [unique][in] */ __RPC__in_opt const LPRECT prcDest);
|
| 584 |
+
|
| 585 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetVideoPosition)
|
| 586 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )(
|
| 587 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 588 |
+
/* [out] */ __RPC__out MFVideoNormalizedRect *pnrcSource,
|
| 589 |
+
/* [out] */ __RPC__out LPRECT prcDest);
|
| 590 |
+
|
| 591 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetAspectRatioMode)
|
| 592 |
+
HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )(
|
| 593 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 594 |
+
/* [in] */ DWORD dwAspectRatioMode);
|
| 595 |
+
|
| 596 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetAspectRatioMode)
|
| 597 |
+
HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )(
|
| 598 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 599 |
+
/* [out] */ __RPC__out DWORD *pdwAspectRatioMode);
|
| 600 |
+
|
| 601 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetVideoWindow)
|
| 602 |
+
HRESULT ( STDMETHODCALLTYPE *SetVideoWindow )(
|
| 603 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 604 |
+
/* [in] */ __RPC__in HWND hwndVideo);
|
| 605 |
+
|
| 606 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetVideoWindow)
|
| 607 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoWindow )(
|
| 608 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 609 |
+
/* [out] */ __RPC__deref_out_opt HWND *phwndVideo);
|
| 610 |
+
|
| 611 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, RepaintVideo)
|
| 612 |
+
HRESULT ( STDMETHODCALLTYPE *RepaintVideo )(
|
| 613 |
+
__RPC__in IMFVideoDisplayControl * This);
|
| 614 |
+
|
| 615 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetCurrentImage)
|
| 616 |
+
HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )(
|
| 617 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 618 |
+
/* [out][in] */ __RPC__inout BITMAPINFOHEADER *pBih,
|
| 619 |
+
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbDib) BYTE **pDib,
|
| 620 |
+
/* [out] */ __RPC__out DWORD *pcbDib,
|
| 621 |
+
/* [unique][out][in] */ __RPC__inout_opt LONGLONG *pTimeStamp);
|
| 622 |
+
|
| 623 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetBorderColor)
|
| 624 |
+
HRESULT ( STDMETHODCALLTYPE *SetBorderColor )(
|
| 625 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 626 |
+
/* [in] */ COLORREF Clr);
|
| 627 |
+
|
| 628 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetBorderColor)
|
| 629 |
+
HRESULT ( STDMETHODCALLTYPE *GetBorderColor )(
|
| 630 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 631 |
+
/* [out] */ __RPC__out COLORREF *pClr);
|
| 632 |
+
|
| 633 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetRenderingPrefs)
|
| 634 |
+
HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )(
|
| 635 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 636 |
+
/* [in] */ DWORD dwRenderFlags);
|
| 637 |
+
|
| 638 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetRenderingPrefs)
|
| 639 |
+
HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )(
|
| 640 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 641 |
+
/* [out] */ __RPC__out DWORD *pdwRenderFlags);
|
| 642 |
+
|
| 643 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetFullscreen)
|
| 644 |
+
HRESULT ( STDMETHODCALLTYPE *SetFullscreen )(
|
| 645 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 646 |
+
/* [in] */ BOOL fFullscreen);
|
| 647 |
+
|
| 648 |
+
DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetFullscreen)
|
| 649 |
+
HRESULT ( STDMETHODCALLTYPE *GetFullscreen )(
|
| 650 |
+
__RPC__in IMFVideoDisplayControl * This,
|
| 651 |
+
/* [out] */ __RPC__out BOOL *pfFullscreen);
|
| 652 |
+
|
| 653 |
+
END_INTERFACE
|
| 654 |
+
} IMFVideoDisplayControlVtbl;
|
| 655 |
+
|
| 656 |
+
interface IMFVideoDisplayControl
|
| 657 |
+
{
|
| 658 |
+
CONST_VTBL struct IMFVideoDisplayControlVtbl *lpVtbl;
|
| 659 |
+
};
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
#ifdef COBJMACROS
|
| 664 |
+
|
| 665 |
+
|
| 666 |
+
#define IMFVideoDisplayControl_QueryInterface(This,riid,ppvObject) \
|
| 667 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 668 |
+
|
| 669 |
+
#define IMFVideoDisplayControl_AddRef(This) \
|
| 670 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 671 |
+
|
| 672 |
+
#define IMFVideoDisplayControl_Release(This) \
|
| 673 |
+
( (This)->lpVtbl -> Release(This) )
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
#define IMFVideoDisplayControl_GetNativeVideoSize(This,pszVideo,pszARVideo) \
|
| 677 |
+
( (This)->lpVtbl -> GetNativeVideoSize(This,pszVideo,pszARVideo) )
|
| 678 |
+
|
| 679 |
+
#define IMFVideoDisplayControl_GetIdealVideoSize(This,pszMin,pszMax) \
|
| 680 |
+
( (This)->lpVtbl -> GetIdealVideoSize(This,pszMin,pszMax) )
|
| 681 |
+
|
| 682 |
+
#define IMFVideoDisplayControl_SetVideoPosition(This,pnrcSource,prcDest) \
|
| 683 |
+
( (This)->lpVtbl -> SetVideoPosition(This,pnrcSource,prcDest) )
|
| 684 |
+
|
| 685 |
+
#define IMFVideoDisplayControl_GetVideoPosition(This,pnrcSource,prcDest) \
|
| 686 |
+
( (This)->lpVtbl -> GetVideoPosition(This,pnrcSource,prcDest) )
|
| 687 |
+
|
| 688 |
+
#define IMFVideoDisplayControl_SetAspectRatioMode(This,dwAspectRatioMode) \
|
| 689 |
+
( (This)->lpVtbl -> SetAspectRatioMode(This,dwAspectRatioMode) )
|
| 690 |
+
|
| 691 |
+
#define IMFVideoDisplayControl_GetAspectRatioMode(This,pdwAspectRatioMode) \
|
| 692 |
+
( (This)->lpVtbl -> GetAspectRatioMode(This,pdwAspectRatioMode) )
|
| 693 |
+
|
| 694 |
+
#define IMFVideoDisplayControl_SetVideoWindow(This,hwndVideo) \
|
| 695 |
+
( (This)->lpVtbl -> SetVideoWindow(This,hwndVideo) )
|
| 696 |
+
|
| 697 |
+
#define IMFVideoDisplayControl_GetVideoWindow(This,phwndVideo) \
|
| 698 |
+
( (This)->lpVtbl -> GetVideoWindow(This,phwndVideo) )
|
| 699 |
+
|
| 700 |
+
#define IMFVideoDisplayControl_RepaintVideo(This) \
|
| 701 |
+
( (This)->lpVtbl -> RepaintVideo(This) )
|
| 702 |
+
|
| 703 |
+
#define IMFVideoDisplayControl_GetCurrentImage(This,pBih,pDib,pcbDib,pTimeStamp) \
|
| 704 |
+
( (This)->lpVtbl -> GetCurrentImage(This,pBih,pDib,pcbDib,pTimeStamp) )
|
| 705 |
+
|
| 706 |
+
#define IMFVideoDisplayControl_SetBorderColor(This,Clr) \
|
| 707 |
+
( (This)->lpVtbl -> SetBorderColor(This,Clr) )
|
| 708 |
+
|
| 709 |
+
#define IMFVideoDisplayControl_GetBorderColor(This,pClr) \
|
| 710 |
+
( (This)->lpVtbl -> GetBorderColor(This,pClr) )
|
| 711 |
+
|
| 712 |
+
#define IMFVideoDisplayControl_SetRenderingPrefs(This,dwRenderFlags) \
|
| 713 |
+
( (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) )
|
| 714 |
+
|
| 715 |
+
#define IMFVideoDisplayControl_GetRenderingPrefs(This,pdwRenderFlags) \
|
| 716 |
+
( (This)->lpVtbl -> GetRenderingPrefs(This,pdwRenderFlags) )
|
| 717 |
+
|
| 718 |
+
#define IMFVideoDisplayControl_SetFullscreen(This,fFullscreen) \
|
| 719 |
+
( (This)->lpVtbl -> SetFullscreen(This,fFullscreen) )
|
| 720 |
+
|
| 721 |
+
#define IMFVideoDisplayControl_GetFullscreen(This,pfFullscreen) \
|
| 722 |
+
( (This)->lpVtbl -> GetFullscreen(This,pfFullscreen) )
|
| 723 |
+
|
| 724 |
+
#endif /* COBJMACROS */
|
| 725 |
+
|
| 726 |
+
|
| 727 |
+
#endif /* C style interface */
|
| 728 |
+
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
|
| 732 |
+
#endif /* __IMFVideoDisplayControl_INTERFACE_DEFINED__ */
|
| 733 |
+
|
| 734 |
+
|
| 735 |
+
/* interface __MIDL_itf_evr_0000_0003 */
|
| 736 |
+
/* [local] */
|
| 737 |
+
|
| 738 |
+
typedef
|
| 739 |
+
enum MFVP_MESSAGE_TYPE
|
| 740 |
+
{
|
| 741 |
+
MFVP_MESSAGE_FLUSH = 0,
|
| 742 |
+
MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x1,
|
| 743 |
+
MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x2,
|
| 744 |
+
MFVP_MESSAGE_BEGINSTREAMING = 0x3,
|
| 745 |
+
MFVP_MESSAGE_ENDSTREAMING = 0x4,
|
| 746 |
+
MFVP_MESSAGE_ENDOFSTREAM = 0x5,
|
| 747 |
+
MFVP_MESSAGE_STEP = 0x6,
|
| 748 |
+
MFVP_MESSAGE_CANCELSTEP = 0x7
|
| 749 |
+
} MFVP_MESSAGE_TYPE;
|
| 750 |
+
|
| 751 |
+
|
| 752 |
+
|
| 753 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0003_v0_0_c_ifspec;
|
| 754 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0003_v0_0_s_ifspec;
|
| 755 |
+
|
| 756 |
+
#ifndef __IMFVideoPresenter_INTERFACE_DEFINED__
|
| 757 |
+
#define __IMFVideoPresenter_INTERFACE_DEFINED__
|
| 758 |
+
|
| 759 |
+
/* interface IMFVideoPresenter */
|
| 760 |
+
/* [local][helpstring][uuid][object] */
|
| 761 |
+
|
| 762 |
+
|
| 763 |
+
EXTERN_C const IID IID_IMFVideoPresenter;
|
| 764 |
+
|
| 765 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 766 |
+
|
| 767 |
+
MIDL_INTERFACE("29AFF080-182A-4a5d-AF3B-448F3A6346CB")
|
| 768 |
+
IMFVideoPresenter : public IMFClockStateSink
|
| 769 |
+
{
|
| 770 |
+
public:
|
| 771 |
+
virtual HRESULT STDMETHODCALLTYPE ProcessMessage(
|
| 772 |
+
MFVP_MESSAGE_TYPE eMessage,
|
| 773 |
+
ULONG_PTR ulParam) = 0;
|
| 774 |
+
|
| 775 |
+
virtual HRESULT STDMETHODCALLTYPE GetCurrentMediaType(
|
| 776 |
+
/* [annotation][out] */
|
| 777 |
+
_Outptr_ IMFVideoMediaType **ppMediaType) = 0;
|
| 778 |
+
|
| 779 |
+
};
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
#else /* C style interface */
|
| 783 |
+
|
| 784 |
+
typedef struct IMFVideoPresenterVtbl
|
| 785 |
+
{
|
| 786 |
+
BEGIN_INTERFACE
|
| 787 |
+
|
| 788 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 789 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 790 |
+
IMFVideoPresenter * This,
|
| 791 |
+
/* [in] */ REFIID riid,
|
| 792 |
+
/* [annotation][iid_is][out] */
|
| 793 |
+
_COM_Outptr_ void **ppvObject);
|
| 794 |
+
|
| 795 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 796 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 797 |
+
IMFVideoPresenter * This);
|
| 798 |
+
|
| 799 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 800 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 801 |
+
IMFVideoPresenter * This);
|
| 802 |
+
|
| 803 |
+
DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockStart)
|
| 804 |
+
HRESULT ( STDMETHODCALLTYPE *OnClockStart )(
|
| 805 |
+
IMFVideoPresenter * This,
|
| 806 |
+
/* [in] */ MFTIME hnsSystemTime,
|
| 807 |
+
/* [in] */ LONGLONG llClockStartOffset);
|
| 808 |
+
|
| 809 |
+
DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockStop)
|
| 810 |
+
HRESULT ( STDMETHODCALLTYPE *OnClockStop )(
|
| 811 |
+
IMFVideoPresenter * This,
|
| 812 |
+
/* [in] */ MFTIME hnsSystemTime);
|
| 813 |
+
|
| 814 |
+
DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockPause)
|
| 815 |
+
HRESULT ( STDMETHODCALLTYPE *OnClockPause )(
|
| 816 |
+
IMFVideoPresenter * This,
|
| 817 |
+
/* [in] */ MFTIME hnsSystemTime);
|
| 818 |
+
|
| 819 |
+
DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockRestart)
|
| 820 |
+
HRESULT ( STDMETHODCALLTYPE *OnClockRestart )(
|
| 821 |
+
IMFVideoPresenter * This,
|
| 822 |
+
/* [in] */ MFTIME hnsSystemTime);
|
| 823 |
+
|
| 824 |
+
DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockSetRate)
|
| 825 |
+
HRESULT ( STDMETHODCALLTYPE *OnClockSetRate )(
|
| 826 |
+
IMFVideoPresenter * This,
|
| 827 |
+
/* [in] */ MFTIME hnsSystemTime,
|
| 828 |
+
/* [in] */ float flRate);
|
| 829 |
+
|
| 830 |
+
DECLSPEC_XFGVIRT(IMFVideoPresenter, ProcessMessage)
|
| 831 |
+
HRESULT ( STDMETHODCALLTYPE *ProcessMessage )(
|
| 832 |
+
IMFVideoPresenter * This,
|
| 833 |
+
MFVP_MESSAGE_TYPE eMessage,
|
| 834 |
+
ULONG_PTR ulParam);
|
| 835 |
+
|
| 836 |
+
DECLSPEC_XFGVIRT(IMFVideoPresenter, GetCurrentMediaType)
|
| 837 |
+
HRESULT ( STDMETHODCALLTYPE *GetCurrentMediaType )(
|
| 838 |
+
IMFVideoPresenter * This,
|
| 839 |
+
/* [annotation][out] */
|
| 840 |
+
_Outptr_ IMFVideoMediaType **ppMediaType);
|
| 841 |
+
|
| 842 |
+
END_INTERFACE
|
| 843 |
+
} IMFVideoPresenterVtbl;
|
| 844 |
+
|
| 845 |
+
interface IMFVideoPresenter
|
| 846 |
+
{
|
| 847 |
+
CONST_VTBL struct IMFVideoPresenterVtbl *lpVtbl;
|
| 848 |
+
};
|
| 849 |
+
|
| 850 |
+
|
| 851 |
+
|
| 852 |
+
#ifdef COBJMACROS
|
| 853 |
+
|
| 854 |
+
|
| 855 |
+
#define IMFVideoPresenter_QueryInterface(This,riid,ppvObject) \
|
| 856 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 857 |
+
|
| 858 |
+
#define IMFVideoPresenter_AddRef(This) \
|
| 859 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 860 |
+
|
| 861 |
+
#define IMFVideoPresenter_Release(This) \
|
| 862 |
+
( (This)->lpVtbl -> Release(This) )
|
| 863 |
+
|
| 864 |
+
|
| 865 |
+
#define IMFVideoPresenter_OnClockStart(This,hnsSystemTime,llClockStartOffset) \
|
| 866 |
+
( (This)->lpVtbl -> OnClockStart(This,hnsSystemTime,llClockStartOffset) )
|
| 867 |
+
|
| 868 |
+
#define IMFVideoPresenter_OnClockStop(This,hnsSystemTime) \
|
| 869 |
+
( (This)->lpVtbl -> OnClockStop(This,hnsSystemTime) )
|
| 870 |
+
|
| 871 |
+
#define IMFVideoPresenter_OnClockPause(This,hnsSystemTime) \
|
| 872 |
+
( (This)->lpVtbl -> OnClockPause(This,hnsSystemTime) )
|
| 873 |
+
|
| 874 |
+
#define IMFVideoPresenter_OnClockRestart(This,hnsSystemTime) \
|
| 875 |
+
( (This)->lpVtbl -> OnClockRestart(This,hnsSystemTime) )
|
| 876 |
+
|
| 877 |
+
#define IMFVideoPresenter_OnClockSetRate(This,hnsSystemTime,flRate) \
|
| 878 |
+
( (This)->lpVtbl -> OnClockSetRate(This,hnsSystemTime,flRate) )
|
| 879 |
+
|
| 880 |
+
|
| 881 |
+
#define IMFVideoPresenter_ProcessMessage(This,eMessage,ulParam) \
|
| 882 |
+
( (This)->lpVtbl -> ProcessMessage(This,eMessage,ulParam) )
|
| 883 |
+
|
| 884 |
+
#define IMFVideoPresenter_GetCurrentMediaType(This,ppMediaType) \
|
| 885 |
+
( (This)->lpVtbl -> GetCurrentMediaType(This,ppMediaType) )
|
| 886 |
+
|
| 887 |
+
#endif /* COBJMACROS */
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
#endif /* C style interface */
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
|
| 894 |
+
|
| 895 |
+
#endif /* __IMFVideoPresenter_INTERFACE_DEFINED__ */
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
#ifndef __IMFDesiredSample_INTERFACE_DEFINED__
|
| 899 |
+
#define __IMFDesiredSample_INTERFACE_DEFINED__
|
| 900 |
+
|
| 901 |
+
/* interface IMFDesiredSample */
|
| 902 |
+
/* [local][helpstring][uuid][object] */
|
| 903 |
+
|
| 904 |
+
|
| 905 |
+
EXTERN_C const IID IID_IMFDesiredSample;
|
| 906 |
+
|
| 907 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 908 |
+
|
| 909 |
+
MIDL_INTERFACE("56C294D0-753E-4260-8D61-A3D8820B1D54")
|
| 910 |
+
IMFDesiredSample : public IUnknown
|
| 911 |
+
{
|
| 912 |
+
public:
|
| 913 |
+
virtual HRESULT STDMETHODCALLTYPE GetDesiredSampleTimeAndDuration(
|
| 914 |
+
/* [annotation][out] */
|
| 915 |
+
_Out_ LONGLONG *phnsSampleTime,
|
| 916 |
+
/* [annotation][out] */
|
| 917 |
+
_Out_ LONGLONG *phnsSampleDuration) = 0;
|
| 918 |
+
|
| 919 |
+
virtual void STDMETHODCALLTYPE SetDesiredSampleTimeAndDuration(
|
| 920 |
+
/* [in] */ LONGLONG hnsSampleTime,
|
| 921 |
+
/* [in] */ LONGLONG hnsSampleDuration) = 0;
|
| 922 |
+
|
| 923 |
+
virtual void STDMETHODCALLTYPE Clear( void) = 0;
|
| 924 |
+
|
| 925 |
+
};
|
| 926 |
+
|
| 927 |
+
|
| 928 |
+
#else /* C style interface */
|
| 929 |
+
|
| 930 |
+
typedef struct IMFDesiredSampleVtbl
|
| 931 |
+
{
|
| 932 |
+
BEGIN_INTERFACE
|
| 933 |
+
|
| 934 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 935 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 936 |
+
IMFDesiredSample * This,
|
| 937 |
+
/* [in] */ REFIID riid,
|
| 938 |
+
/* [annotation][iid_is][out] */
|
| 939 |
+
_COM_Outptr_ void **ppvObject);
|
| 940 |
+
|
| 941 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 942 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 943 |
+
IMFDesiredSample * This);
|
| 944 |
+
|
| 945 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 946 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 947 |
+
IMFDesiredSample * This);
|
| 948 |
+
|
| 949 |
+
DECLSPEC_XFGVIRT(IMFDesiredSample, GetDesiredSampleTimeAndDuration)
|
| 950 |
+
HRESULT ( STDMETHODCALLTYPE *GetDesiredSampleTimeAndDuration )(
|
| 951 |
+
IMFDesiredSample * This,
|
| 952 |
+
/* [annotation][out] */
|
| 953 |
+
_Out_ LONGLONG *phnsSampleTime,
|
| 954 |
+
/* [annotation][out] */
|
| 955 |
+
_Out_ LONGLONG *phnsSampleDuration);
|
| 956 |
+
|
| 957 |
+
DECLSPEC_XFGVIRT(IMFDesiredSample, SetDesiredSampleTimeAndDuration)
|
| 958 |
+
void ( STDMETHODCALLTYPE *SetDesiredSampleTimeAndDuration )(
|
| 959 |
+
IMFDesiredSample * This,
|
| 960 |
+
/* [in] */ LONGLONG hnsSampleTime,
|
| 961 |
+
/* [in] */ LONGLONG hnsSampleDuration);
|
| 962 |
+
|
| 963 |
+
DECLSPEC_XFGVIRT(IMFDesiredSample, Clear)
|
| 964 |
+
void ( STDMETHODCALLTYPE *Clear )(
|
| 965 |
+
IMFDesiredSample * This);
|
| 966 |
+
|
| 967 |
+
END_INTERFACE
|
| 968 |
+
} IMFDesiredSampleVtbl;
|
| 969 |
+
|
| 970 |
+
interface IMFDesiredSample
|
| 971 |
+
{
|
| 972 |
+
CONST_VTBL struct IMFDesiredSampleVtbl *lpVtbl;
|
| 973 |
+
};
|
| 974 |
+
|
| 975 |
+
|
| 976 |
+
|
| 977 |
+
#ifdef COBJMACROS
|
| 978 |
+
|
| 979 |
+
|
| 980 |
+
#define IMFDesiredSample_QueryInterface(This,riid,ppvObject) \
|
| 981 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 982 |
+
|
| 983 |
+
#define IMFDesiredSample_AddRef(This) \
|
| 984 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 985 |
+
|
| 986 |
+
#define IMFDesiredSample_Release(This) \
|
| 987 |
+
( (This)->lpVtbl -> Release(This) )
|
| 988 |
+
|
| 989 |
+
|
| 990 |
+
#define IMFDesiredSample_GetDesiredSampleTimeAndDuration(This,phnsSampleTime,phnsSampleDuration) \
|
| 991 |
+
( (This)->lpVtbl -> GetDesiredSampleTimeAndDuration(This,phnsSampleTime,phnsSampleDuration) )
|
| 992 |
+
|
| 993 |
+
#define IMFDesiredSample_SetDesiredSampleTimeAndDuration(This,hnsSampleTime,hnsSampleDuration) \
|
| 994 |
+
( (This)->lpVtbl -> SetDesiredSampleTimeAndDuration(This,hnsSampleTime,hnsSampleDuration) )
|
| 995 |
+
|
| 996 |
+
#define IMFDesiredSample_Clear(This) \
|
| 997 |
+
( (This)->lpVtbl -> Clear(This) )
|
| 998 |
+
|
| 999 |
+
#endif /* COBJMACROS */
|
| 1000 |
+
|
| 1001 |
+
|
| 1002 |
+
#endif /* C style interface */
|
| 1003 |
+
|
| 1004 |
+
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
#endif /* __IMFDesiredSample_INTERFACE_DEFINED__ */
|
| 1008 |
+
|
| 1009 |
+
|
| 1010 |
+
#ifndef __IMFVideoMixerControl_INTERFACE_DEFINED__
|
| 1011 |
+
#define __IMFVideoMixerControl_INTERFACE_DEFINED__
|
| 1012 |
+
|
| 1013 |
+
/* interface IMFVideoMixerControl */
|
| 1014 |
+
/* [helpstring][uuid][object] */
|
| 1015 |
+
|
| 1016 |
+
|
| 1017 |
+
EXTERN_C const IID IID_IMFVideoMixerControl;
|
| 1018 |
+
|
| 1019 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1020 |
+
|
| 1021 |
+
MIDL_INTERFACE("A5C6C53F-C202-4aa5-9695-175BA8C508A5")
|
| 1022 |
+
IMFVideoMixerControl : public IUnknown
|
| 1023 |
+
{
|
| 1024 |
+
public:
|
| 1025 |
+
virtual HRESULT STDMETHODCALLTYPE SetStreamZOrder(
|
| 1026 |
+
/* [in] */ DWORD dwStreamID,
|
| 1027 |
+
/* [in] */ DWORD dwZ) = 0;
|
| 1028 |
+
|
| 1029 |
+
virtual HRESULT STDMETHODCALLTYPE GetStreamZOrder(
|
| 1030 |
+
/* [in] */ DWORD dwStreamID,
|
| 1031 |
+
/* [out] */ __RPC__out DWORD *pdwZ) = 0;
|
| 1032 |
+
|
| 1033 |
+
virtual HRESULT STDMETHODCALLTYPE SetStreamOutputRect(
|
| 1034 |
+
/* [in] */ DWORD dwStreamID,
|
| 1035 |
+
/* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput) = 0;
|
| 1036 |
+
|
| 1037 |
+
virtual HRESULT STDMETHODCALLTYPE GetStreamOutputRect(
|
| 1038 |
+
/* [in] */ DWORD dwStreamID,
|
| 1039 |
+
/* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput) = 0;
|
| 1040 |
+
|
| 1041 |
+
};
|
| 1042 |
+
|
| 1043 |
+
|
| 1044 |
+
#else /* C style interface */
|
| 1045 |
+
|
| 1046 |
+
typedef struct IMFVideoMixerControlVtbl
|
| 1047 |
+
{
|
| 1048 |
+
BEGIN_INTERFACE
|
| 1049 |
+
|
| 1050 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1051 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1052 |
+
__RPC__in IMFVideoMixerControl * This,
|
| 1053 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 1054 |
+
/* [annotation][iid_is][out] */
|
| 1055 |
+
_COM_Outptr_ void **ppvObject);
|
| 1056 |
+
|
| 1057 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1058 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1059 |
+
__RPC__in IMFVideoMixerControl * This);
|
| 1060 |
+
|
| 1061 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1062 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1063 |
+
__RPC__in IMFVideoMixerControl * This);
|
| 1064 |
+
|
| 1065 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamZOrder)
|
| 1066 |
+
HRESULT ( STDMETHODCALLTYPE *SetStreamZOrder )(
|
| 1067 |
+
__RPC__in IMFVideoMixerControl * This,
|
| 1068 |
+
/* [in] */ DWORD dwStreamID,
|
| 1069 |
+
/* [in] */ DWORD dwZ);
|
| 1070 |
+
|
| 1071 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamZOrder)
|
| 1072 |
+
HRESULT ( STDMETHODCALLTYPE *GetStreamZOrder )(
|
| 1073 |
+
__RPC__in IMFVideoMixerControl * This,
|
| 1074 |
+
/* [in] */ DWORD dwStreamID,
|
| 1075 |
+
/* [out] */ __RPC__out DWORD *pdwZ);
|
| 1076 |
+
|
| 1077 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamOutputRect)
|
| 1078 |
+
HRESULT ( STDMETHODCALLTYPE *SetStreamOutputRect )(
|
| 1079 |
+
__RPC__in IMFVideoMixerControl * This,
|
| 1080 |
+
/* [in] */ DWORD dwStreamID,
|
| 1081 |
+
/* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput);
|
| 1082 |
+
|
| 1083 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamOutputRect)
|
| 1084 |
+
HRESULT ( STDMETHODCALLTYPE *GetStreamOutputRect )(
|
| 1085 |
+
__RPC__in IMFVideoMixerControl * This,
|
| 1086 |
+
/* [in] */ DWORD dwStreamID,
|
| 1087 |
+
/* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput);
|
| 1088 |
+
|
| 1089 |
+
END_INTERFACE
|
| 1090 |
+
} IMFVideoMixerControlVtbl;
|
| 1091 |
+
|
| 1092 |
+
interface IMFVideoMixerControl
|
| 1093 |
+
{
|
| 1094 |
+
CONST_VTBL struct IMFVideoMixerControlVtbl *lpVtbl;
|
| 1095 |
+
};
|
| 1096 |
+
|
| 1097 |
+
|
| 1098 |
+
|
| 1099 |
+
#ifdef COBJMACROS
|
| 1100 |
+
|
| 1101 |
+
|
| 1102 |
+
#define IMFVideoMixerControl_QueryInterface(This,riid,ppvObject) \
|
| 1103 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1104 |
+
|
| 1105 |
+
#define IMFVideoMixerControl_AddRef(This) \
|
| 1106 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1107 |
+
|
| 1108 |
+
#define IMFVideoMixerControl_Release(This) \
|
| 1109 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1110 |
+
|
| 1111 |
+
|
| 1112 |
+
#define IMFVideoMixerControl_SetStreamZOrder(This,dwStreamID,dwZ) \
|
| 1113 |
+
( (This)->lpVtbl -> SetStreamZOrder(This,dwStreamID,dwZ) )
|
| 1114 |
+
|
| 1115 |
+
#define IMFVideoMixerControl_GetStreamZOrder(This,dwStreamID,pdwZ) \
|
| 1116 |
+
( (This)->lpVtbl -> GetStreamZOrder(This,dwStreamID,pdwZ) )
|
| 1117 |
+
|
| 1118 |
+
#define IMFVideoMixerControl_SetStreamOutputRect(This,dwStreamID,pnrcOutput) \
|
| 1119 |
+
( (This)->lpVtbl -> SetStreamOutputRect(This,dwStreamID,pnrcOutput) )
|
| 1120 |
+
|
| 1121 |
+
#define IMFVideoMixerControl_GetStreamOutputRect(This,dwStreamID,pnrcOutput) \
|
| 1122 |
+
( (This)->lpVtbl -> GetStreamOutputRect(This,dwStreamID,pnrcOutput) )
|
| 1123 |
+
|
| 1124 |
+
#endif /* COBJMACROS */
|
| 1125 |
+
|
| 1126 |
+
|
| 1127 |
+
#endif /* C style interface */
|
| 1128 |
+
|
| 1129 |
+
|
| 1130 |
+
|
| 1131 |
+
|
| 1132 |
+
#endif /* __IMFVideoMixerControl_INTERFACE_DEFINED__ */
|
| 1133 |
+
|
| 1134 |
+
|
| 1135 |
+
/* interface __MIDL_itf_evr_0000_0006 */
|
| 1136 |
+
/* [local] */
|
| 1137 |
+
|
| 1138 |
+
typedef
|
| 1139 |
+
enum _MFVideoMixPrefs
|
| 1140 |
+
{
|
| 1141 |
+
MFVideoMixPrefs_ForceHalfInterlace = 0x1,
|
| 1142 |
+
MFVideoMixPrefs_AllowDropToHalfInterlace = 0x2,
|
| 1143 |
+
MFVideoMixPrefs_AllowDropToBob = 0x4,
|
| 1144 |
+
MFVideoMixPrefs_ForceBob = 0x8,
|
| 1145 |
+
MFVideoMixPrefs_EnableRotation = 0x10,
|
| 1146 |
+
MFVideoMixPrefs_Mask = 0x1f
|
| 1147 |
+
} MFVideoMixPrefs;
|
| 1148 |
+
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0006_v0_0_c_ifspec;
|
| 1152 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0006_v0_0_s_ifspec;
|
| 1153 |
+
|
| 1154 |
+
#ifndef __IMFVideoMixerControl2_INTERFACE_DEFINED__
|
| 1155 |
+
#define __IMFVideoMixerControl2_INTERFACE_DEFINED__
|
| 1156 |
+
|
| 1157 |
+
/* interface IMFVideoMixerControl2 */
|
| 1158 |
+
/* [helpstring][uuid][object] */
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
EXTERN_C const IID IID_IMFVideoMixerControl2;
|
| 1162 |
+
|
| 1163 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1164 |
+
|
| 1165 |
+
MIDL_INTERFACE("8459616d-966e-4930-b658-54fa7e5a16d3")
|
| 1166 |
+
IMFVideoMixerControl2 : public IMFVideoMixerControl
|
| 1167 |
+
{
|
| 1168 |
+
public:
|
| 1169 |
+
virtual HRESULT STDMETHODCALLTYPE SetMixingPrefs(
|
| 1170 |
+
/* [in] */ DWORD dwMixFlags) = 0;
|
| 1171 |
+
|
| 1172 |
+
virtual HRESULT STDMETHODCALLTYPE GetMixingPrefs(
|
| 1173 |
+
/* [out] */ __RPC__out DWORD *pdwMixFlags) = 0;
|
| 1174 |
+
|
| 1175 |
+
};
|
| 1176 |
+
|
| 1177 |
+
|
| 1178 |
+
#else /* C style interface */
|
| 1179 |
+
|
| 1180 |
+
typedef struct IMFVideoMixerControl2Vtbl
|
| 1181 |
+
{
|
| 1182 |
+
BEGIN_INTERFACE
|
| 1183 |
+
|
| 1184 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1185 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1186 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1187 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 1188 |
+
/* [annotation][iid_is][out] */
|
| 1189 |
+
_COM_Outptr_ void **ppvObject);
|
| 1190 |
+
|
| 1191 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1192 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1193 |
+
__RPC__in IMFVideoMixerControl2 * This);
|
| 1194 |
+
|
| 1195 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1196 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1197 |
+
__RPC__in IMFVideoMixerControl2 * This);
|
| 1198 |
+
|
| 1199 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamZOrder)
|
| 1200 |
+
HRESULT ( STDMETHODCALLTYPE *SetStreamZOrder )(
|
| 1201 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1202 |
+
/* [in] */ DWORD dwStreamID,
|
| 1203 |
+
/* [in] */ DWORD dwZ);
|
| 1204 |
+
|
| 1205 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamZOrder)
|
| 1206 |
+
HRESULT ( STDMETHODCALLTYPE *GetStreamZOrder )(
|
| 1207 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1208 |
+
/* [in] */ DWORD dwStreamID,
|
| 1209 |
+
/* [out] */ __RPC__out DWORD *pdwZ);
|
| 1210 |
+
|
| 1211 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamOutputRect)
|
| 1212 |
+
HRESULT ( STDMETHODCALLTYPE *SetStreamOutputRect )(
|
| 1213 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1214 |
+
/* [in] */ DWORD dwStreamID,
|
| 1215 |
+
/* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput);
|
| 1216 |
+
|
| 1217 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamOutputRect)
|
| 1218 |
+
HRESULT ( STDMETHODCALLTYPE *GetStreamOutputRect )(
|
| 1219 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1220 |
+
/* [in] */ DWORD dwStreamID,
|
| 1221 |
+
/* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput);
|
| 1222 |
+
|
| 1223 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl2, SetMixingPrefs)
|
| 1224 |
+
HRESULT ( STDMETHODCALLTYPE *SetMixingPrefs )(
|
| 1225 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1226 |
+
/* [in] */ DWORD dwMixFlags);
|
| 1227 |
+
|
| 1228 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerControl2, GetMixingPrefs)
|
| 1229 |
+
HRESULT ( STDMETHODCALLTYPE *GetMixingPrefs )(
|
| 1230 |
+
__RPC__in IMFVideoMixerControl2 * This,
|
| 1231 |
+
/* [out] */ __RPC__out DWORD *pdwMixFlags);
|
| 1232 |
+
|
| 1233 |
+
END_INTERFACE
|
| 1234 |
+
} IMFVideoMixerControl2Vtbl;
|
| 1235 |
+
|
| 1236 |
+
interface IMFVideoMixerControl2
|
| 1237 |
+
{
|
| 1238 |
+
CONST_VTBL struct IMFVideoMixerControl2Vtbl *lpVtbl;
|
| 1239 |
+
};
|
| 1240 |
+
|
| 1241 |
+
|
| 1242 |
+
|
| 1243 |
+
#ifdef COBJMACROS
|
| 1244 |
+
|
| 1245 |
+
|
| 1246 |
+
#define IMFVideoMixerControl2_QueryInterface(This,riid,ppvObject) \
|
| 1247 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1248 |
+
|
| 1249 |
+
#define IMFVideoMixerControl2_AddRef(This) \
|
| 1250 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1251 |
+
|
| 1252 |
+
#define IMFVideoMixerControl2_Release(This) \
|
| 1253 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1254 |
+
|
| 1255 |
+
|
| 1256 |
+
#define IMFVideoMixerControl2_SetStreamZOrder(This,dwStreamID,dwZ) \
|
| 1257 |
+
( (This)->lpVtbl -> SetStreamZOrder(This,dwStreamID,dwZ) )
|
| 1258 |
+
|
| 1259 |
+
#define IMFVideoMixerControl2_GetStreamZOrder(This,dwStreamID,pdwZ) \
|
| 1260 |
+
( (This)->lpVtbl -> GetStreamZOrder(This,dwStreamID,pdwZ) )
|
| 1261 |
+
|
| 1262 |
+
#define IMFVideoMixerControl2_SetStreamOutputRect(This,dwStreamID,pnrcOutput) \
|
| 1263 |
+
( (This)->lpVtbl -> SetStreamOutputRect(This,dwStreamID,pnrcOutput) )
|
| 1264 |
+
|
| 1265 |
+
#define IMFVideoMixerControl2_GetStreamOutputRect(This,dwStreamID,pnrcOutput) \
|
| 1266 |
+
( (This)->lpVtbl -> GetStreamOutputRect(This,dwStreamID,pnrcOutput) )
|
| 1267 |
+
|
| 1268 |
+
|
| 1269 |
+
#define IMFVideoMixerControl2_SetMixingPrefs(This,dwMixFlags) \
|
| 1270 |
+
( (This)->lpVtbl -> SetMixingPrefs(This,dwMixFlags) )
|
| 1271 |
+
|
| 1272 |
+
#define IMFVideoMixerControl2_GetMixingPrefs(This,pdwMixFlags) \
|
| 1273 |
+
( (This)->lpVtbl -> GetMixingPrefs(This,pdwMixFlags) )
|
| 1274 |
+
|
| 1275 |
+
#endif /* COBJMACROS */
|
| 1276 |
+
|
| 1277 |
+
|
| 1278 |
+
#endif /* C style interface */
|
| 1279 |
+
|
| 1280 |
+
|
| 1281 |
+
|
| 1282 |
+
|
| 1283 |
+
#endif /* __IMFVideoMixerControl2_INTERFACE_DEFINED__ */
|
| 1284 |
+
|
| 1285 |
+
|
| 1286 |
+
#ifndef __IMFVideoRenderer_INTERFACE_DEFINED__
|
| 1287 |
+
#define __IMFVideoRenderer_INTERFACE_DEFINED__
|
| 1288 |
+
|
| 1289 |
+
/* interface IMFVideoRenderer */
|
| 1290 |
+
/* [local][helpstring][uuid][object] */
|
| 1291 |
+
|
| 1292 |
+
|
| 1293 |
+
EXTERN_C const IID IID_IMFVideoRenderer;
|
| 1294 |
+
|
| 1295 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1296 |
+
|
| 1297 |
+
MIDL_INTERFACE("DFDFD197-A9CA-43d8-B341-6AF3503792CD")
|
| 1298 |
+
IMFVideoRenderer : public IUnknown
|
| 1299 |
+
{
|
| 1300 |
+
public:
|
| 1301 |
+
virtual HRESULT STDMETHODCALLTYPE InitializeRenderer(
|
| 1302 |
+
/* [annotation][unique][in] */
|
| 1303 |
+
_In_opt_ IMFTransform *pVideoMixer,
|
| 1304 |
+
/* [annotation][unique][in] */
|
| 1305 |
+
_In_opt_ IMFVideoPresenter *pVideoPresenter) = 0;
|
| 1306 |
+
|
| 1307 |
+
};
|
| 1308 |
+
|
| 1309 |
+
|
| 1310 |
+
#else /* C style interface */
|
| 1311 |
+
|
| 1312 |
+
typedef struct IMFVideoRendererVtbl
|
| 1313 |
+
{
|
| 1314 |
+
BEGIN_INTERFACE
|
| 1315 |
+
|
| 1316 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1317 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1318 |
+
IMFVideoRenderer * This,
|
| 1319 |
+
/* [in] */ REFIID riid,
|
| 1320 |
+
/* [annotation][iid_is][out] */
|
| 1321 |
+
_COM_Outptr_ void **ppvObject);
|
| 1322 |
+
|
| 1323 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1324 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1325 |
+
IMFVideoRenderer * This);
|
| 1326 |
+
|
| 1327 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1328 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1329 |
+
IMFVideoRenderer * This);
|
| 1330 |
+
|
| 1331 |
+
DECLSPEC_XFGVIRT(IMFVideoRenderer, InitializeRenderer)
|
| 1332 |
+
HRESULT ( STDMETHODCALLTYPE *InitializeRenderer )(
|
| 1333 |
+
IMFVideoRenderer * This,
|
| 1334 |
+
/* [annotation][unique][in] */
|
| 1335 |
+
_In_opt_ IMFTransform *pVideoMixer,
|
| 1336 |
+
/* [annotation][unique][in] */
|
| 1337 |
+
_In_opt_ IMFVideoPresenter *pVideoPresenter);
|
| 1338 |
+
|
| 1339 |
+
END_INTERFACE
|
| 1340 |
+
} IMFVideoRendererVtbl;
|
| 1341 |
+
|
| 1342 |
+
interface IMFVideoRenderer
|
| 1343 |
+
{
|
| 1344 |
+
CONST_VTBL struct IMFVideoRendererVtbl *lpVtbl;
|
| 1345 |
+
};
|
| 1346 |
+
|
| 1347 |
+
|
| 1348 |
+
|
| 1349 |
+
#ifdef COBJMACROS
|
| 1350 |
+
|
| 1351 |
+
|
| 1352 |
+
#define IMFVideoRenderer_QueryInterface(This,riid,ppvObject) \
|
| 1353 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1354 |
+
|
| 1355 |
+
#define IMFVideoRenderer_AddRef(This) \
|
| 1356 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1357 |
+
|
| 1358 |
+
#define IMFVideoRenderer_Release(This) \
|
| 1359 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1360 |
+
|
| 1361 |
+
|
| 1362 |
+
#define IMFVideoRenderer_InitializeRenderer(This,pVideoMixer,pVideoPresenter) \
|
| 1363 |
+
( (This)->lpVtbl -> InitializeRenderer(This,pVideoMixer,pVideoPresenter) )
|
| 1364 |
+
|
| 1365 |
+
#endif /* COBJMACROS */
|
| 1366 |
+
|
| 1367 |
+
|
| 1368 |
+
#endif /* C style interface */
|
| 1369 |
+
|
| 1370 |
+
|
| 1371 |
+
|
| 1372 |
+
|
| 1373 |
+
#endif /* __IMFVideoRenderer_INTERFACE_DEFINED__ */
|
| 1374 |
+
|
| 1375 |
+
|
| 1376 |
+
#ifndef __IEVRFilterConfig_INTERFACE_DEFINED__
|
| 1377 |
+
#define __IEVRFilterConfig_INTERFACE_DEFINED__
|
| 1378 |
+
|
| 1379 |
+
/* interface IEVRFilterConfig */
|
| 1380 |
+
/* [local][helpstring][uuid][object] */
|
| 1381 |
+
|
| 1382 |
+
|
| 1383 |
+
EXTERN_C const IID IID_IEVRFilterConfig;
|
| 1384 |
+
|
| 1385 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1386 |
+
|
| 1387 |
+
MIDL_INTERFACE("83E91E85-82C1-4ea7-801D-85DC50B75086")
|
| 1388 |
+
IEVRFilterConfig : public IUnknown
|
| 1389 |
+
{
|
| 1390 |
+
public:
|
| 1391 |
+
virtual HRESULT STDMETHODCALLTYPE SetNumberOfStreams(
|
| 1392 |
+
/* [in] */ DWORD dwMaxStreams) = 0;
|
| 1393 |
+
|
| 1394 |
+
virtual HRESULT STDMETHODCALLTYPE GetNumberOfStreams(
|
| 1395 |
+
/* [annotation][out] */
|
| 1396 |
+
_Out_ DWORD *pdwMaxStreams) = 0;
|
| 1397 |
+
|
| 1398 |
+
};
|
| 1399 |
+
|
| 1400 |
+
|
| 1401 |
+
#else /* C style interface */
|
| 1402 |
+
|
| 1403 |
+
typedef struct IEVRFilterConfigVtbl
|
| 1404 |
+
{
|
| 1405 |
+
BEGIN_INTERFACE
|
| 1406 |
+
|
| 1407 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1408 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1409 |
+
IEVRFilterConfig * This,
|
| 1410 |
+
/* [in] */ REFIID riid,
|
| 1411 |
+
/* [annotation][iid_is][out] */
|
| 1412 |
+
_COM_Outptr_ void **ppvObject);
|
| 1413 |
+
|
| 1414 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1415 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1416 |
+
IEVRFilterConfig * This);
|
| 1417 |
+
|
| 1418 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1419 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1420 |
+
IEVRFilterConfig * This);
|
| 1421 |
+
|
| 1422 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfig, SetNumberOfStreams)
|
| 1423 |
+
HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )(
|
| 1424 |
+
IEVRFilterConfig * This,
|
| 1425 |
+
/* [in] */ DWORD dwMaxStreams);
|
| 1426 |
+
|
| 1427 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfig, GetNumberOfStreams)
|
| 1428 |
+
HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )(
|
| 1429 |
+
IEVRFilterConfig * This,
|
| 1430 |
+
/* [annotation][out] */
|
| 1431 |
+
_Out_ DWORD *pdwMaxStreams);
|
| 1432 |
+
|
| 1433 |
+
END_INTERFACE
|
| 1434 |
+
} IEVRFilterConfigVtbl;
|
| 1435 |
+
|
| 1436 |
+
interface IEVRFilterConfig
|
| 1437 |
+
{
|
| 1438 |
+
CONST_VTBL struct IEVRFilterConfigVtbl *lpVtbl;
|
| 1439 |
+
};
|
| 1440 |
+
|
| 1441 |
+
|
| 1442 |
+
|
| 1443 |
+
#ifdef COBJMACROS
|
| 1444 |
+
|
| 1445 |
+
|
| 1446 |
+
#define IEVRFilterConfig_QueryInterface(This,riid,ppvObject) \
|
| 1447 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1448 |
+
|
| 1449 |
+
#define IEVRFilterConfig_AddRef(This) \
|
| 1450 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1451 |
+
|
| 1452 |
+
#define IEVRFilterConfig_Release(This) \
|
| 1453 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1454 |
+
|
| 1455 |
+
|
| 1456 |
+
#define IEVRFilterConfig_SetNumberOfStreams(This,dwMaxStreams) \
|
| 1457 |
+
( (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) )
|
| 1458 |
+
|
| 1459 |
+
#define IEVRFilterConfig_GetNumberOfStreams(This,pdwMaxStreams) \
|
| 1460 |
+
( (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) )
|
| 1461 |
+
|
| 1462 |
+
#endif /* COBJMACROS */
|
| 1463 |
+
|
| 1464 |
+
|
| 1465 |
+
#endif /* C style interface */
|
| 1466 |
+
|
| 1467 |
+
|
| 1468 |
+
|
| 1469 |
+
|
| 1470 |
+
#endif /* __IEVRFilterConfig_INTERFACE_DEFINED__ */
|
| 1471 |
+
|
| 1472 |
+
|
| 1473 |
+
/* interface __MIDL_itf_evr_0000_0009 */
|
| 1474 |
+
/* [local] */
|
| 1475 |
+
|
| 1476 |
+
typedef
|
| 1477 |
+
enum _EVRFilterConfig_Prefs
|
| 1478 |
+
{
|
| 1479 |
+
EVRFilterConfigPrefs_EnableQoS = 0x1,
|
| 1480 |
+
EVRFilterConfigPrefs_Mask = 0x1
|
| 1481 |
+
} EVRFilterConfigPrefs;
|
| 1482 |
+
|
| 1483 |
+
|
| 1484 |
+
|
| 1485 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0009_v0_0_c_ifspec;
|
| 1486 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0009_v0_0_s_ifspec;
|
| 1487 |
+
|
| 1488 |
+
#ifndef __IEVRFilterConfigEx_INTERFACE_DEFINED__
|
| 1489 |
+
#define __IEVRFilterConfigEx_INTERFACE_DEFINED__
|
| 1490 |
+
|
| 1491 |
+
/* interface IEVRFilterConfigEx */
|
| 1492 |
+
/* [helpstring][uuid][object] */
|
| 1493 |
+
|
| 1494 |
+
|
| 1495 |
+
EXTERN_C const IID IID_IEVRFilterConfigEx;
|
| 1496 |
+
|
| 1497 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1498 |
+
|
| 1499 |
+
MIDL_INTERFACE("aea36028-796d-454f-beee-b48071e24304")
|
| 1500 |
+
IEVRFilterConfigEx : public IEVRFilterConfig
|
| 1501 |
+
{
|
| 1502 |
+
public:
|
| 1503 |
+
virtual HRESULT STDMETHODCALLTYPE SetConfigPrefs(
|
| 1504 |
+
/* [in] */ DWORD dwConfigFlags) = 0;
|
| 1505 |
+
|
| 1506 |
+
virtual HRESULT STDMETHODCALLTYPE GetConfigPrefs(
|
| 1507 |
+
/* [out] */ __RPC__out DWORD *pdwConfigFlags) = 0;
|
| 1508 |
+
|
| 1509 |
+
};
|
| 1510 |
+
|
| 1511 |
+
|
| 1512 |
+
#else /* C style interface */
|
| 1513 |
+
|
| 1514 |
+
typedef struct IEVRFilterConfigExVtbl
|
| 1515 |
+
{
|
| 1516 |
+
BEGIN_INTERFACE
|
| 1517 |
+
|
| 1518 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1519 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1520 |
+
__RPC__in IEVRFilterConfigEx * This,
|
| 1521 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 1522 |
+
/* [annotation][iid_is][out] */
|
| 1523 |
+
_COM_Outptr_ void **ppvObject);
|
| 1524 |
+
|
| 1525 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1526 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1527 |
+
__RPC__in IEVRFilterConfigEx * This);
|
| 1528 |
+
|
| 1529 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1530 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1531 |
+
__RPC__in IEVRFilterConfigEx * This);
|
| 1532 |
+
|
| 1533 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfig, SetNumberOfStreams)
|
| 1534 |
+
HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )(
|
| 1535 |
+
__RPC__in IEVRFilterConfigEx * This,
|
| 1536 |
+
/* [in] */ DWORD dwMaxStreams);
|
| 1537 |
+
|
| 1538 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfig, GetNumberOfStreams)
|
| 1539 |
+
HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )(
|
| 1540 |
+
__RPC__in IEVRFilterConfigEx * This,
|
| 1541 |
+
/* [annotation][out] */
|
| 1542 |
+
_Out_ DWORD *pdwMaxStreams);
|
| 1543 |
+
|
| 1544 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfigEx, SetConfigPrefs)
|
| 1545 |
+
HRESULT ( STDMETHODCALLTYPE *SetConfigPrefs )(
|
| 1546 |
+
__RPC__in IEVRFilterConfigEx * This,
|
| 1547 |
+
/* [in] */ DWORD dwConfigFlags);
|
| 1548 |
+
|
| 1549 |
+
DECLSPEC_XFGVIRT(IEVRFilterConfigEx, GetConfigPrefs)
|
| 1550 |
+
HRESULT ( STDMETHODCALLTYPE *GetConfigPrefs )(
|
| 1551 |
+
__RPC__in IEVRFilterConfigEx * This,
|
| 1552 |
+
/* [out] */ __RPC__out DWORD *pdwConfigFlags);
|
| 1553 |
+
|
| 1554 |
+
END_INTERFACE
|
| 1555 |
+
} IEVRFilterConfigExVtbl;
|
| 1556 |
+
|
| 1557 |
+
interface IEVRFilterConfigEx
|
| 1558 |
+
{
|
| 1559 |
+
CONST_VTBL struct IEVRFilterConfigExVtbl *lpVtbl;
|
| 1560 |
+
};
|
| 1561 |
+
|
| 1562 |
+
|
| 1563 |
+
|
| 1564 |
+
#ifdef COBJMACROS
|
| 1565 |
+
|
| 1566 |
+
|
| 1567 |
+
#define IEVRFilterConfigEx_QueryInterface(This,riid,ppvObject) \
|
| 1568 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1569 |
+
|
| 1570 |
+
#define IEVRFilterConfigEx_AddRef(This) \
|
| 1571 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1572 |
+
|
| 1573 |
+
#define IEVRFilterConfigEx_Release(This) \
|
| 1574 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1575 |
+
|
| 1576 |
+
|
| 1577 |
+
#define IEVRFilterConfigEx_SetNumberOfStreams(This,dwMaxStreams) \
|
| 1578 |
+
( (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) )
|
| 1579 |
+
|
| 1580 |
+
#define IEVRFilterConfigEx_GetNumberOfStreams(This,pdwMaxStreams) \
|
| 1581 |
+
( (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) )
|
| 1582 |
+
|
| 1583 |
+
|
| 1584 |
+
#define IEVRFilterConfigEx_SetConfigPrefs(This,dwConfigFlags) \
|
| 1585 |
+
( (This)->lpVtbl -> SetConfigPrefs(This,dwConfigFlags) )
|
| 1586 |
+
|
| 1587 |
+
#define IEVRFilterConfigEx_GetConfigPrefs(This,pdwConfigFlags) \
|
| 1588 |
+
( (This)->lpVtbl -> GetConfigPrefs(This,pdwConfigFlags) )
|
| 1589 |
+
|
| 1590 |
+
#endif /* COBJMACROS */
|
| 1591 |
+
|
| 1592 |
+
|
| 1593 |
+
#endif /* C style interface */
|
| 1594 |
+
|
| 1595 |
+
|
| 1596 |
+
|
| 1597 |
+
|
| 1598 |
+
#endif /* __IEVRFilterConfigEx_INTERFACE_DEFINED__ */
|
| 1599 |
+
|
| 1600 |
+
|
| 1601 |
+
/* interface __MIDL_itf_evr_0000_0010 */
|
| 1602 |
+
/* [local] */
|
| 1603 |
+
|
| 1604 |
+
typedef
|
| 1605 |
+
enum _MF_SERVICE_LOOKUP_TYPE
|
| 1606 |
+
{
|
| 1607 |
+
MF_SERVICE_LOOKUP_UPSTREAM = 0,
|
| 1608 |
+
MF_SERVICE_LOOKUP_UPSTREAM_DIRECT = ( MF_SERVICE_LOOKUP_UPSTREAM + 1 ) ,
|
| 1609 |
+
MF_SERVICE_LOOKUP_DOWNSTREAM = ( MF_SERVICE_LOOKUP_UPSTREAM_DIRECT + 1 ) ,
|
| 1610 |
+
MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT = ( MF_SERVICE_LOOKUP_DOWNSTREAM + 1 ) ,
|
| 1611 |
+
MF_SERVICE_LOOKUP_ALL = ( MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT + 1 ) ,
|
| 1612 |
+
MF_SERVICE_LOOKUP_GLOBAL = ( MF_SERVICE_LOOKUP_ALL + 1 )
|
| 1613 |
+
} MF_SERVICE_LOOKUP_TYPE;
|
| 1614 |
+
|
| 1615 |
+
|
| 1616 |
+
|
| 1617 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0010_v0_0_c_ifspec;
|
| 1618 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0010_v0_0_s_ifspec;
|
| 1619 |
+
|
| 1620 |
+
#ifndef __IMFTopologyServiceLookup_INTERFACE_DEFINED__
|
| 1621 |
+
#define __IMFTopologyServiceLookup_INTERFACE_DEFINED__
|
| 1622 |
+
|
| 1623 |
+
/* interface IMFTopologyServiceLookup */
|
| 1624 |
+
/* [local][helpstring][uuid][object] */
|
| 1625 |
+
|
| 1626 |
+
|
| 1627 |
+
EXTERN_C const IID IID_IMFTopologyServiceLookup;
|
| 1628 |
+
|
| 1629 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1630 |
+
|
| 1631 |
+
MIDL_INTERFACE("fa993889-4383-415a-a930-dd472a8cf6f7")
|
| 1632 |
+
IMFTopologyServiceLookup : public IUnknown
|
| 1633 |
+
{
|
| 1634 |
+
public:
|
| 1635 |
+
virtual HRESULT STDMETHODCALLTYPE LookupService(
|
| 1636 |
+
/* [in] */ MF_SERVICE_LOOKUP_TYPE Type,
|
| 1637 |
+
/* [in] */ DWORD dwIndex,
|
| 1638 |
+
/* [in] */ REFGUID guidService,
|
| 1639 |
+
/* [in] */ REFIID riid,
|
| 1640 |
+
/* [annotation][iid_is][out] */
|
| 1641 |
+
_Out_writes_to_(1,*pnObjects) LPVOID *ppvObjects,
|
| 1642 |
+
/* [annotation][out][in] */
|
| 1643 |
+
_Inout_ DWORD *pnObjects) = 0;
|
| 1644 |
+
|
| 1645 |
+
};
|
| 1646 |
+
|
| 1647 |
+
|
| 1648 |
+
#else /* C style interface */
|
| 1649 |
+
|
| 1650 |
+
typedef struct IMFTopologyServiceLookupVtbl
|
| 1651 |
+
{
|
| 1652 |
+
BEGIN_INTERFACE
|
| 1653 |
+
|
| 1654 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1655 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1656 |
+
IMFTopologyServiceLookup * This,
|
| 1657 |
+
/* [in] */ REFIID riid,
|
| 1658 |
+
/* [annotation][iid_is][out] */
|
| 1659 |
+
_COM_Outptr_ void **ppvObject);
|
| 1660 |
+
|
| 1661 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1662 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1663 |
+
IMFTopologyServiceLookup * This);
|
| 1664 |
+
|
| 1665 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1666 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1667 |
+
IMFTopologyServiceLookup * This);
|
| 1668 |
+
|
| 1669 |
+
DECLSPEC_XFGVIRT(IMFTopologyServiceLookup, LookupService)
|
| 1670 |
+
HRESULT ( STDMETHODCALLTYPE *LookupService )(
|
| 1671 |
+
IMFTopologyServiceLookup * This,
|
| 1672 |
+
/* [in] */ MF_SERVICE_LOOKUP_TYPE Type,
|
| 1673 |
+
/* [in] */ DWORD dwIndex,
|
| 1674 |
+
/* [in] */ REFGUID guidService,
|
| 1675 |
+
/* [in] */ REFIID riid,
|
| 1676 |
+
/* [annotation][iid_is][out] */
|
| 1677 |
+
_Out_writes_to_(1,*pnObjects) LPVOID *ppvObjects,
|
| 1678 |
+
/* [annotation][out][in] */
|
| 1679 |
+
_Inout_ DWORD *pnObjects);
|
| 1680 |
+
|
| 1681 |
+
END_INTERFACE
|
| 1682 |
+
} IMFTopologyServiceLookupVtbl;
|
| 1683 |
+
|
| 1684 |
+
interface IMFTopologyServiceLookup
|
| 1685 |
+
{
|
| 1686 |
+
CONST_VTBL struct IMFTopologyServiceLookupVtbl *lpVtbl;
|
| 1687 |
+
};
|
| 1688 |
+
|
| 1689 |
+
|
| 1690 |
+
|
| 1691 |
+
#ifdef COBJMACROS
|
| 1692 |
+
|
| 1693 |
+
|
| 1694 |
+
#define IMFTopologyServiceLookup_QueryInterface(This,riid,ppvObject) \
|
| 1695 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1696 |
+
|
| 1697 |
+
#define IMFTopologyServiceLookup_AddRef(This) \
|
| 1698 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1699 |
+
|
| 1700 |
+
#define IMFTopologyServiceLookup_Release(This) \
|
| 1701 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1702 |
+
|
| 1703 |
+
|
| 1704 |
+
#define IMFTopologyServiceLookup_LookupService(This,Type,dwIndex,guidService,riid,ppvObjects,pnObjects) \
|
| 1705 |
+
( (This)->lpVtbl -> LookupService(This,Type,dwIndex,guidService,riid,ppvObjects,pnObjects) )
|
| 1706 |
+
|
| 1707 |
+
#endif /* COBJMACROS */
|
| 1708 |
+
|
| 1709 |
+
|
| 1710 |
+
#endif /* C style interface */
|
| 1711 |
+
|
| 1712 |
+
|
| 1713 |
+
|
| 1714 |
+
|
| 1715 |
+
#endif /* __IMFTopologyServiceLookup_INTERFACE_DEFINED__ */
|
| 1716 |
+
|
| 1717 |
+
|
| 1718 |
+
#ifndef __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__
|
| 1719 |
+
#define __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__
|
| 1720 |
+
|
| 1721 |
+
/* interface IMFTopologyServiceLookupClient */
|
| 1722 |
+
/* [uuid][object][local] */
|
| 1723 |
+
|
| 1724 |
+
|
| 1725 |
+
EXTERN_C const IID IID_IMFTopologyServiceLookupClient;
|
| 1726 |
+
|
| 1727 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1728 |
+
|
| 1729 |
+
MIDL_INTERFACE("fa99388a-4383-415a-a930-dd472a8cf6f7")
|
| 1730 |
+
IMFTopologyServiceLookupClient : public IUnknown
|
| 1731 |
+
{
|
| 1732 |
+
public:
|
| 1733 |
+
virtual HRESULT STDMETHODCALLTYPE InitServicePointers(
|
| 1734 |
+
/* [annotation][in] */
|
| 1735 |
+
_In_ IMFTopologyServiceLookup *pLookup) = 0;
|
| 1736 |
+
|
| 1737 |
+
virtual HRESULT STDMETHODCALLTYPE ReleaseServicePointers( void) = 0;
|
| 1738 |
+
|
| 1739 |
+
};
|
| 1740 |
+
|
| 1741 |
+
|
| 1742 |
+
#else /* C style interface */
|
| 1743 |
+
|
| 1744 |
+
typedef struct IMFTopologyServiceLookupClientVtbl
|
| 1745 |
+
{
|
| 1746 |
+
BEGIN_INTERFACE
|
| 1747 |
+
|
| 1748 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1749 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1750 |
+
IMFTopologyServiceLookupClient * This,
|
| 1751 |
+
/* [in] */ REFIID riid,
|
| 1752 |
+
/* [annotation][iid_is][out] */
|
| 1753 |
+
_COM_Outptr_ void **ppvObject);
|
| 1754 |
+
|
| 1755 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1756 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1757 |
+
IMFTopologyServiceLookupClient * This);
|
| 1758 |
+
|
| 1759 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1760 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1761 |
+
IMFTopologyServiceLookupClient * This);
|
| 1762 |
+
|
| 1763 |
+
DECLSPEC_XFGVIRT(IMFTopologyServiceLookupClient, InitServicePointers)
|
| 1764 |
+
HRESULT ( STDMETHODCALLTYPE *InitServicePointers )(
|
| 1765 |
+
IMFTopologyServiceLookupClient * This,
|
| 1766 |
+
/* [annotation][in] */
|
| 1767 |
+
_In_ IMFTopologyServiceLookup *pLookup);
|
| 1768 |
+
|
| 1769 |
+
DECLSPEC_XFGVIRT(IMFTopologyServiceLookupClient, ReleaseServicePointers)
|
| 1770 |
+
HRESULT ( STDMETHODCALLTYPE *ReleaseServicePointers )(
|
| 1771 |
+
IMFTopologyServiceLookupClient * This);
|
| 1772 |
+
|
| 1773 |
+
END_INTERFACE
|
| 1774 |
+
} IMFTopologyServiceLookupClientVtbl;
|
| 1775 |
+
|
| 1776 |
+
interface IMFTopologyServiceLookupClient
|
| 1777 |
+
{
|
| 1778 |
+
CONST_VTBL struct IMFTopologyServiceLookupClientVtbl *lpVtbl;
|
| 1779 |
+
};
|
| 1780 |
+
|
| 1781 |
+
|
| 1782 |
+
|
| 1783 |
+
#ifdef COBJMACROS
|
| 1784 |
+
|
| 1785 |
+
|
| 1786 |
+
#define IMFTopologyServiceLookupClient_QueryInterface(This,riid,ppvObject) \
|
| 1787 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1788 |
+
|
| 1789 |
+
#define IMFTopologyServiceLookupClient_AddRef(This) \
|
| 1790 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1791 |
+
|
| 1792 |
+
#define IMFTopologyServiceLookupClient_Release(This) \
|
| 1793 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1794 |
+
|
| 1795 |
+
|
| 1796 |
+
#define IMFTopologyServiceLookupClient_InitServicePointers(This,pLookup) \
|
| 1797 |
+
( (This)->lpVtbl -> InitServicePointers(This,pLookup) )
|
| 1798 |
+
|
| 1799 |
+
#define IMFTopologyServiceLookupClient_ReleaseServicePointers(This) \
|
| 1800 |
+
( (This)->lpVtbl -> ReleaseServicePointers(This) )
|
| 1801 |
+
|
| 1802 |
+
#endif /* COBJMACROS */
|
| 1803 |
+
|
| 1804 |
+
|
| 1805 |
+
#endif /* C style interface */
|
| 1806 |
+
|
| 1807 |
+
|
| 1808 |
+
|
| 1809 |
+
|
| 1810 |
+
#endif /* __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__ */
|
| 1811 |
+
|
| 1812 |
+
|
| 1813 |
+
#ifndef __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__
|
| 1814 |
+
#define __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__
|
| 1815 |
+
|
| 1816 |
+
/* interface IEVRTrustedVideoPlugin */
|
| 1817 |
+
/* [local][helpstring][uuid][object] */
|
| 1818 |
+
|
| 1819 |
+
|
| 1820 |
+
EXTERN_C const IID IID_IEVRTrustedVideoPlugin;
|
| 1821 |
+
|
| 1822 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1823 |
+
|
| 1824 |
+
MIDL_INTERFACE("83A4CE40-7710-494b-A893-A472049AF630")
|
| 1825 |
+
IEVRTrustedVideoPlugin : public IUnknown
|
| 1826 |
+
{
|
| 1827 |
+
public:
|
| 1828 |
+
virtual HRESULT STDMETHODCALLTYPE IsInTrustedVideoMode(
|
| 1829 |
+
/* [out] */ BOOL *pYes) = 0;
|
| 1830 |
+
|
| 1831 |
+
virtual HRESULT STDMETHODCALLTYPE CanConstrict(
|
| 1832 |
+
/* [out] */ BOOL *pYes) = 0;
|
| 1833 |
+
|
| 1834 |
+
virtual HRESULT STDMETHODCALLTYPE SetConstriction(
|
| 1835 |
+
DWORD dwKPix) = 0;
|
| 1836 |
+
|
| 1837 |
+
virtual HRESULT STDMETHODCALLTYPE DisableImageExport(
|
| 1838 |
+
BOOL bDisable) = 0;
|
| 1839 |
+
|
| 1840 |
+
};
|
| 1841 |
+
|
| 1842 |
+
|
| 1843 |
+
#else /* C style interface */
|
| 1844 |
+
|
| 1845 |
+
typedef struct IEVRTrustedVideoPluginVtbl
|
| 1846 |
+
{
|
| 1847 |
+
BEGIN_INTERFACE
|
| 1848 |
+
|
| 1849 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1850 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1851 |
+
IEVRTrustedVideoPlugin * This,
|
| 1852 |
+
/* [in] */ REFIID riid,
|
| 1853 |
+
/* [annotation][iid_is][out] */
|
| 1854 |
+
_COM_Outptr_ void **ppvObject);
|
| 1855 |
+
|
| 1856 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1857 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1858 |
+
IEVRTrustedVideoPlugin * This);
|
| 1859 |
+
|
| 1860 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1861 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1862 |
+
IEVRTrustedVideoPlugin * This);
|
| 1863 |
+
|
| 1864 |
+
DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, IsInTrustedVideoMode)
|
| 1865 |
+
HRESULT ( STDMETHODCALLTYPE *IsInTrustedVideoMode )(
|
| 1866 |
+
IEVRTrustedVideoPlugin * This,
|
| 1867 |
+
/* [out] */ BOOL *pYes);
|
| 1868 |
+
|
| 1869 |
+
DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, CanConstrict)
|
| 1870 |
+
HRESULT ( STDMETHODCALLTYPE *CanConstrict )(
|
| 1871 |
+
IEVRTrustedVideoPlugin * This,
|
| 1872 |
+
/* [out] */ BOOL *pYes);
|
| 1873 |
+
|
| 1874 |
+
DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, SetConstriction)
|
| 1875 |
+
HRESULT ( STDMETHODCALLTYPE *SetConstriction )(
|
| 1876 |
+
IEVRTrustedVideoPlugin * This,
|
| 1877 |
+
DWORD dwKPix);
|
| 1878 |
+
|
| 1879 |
+
DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, DisableImageExport)
|
| 1880 |
+
HRESULT ( STDMETHODCALLTYPE *DisableImageExport )(
|
| 1881 |
+
IEVRTrustedVideoPlugin * This,
|
| 1882 |
+
BOOL bDisable);
|
| 1883 |
+
|
| 1884 |
+
END_INTERFACE
|
| 1885 |
+
} IEVRTrustedVideoPluginVtbl;
|
| 1886 |
+
|
| 1887 |
+
interface IEVRTrustedVideoPlugin
|
| 1888 |
+
{
|
| 1889 |
+
CONST_VTBL struct IEVRTrustedVideoPluginVtbl *lpVtbl;
|
| 1890 |
+
};
|
| 1891 |
+
|
| 1892 |
+
|
| 1893 |
+
|
| 1894 |
+
#ifdef COBJMACROS
|
| 1895 |
+
|
| 1896 |
+
|
| 1897 |
+
#define IEVRTrustedVideoPlugin_QueryInterface(This,riid,ppvObject) \
|
| 1898 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1899 |
+
|
| 1900 |
+
#define IEVRTrustedVideoPlugin_AddRef(This) \
|
| 1901 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1902 |
+
|
| 1903 |
+
#define IEVRTrustedVideoPlugin_Release(This) \
|
| 1904 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1905 |
+
|
| 1906 |
+
|
| 1907 |
+
#define IEVRTrustedVideoPlugin_IsInTrustedVideoMode(This,pYes) \
|
| 1908 |
+
( (This)->lpVtbl -> IsInTrustedVideoMode(This,pYes) )
|
| 1909 |
+
|
| 1910 |
+
#define IEVRTrustedVideoPlugin_CanConstrict(This,pYes) \
|
| 1911 |
+
( (This)->lpVtbl -> CanConstrict(This,pYes) )
|
| 1912 |
+
|
| 1913 |
+
#define IEVRTrustedVideoPlugin_SetConstriction(This,dwKPix) \
|
| 1914 |
+
( (This)->lpVtbl -> SetConstriction(This,dwKPix) )
|
| 1915 |
+
|
| 1916 |
+
#define IEVRTrustedVideoPlugin_DisableImageExport(This,bDisable) \
|
| 1917 |
+
( (This)->lpVtbl -> DisableImageExport(This,bDisable) )
|
| 1918 |
+
|
| 1919 |
+
#endif /* COBJMACROS */
|
| 1920 |
+
|
| 1921 |
+
|
| 1922 |
+
#endif /* C style interface */
|
| 1923 |
+
|
| 1924 |
+
|
| 1925 |
+
|
| 1926 |
+
|
| 1927 |
+
#endif /* __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__ */
|
| 1928 |
+
|
| 1929 |
+
|
| 1930 |
+
/* interface __MIDL_itf_evr_0000_0013 */
|
| 1931 |
+
/* [local] */
|
| 1932 |
+
|
| 1933 |
+
#ifndef MFEVRDLL
|
| 1934 |
+
#define MFEVRDLL 0
|
| 1935 |
+
#endif
|
| 1936 |
+
#if MFEVRDLL
|
| 1937 |
+
#define EVRPUBLIC(func) STDAPI _##func
|
| 1938 |
+
#else
|
| 1939 |
+
#define EVRPUBLIC(func) STDAPI func
|
| 1940 |
+
#endif
|
| 1941 |
+
EVRPUBLIC(MFCreateVideoPresenter)(
|
| 1942 |
+
_In_opt_ IUnknown * pOwner,
|
| 1943 |
+
REFIID riidDevice,
|
| 1944 |
+
REFIID riid,
|
| 1945 |
+
_Outptr_result_maybenull_ void ** ppVideoPresenter
|
| 1946 |
+
);
|
| 1947 |
+
EVRPUBLIC(MFCreateVideoMixer)(
|
| 1948 |
+
_In_opt_ IUnknown * pOwner,
|
| 1949 |
+
REFIID riidDevice,
|
| 1950 |
+
REFIID riid,
|
| 1951 |
+
_Outptr_ void ** ppv
|
| 1952 |
+
);
|
| 1953 |
+
EVRPUBLIC(MFCreateVideoMixerAndPresenter)(
|
| 1954 |
+
_In_opt_ IUnknown * pMixerOwner,
|
| 1955 |
+
_In_opt_ IUnknown * pPresenterOwner,
|
| 1956 |
+
REFIID riidMixer,
|
| 1957 |
+
_Outptr_ void ** ppvVideoMixer,
|
| 1958 |
+
REFIID riidPresenter,
|
| 1959 |
+
_Outptr_ void ** ppvVideoPresenter
|
| 1960 |
+
);
|
| 1961 |
+
EVRPUBLIC(MFCreateVideoRenderer)(
|
| 1962 |
+
REFIID riidRenderer,
|
| 1963 |
+
_Outptr_result_maybenull_ void ** ppVideoRenderer
|
| 1964 |
+
);
|
| 1965 |
+
EVRPUBLIC(MFCreateVideoSampleFromSurface)(
|
| 1966 |
+
_In_ IUnknown* pUnkSurface,
|
| 1967 |
+
_Out_ IMFSample** ppSample
|
| 1968 |
+
);
|
| 1969 |
+
EVRPUBLIC(MFCreateVideoSampleAllocator)(
|
| 1970 |
+
_In_ REFIID riid,
|
| 1971 |
+
_Outptr_ void** ppSampleAllocator
|
| 1972 |
+
);
|
| 1973 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1974 |
+
#pragma endregion
|
| 1975 |
+
|
| 1976 |
+
|
| 1977 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0013_v0_0_c_ifspec;
|
| 1978 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0013_v0_0_s_ifspec;
|
| 1979 |
+
|
| 1980 |
+
/* Additional Prototypes for ALL interfaces */
|
| 1981 |
+
|
| 1982 |
+
unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * );
|
| 1983 |
+
unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * );
|
| 1984 |
+
unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * );
|
| 1985 |
+
void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * );
|
| 1986 |
+
|
| 1987 |
+
unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * );
|
| 1988 |
+
unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * );
|
| 1989 |
+
unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * );
|
| 1990 |
+
void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * );
|
| 1991 |
+
|
| 1992 |
+
/* end of Additional Prototypes */
|
| 1993 |
+
|
| 1994 |
+
#ifdef __cplusplus
|
| 1995 |
+
}
|
| 1996 |
+
#endif
|
| 1997 |
+
|
| 1998 |
+
#endif
|
| 1999 |
+
|
| 2000 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evr.idl
ADDED
|
@@ -0,0 +1,1756 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Public Interfaces for the Enhanced Video Renderer.
|
| 4 |
+
//
|
| 5 |
+
// Copyright (c) 1999 - 2004, Microsoft Corporation. All rights reserved.
|
| 6 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 7 |
+
|
| 8 |
+
cpp_quote("#include <winapifamily.h>")
|
| 9 |
+
|
| 10 |
+
#pragma region Desktop Family
|
| 11 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 12 |
+
|
| 13 |
+
import "unknwn.idl";
|
| 14 |
+
import "propidl.idl";
|
| 15 |
+
import "mfidl.idl";
|
| 16 |
+
import "mftransform.idl";
|
| 17 |
+
|
| 18 |
+
// DMO IDL import for IMediaBuffer and IMediaObject
|
| 19 |
+
import "mediaobj.idl";
|
| 20 |
+
|
| 21 |
+
// Get AM_MEDIA_TYPES
|
| 22 |
+
import "strmif.idl";
|
| 23 |
+
|
| 24 |
+
// __midl definitions : only defined for MIDL processing
|
| 25 |
+
|
| 26 |
+
cpp_quote( "#if defined(__midl)" )
|
| 27 |
+
|
| 28 |
+
// MAKEFOURCC definition
|
| 29 |
+
|
| 30 |
+
#ifndef MAKEFOURCC
|
| 31 |
+
|
| 32 |
+
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \
|
| 33 |
+
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
| 34 |
+
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
|
| 35 |
+
|
| 36 |
+
#endif // MAKEFOURCC
|
| 37 |
+
|
| 38 |
+
// D3DFORMAT definition
|
| 39 |
+
|
| 40 |
+
#ifndef D3DFORMAT
|
| 41 |
+
|
| 42 |
+
typedef enum _D3DFORMAT
|
| 43 |
+
{
|
| 44 |
+
|
| 45 |
+
D3DFMT_UNKNOWN = 0,
|
| 46 |
+
|
| 47 |
+
D3DFMT_R8G8B8 = 20,
|
| 48 |
+
D3DFMT_A8R8G8B8 = 21,
|
| 49 |
+
D3DFMT_X8R8G8B8 = 22,
|
| 50 |
+
D3DFMT_R5G6B5 = 23,
|
| 51 |
+
D3DFMT_X1R5G5B5 = 24,
|
| 52 |
+
D3DFMT_A1R5G5B5 = 25,
|
| 53 |
+
D3DFMT_A4R4G4B4 = 26,
|
| 54 |
+
D3DFMT_R3G3B2 = 27,
|
| 55 |
+
D3DFMT_A8 = 28,
|
| 56 |
+
D3DFMT_A8R3G3B2 = 29,
|
| 57 |
+
D3DFMT_X4R4G4B4 = 30,
|
| 58 |
+
D3DFMT_A2B10G10R10 = 31,
|
| 59 |
+
D3DFMT_G16R16 = 34,
|
| 60 |
+
|
| 61 |
+
D3DFMT_A8P8 = 40,
|
| 62 |
+
D3DFMT_P8 = 41,
|
| 63 |
+
|
| 64 |
+
D3DFMT_L8 = 50,
|
| 65 |
+
D3DFMT_A8L8 = 51,
|
| 66 |
+
D3DFMT_A4L4 = 52,
|
| 67 |
+
|
| 68 |
+
D3DFMT_V8U8 = 60,
|
| 69 |
+
D3DFMT_L6V5U5 = 61,
|
| 70 |
+
D3DFMT_X8L8V8U8 = 62,
|
| 71 |
+
D3DFMT_Q8W8V8U8 = 63,
|
| 72 |
+
D3DFMT_V16U16 = 64,
|
| 73 |
+
D3DFMT_W11V11U10 = 65,
|
| 74 |
+
D3DFMT_A2W10V10U10 = 67,
|
| 75 |
+
/*
|
| 76 |
+
D3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'),
|
| 77 |
+
D3DFMT_YUY2 = MAKEFOURCC('Y', 'U', 'Y', '2'),
|
| 78 |
+
D3DFMT_DXT1 = MAKEFOURCC('D', 'X', 'T', '1'),
|
| 79 |
+
D3DFMT_DXT2 = MAKEFOURCC('D', 'X', 'T', '2'),
|
| 80 |
+
D3DFMT_DXT3 = MAKEFOURCC('D', 'X', 'T', '3'),
|
| 81 |
+
D3DFMT_DXT4 = MAKEFOURCC('D', 'X', 'T', '4'),
|
| 82 |
+
D3DFMT_DXT5 = MAKEFOURCC('D', 'X', 'T', '5'),
|
| 83 |
+
*/
|
| 84 |
+
D3DFMT_D16_LOCKABLE = 70,
|
| 85 |
+
D3DFMT_D32 = 71,
|
| 86 |
+
D3DFMT_D15S1 = 73,
|
| 87 |
+
D3DFMT_D24S8 = 75,
|
| 88 |
+
D3DFMT_D16 = 80,
|
| 89 |
+
D3DFMT_D24X8 = 77,
|
| 90 |
+
D3DFMT_D24X4S4 = 79,
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
D3DFMT_VERTEXDATA =100,
|
| 94 |
+
D3DFMT_INDEX16 =101,
|
| 95 |
+
D3DFMT_INDEX32 =102,
|
| 96 |
+
|
| 97 |
+
D3DFMT_FORCE_DWORD =0x7fffffff
|
| 98 |
+
|
| 99 |
+
} D3DFORMAT;
|
| 100 |
+
|
| 101 |
+
#endif // D3DFORMAT
|
| 102 |
+
|
| 103 |
+
cpp_quote( "#endif // __midl" ) // __midl
|
| 104 |
+
|
| 105 |
+
//=============================================================================
|
| 106 |
+
// Description:
|
| 107 |
+
//
|
| 108 |
+
// Service GUID used by IMFGetService::GetService to retrieve interfaces from
|
| 109 |
+
// the renderer or the presenter.
|
| 110 |
+
//
|
| 111 |
+
cpp_quote( "DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, " )
|
| 112 |
+
cpp_quote( " 0x1092a86c, " )
|
| 113 |
+
cpp_quote( " 0xab1a, " )
|
| 114 |
+
cpp_quote( " 0x459a, " )
|
| 115 |
+
cpp_quote( " 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff " )
|
| 116 |
+
cpp_quote( ");" )
|
| 117 |
+
|
| 118 |
+
//=============================================================================
|
| 119 |
+
// Description:
|
| 120 |
+
//
|
| 121 |
+
// Service GUID used by IMFGetService::GetService to retrieve interfaces from
|
| 122 |
+
// the mixer.
|
| 123 |
+
//
|
| 124 |
+
cpp_quote( "DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, " )
|
| 125 |
+
cpp_quote( " 0x73cd2fc, " )
|
| 126 |
+
cpp_quote( " 0x6cf4, " )
|
| 127 |
+
cpp_quote( " 0x40b7, " )
|
| 128 |
+
cpp_quote( " 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8 " )
|
| 129 |
+
cpp_quote( ");" )
|
| 130 |
+
|
| 131 |
+
//=============================================================================
|
| 132 |
+
// Description:
|
| 133 |
+
//
|
| 134 |
+
// Service GUID used by IMFGetService::GetService to retrieve HW acceleration
|
| 135 |
+
// interfaces in the pipeline.
|
| 136 |
+
//
|
| 137 |
+
cpp_quote( "DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, " )
|
| 138 |
+
cpp_quote( " 0xefef5175, " )
|
| 139 |
+
cpp_quote( " 0x5c7d, " )
|
| 140 |
+
cpp_quote( " 0x4ce2, " )
|
| 141 |
+
cpp_quote( " 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54 " )
|
| 142 |
+
cpp_quote( "); " )
|
| 143 |
+
|
| 144 |
+
//=============================================================================
|
| 145 |
+
// Description:
|
| 146 |
+
//
|
| 147 |
+
// Service GUID used by IMFGetService::GetService to retrieve an object
|
| 148 |
+
// from a buffer.
|
| 149 |
+
//
|
| 150 |
+
cpp_quote( "DEFINE_GUID(MR_BUFFER_SERVICE, " )
|
| 151 |
+
cpp_quote( " 0xa562248c, " )
|
| 152 |
+
cpp_quote( " 0x9ac6, " )
|
| 153 |
+
cpp_quote( " 0x4ffc, " )
|
| 154 |
+
cpp_quote( " 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d " )
|
| 155 |
+
cpp_quote( ");" )
|
| 156 |
+
|
| 157 |
+
//=============================================================================
|
| 158 |
+
// Description:
|
| 159 |
+
//
|
| 160 |
+
// IMFAttributes Blob GUID set on the mixer by the presenter to indicate
|
| 161 |
+
// the zoom rectangle to be used in processing the video. The zoom rectangle
|
| 162 |
+
// is expressed as an MFVideoNormalizedRect.
|
| 163 |
+
//
|
| 164 |
+
cpp_quote( "DEFINE_GUID(VIDEO_ZOOM_RECT, " )
|
| 165 |
+
cpp_quote( " 0x7aaa1638, " )
|
| 166 |
+
cpp_quote( " 0x1b7f, " )
|
| 167 |
+
cpp_quote( " 0x4c93, " )
|
| 168 |
+
cpp_quote( " 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0" )
|
| 169 |
+
cpp_quote( ");" )
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
//=============================================================================
|
| 174 |
+
// Description:
|
| 175 |
+
//
|
| 176 |
+
// public interfaces supported by the EVR
|
| 177 |
+
//
|
| 178 |
+
interface IMFTrackedSample;
|
| 179 |
+
interface IMFVideoDisplayControl;
|
| 180 |
+
interface IMFVideoPresenter;
|
| 181 |
+
interface IMFVideoPositionMapper;
|
| 182 |
+
interface IMFDesiredSample;
|
| 183 |
+
interface IMFVideoMixerControl;
|
| 184 |
+
interface IMFVideoRenderer;
|
| 185 |
+
interface IMFVideoDeviceID;
|
| 186 |
+
interface IEVRFilterConfig;
|
| 187 |
+
|
| 188 |
+
//=============================================================================
|
| 189 |
+
// Description:
|
| 190 |
+
//
|
| 191 |
+
// This interface is used to map coordinates on the output video frame to
|
| 192 |
+
// coordinates on the input video frame. If a component in the MF pipeline
|
| 193 |
+
// (MF transform, demux, sink) transforms the video in such a way that
|
| 194 |
+
// co-ordinates in the input image map to different co-ordinate values in the
|
| 195 |
+
// output image, then that component must implement this interface to provide
|
| 196 |
+
// the reverse transformation.
|
| 197 |
+
//
|
| 198 |
+
// It is accessible to the application via the IMFGetService interface from
|
| 199 |
+
// the renderer object using service GUID MR_VIDEO_RENDER_SERVICE.
|
| 200 |
+
//
|
| 201 |
+
[
|
| 202 |
+
object,
|
| 203 |
+
uuid(1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE),
|
| 204 |
+
helpstring("IMFVideoPositionMapper Interface"),
|
| 205 |
+
local
|
| 206 |
+
]
|
| 207 |
+
interface IMFVideoPositionMapper : IUnknown
|
| 208 |
+
{
|
| 209 |
+
//-------------------------------------------------------------------------
|
| 210 |
+
// Description:
|
| 211 |
+
//
|
| 212 |
+
// Provides the reverse transformation of coordinates for components that
|
| 213 |
+
// transform the video in such a way that co-ordinates in the input image
|
| 214 |
+
// map to different co-ordinate values in the output image.
|
| 215 |
+
//
|
| 216 |
+
// Parameters:
|
| 217 |
+
//
|
| 218 |
+
// xOut - x coordinate of the output image normalized to the range [0,1]
|
| 219 |
+
// yOut - y coordinate of the output image normalized to the range [0,1]
|
| 220 |
+
// dwOutputStreamIndex - Output stream index relative to which co-ordinate
|
| 221 |
+
// mapping is required.
|
| 222 |
+
// dwInputStreamIndex - Input stream index relative to which co-ordinate
|
| 223 |
+
// mapping is required.
|
| 224 |
+
// pxIn - Mapped x coordinate of the input image normalized to the range [0,1]
|
| 225 |
+
// pyIn - Mapped y coordinate of the input image normalized to the range [0,1]
|
| 226 |
+
//
|
| 227 |
+
// Return values:
|
| 228 |
+
//
|
| 229 |
+
// S_OK - Successful completion.
|
| 230 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 231 |
+
// respond to methods calls. It must be released.
|
| 232 |
+
// E_POINTER - An invalid pointer was passed.
|
| 233 |
+
//
|
| 234 |
+
// Remarks:
|
| 235 |
+
//
|
| 236 |
+
// None.
|
| 237 |
+
//
|
| 238 |
+
HRESULT MapOutputCoordinateToInputStream(
|
| 239 |
+
[in] float xOut,
|
| 240 |
+
[in] float yOut,
|
| 241 |
+
[in] DWORD dwOutputStreamIndex,
|
| 242 |
+
[in] DWORD dwInputStreamIndex,
|
| 243 |
+
[out, annotation("_Out_")] float* pxIn,
|
| 244 |
+
[out, annotation("_Out_")] float* pyIn
|
| 245 |
+
);
|
| 246 |
+
};
|
| 247 |
+
|
| 248 |
+
//=============================================================================
|
| 249 |
+
// Description:
|
| 250 |
+
//
|
| 251 |
+
// The IMFVideoDeviceID interface supports a single method, which returns the device
|
| 252 |
+
// IID supported by that object. This IID must be compatible with other components.
|
| 253 |
+
// This interface is mandatory for the Mixer and Presenter objects, since these
|
| 254 |
+
// components must use the same type of video device.
|
| 255 |
+
//
|
| 256 |
+
[
|
| 257 |
+
object,
|
| 258 |
+
uuid(A38D9567-5A9C-4f3c-B293-8EB415B279BA),
|
| 259 |
+
helpstring("IMFVideoDeviceID Interface"),
|
| 260 |
+
local
|
| 261 |
+
]
|
| 262 |
+
interface IMFVideoDeviceID : IUnknown
|
| 263 |
+
{
|
| 264 |
+
//-------------------------------------------------------------------------
|
| 265 |
+
// Description:
|
| 266 |
+
//
|
| 267 |
+
// The GetDeviceID method retrieves the video device ID of the video device
|
| 268 |
+
// supported by this video component. Although not restricted to these, it
|
| 269 |
+
// will generally be one of the following:
|
| 270 |
+
// - IID_IDirect3DDevice9
|
| 271 |
+
//
|
| 272 |
+
// Parameters:
|
| 273 |
+
//
|
| 274 |
+
// pDeviceID - Pointer that receives the IID of the device supported by this component.
|
| 275 |
+
//
|
| 276 |
+
// Return values:
|
| 277 |
+
//
|
| 278 |
+
// S_OK - Successful completion.
|
| 279 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 280 |
+
// respond to methods calls. It must be released.
|
| 281 |
+
// E_POINTER - An invalid pointer was passed.
|
| 282 |
+
//
|
| 283 |
+
// Remarks:
|
| 284 |
+
//
|
| 285 |
+
// None.
|
| 286 |
+
//
|
| 287 |
+
HRESULT GetDeviceID(
|
| 288 |
+
[out, annotation("_Out_")] IID* pDeviceID
|
| 289 |
+
);
|
| 290 |
+
};
|
| 291 |
+
|
| 292 |
+
//=============================================================================
|
| 293 |
+
// Description:
|
| 294 |
+
//
|
| 295 |
+
// Enumeration used to specify the aspect ratio mode desired to be used when
|
| 296 |
+
// rendering video. Set by calling IMFVideoDisplayControl::SetRenderingPrefs.
|
| 297 |
+
//
|
| 298 |
+
typedef enum MFVideoAspectRatioMode {
|
| 299 |
+
// No aspect ratio correction - fill window
|
| 300 |
+
MFVideoARMode_None = 0x00000000,
|
| 301 |
+
// Indicates that the picture aspect ratio should be preserved. That is, if the
|
| 302 |
+
// video is 640 by 480 pixels (4:3), and the video destination region is a rectangle
|
| 303 |
+
// 800 by 700, then the video should be letterboxed and displayed as 800 by 600
|
| 304 |
+
// (retain 4:3).
|
| 305 |
+
MFVideoARMode_PreservePicture = 0x00000001,
|
| 306 |
+
// Indicates that the pixel aspect ratio should be preserved. This setting comes into
|
| 307 |
+
// play when the video display is physically of a certain aspect ratio, but is set
|
| 308 |
+
// to a resolution that is not the same aspect ratio, thus making the pixels non-square.
|
| 309 |
+
// I.e. a monitor whose native resolution is 1600 by 1200 (4:3) is set to 1280 by 1024
|
| 310 |
+
// (5:4). This flag is only valid when passed with MFVideoARMode_PreservePicture.
|
| 311 |
+
MFVideoARMode_PreservePixel = 0x00000002,
|
| 312 |
+
// Indicates that a horizontal non-linear stretch should be applied when the aspect
|
| 313 |
+
// ratio of the destination rectangle does not match the aspect ratio of the source
|
| 314 |
+
// rectangle. The non-linear stretch algorithm acts by preserving the aspect ratio in
|
| 315 |
+
// the middle of the picture (relative to the left and right) and stretching (or
|
| 316 |
+
// shrinking) progressively more towards the left and right. This mode is useful when
|
| 317 |
+
// viewing 4:3 content full screen on a 16:9 aspect ratio display and would be used
|
| 318 |
+
// instead of pillar-boxing. It can also be used to view 16:9 content on a 4:3 display
|
| 319 |
+
// to replace the letterboxing. Note that this mode may cause performance degradation.
|
| 320 |
+
MFVideoARMode_NonLinearStretch = 0x00000004,
|
| 321 |
+
MFVideoARMode_Mask = 0x00000007
|
| 322 |
+
} MFVideoAspectRatioMode;
|
| 323 |
+
|
| 324 |
+
//=============================================================================
|
| 325 |
+
// Description:
|
| 326 |
+
//
|
| 327 |
+
// The rendering preferences used by the video presenter object.
|
| 328 |
+
//
|
| 329 |
+
typedef enum MFVideoRenderPrefs {
|
| 330 |
+
// Do not paint color keys (default off)
|
| 331 |
+
MFVideoRenderPrefs_DoNotRenderBorder = 0x00000001,
|
| 332 |
+
// Do not clip to monitor that has largest amount of video (default off)
|
| 333 |
+
MFVideoRenderPrefs_DoNotClipToDevice = 0x00000002,
|
| 334 |
+
MFVideoRenderPrefs_AllowOutputThrottling = 0x00000004,
|
| 335 |
+
MFVideoRenderPrefs_ForceOutputThrottling = 0x00000008,
|
| 336 |
+
MFVideoRenderPrefs_ForceBatching = 0x00000010,
|
| 337 |
+
MFVideoRenderPrefs_AllowBatching = 0x00000020,
|
| 338 |
+
MFVideoRenderPrefs_ForceScaling = 0x00000040,
|
| 339 |
+
MFVideoRenderPrefs_AllowScaling = 0x00000080,
|
| 340 |
+
MFVideoRenderPrefs_DoNotRepaintOnStop = 0x00000100,
|
| 341 |
+
MFVideoRenderPrefs_Mask = 0x000001ff,
|
| 342 |
+
} MFVideoRenderPrefs;
|
| 343 |
+
|
| 344 |
+
//=============================================================================
|
| 345 |
+
// Description:
|
| 346 |
+
//
|
| 347 |
+
// A Normalized relative rectangle where the coordinates exist in the rate [0,1].
|
| 348 |
+
//
|
| 349 |
+
// Remarks:
|
| 350 |
+
//
|
| 351 |
+
// When the rectangle refers to a video stream, the following restrictions apply
|
| 352 |
+
// o left <= right.
|
| 353 |
+
// o top <= bottom.
|
| 354 |
+
//
|
| 355 |
+
cpp_quote("#ifndef _MFVideoNormalizedRect_")
|
| 356 |
+
cpp_quote("#define _MFVideoNormalizedRect_")
|
| 357 |
+
typedef struct MFVideoNormalizedRect
|
| 358 |
+
{
|
| 359 |
+
float left;
|
| 360 |
+
float top;
|
| 361 |
+
float right;
|
| 362 |
+
float bottom;
|
| 363 |
+
} MFVideoNormalizedRect;
|
| 364 |
+
cpp_quote("#endif")
|
| 365 |
+
|
| 366 |
+
//=============================================================================
|
| 367 |
+
// Description:
|
| 368 |
+
//
|
| 369 |
+
// The IMFVideoDisplayControl interface supports window-based rendering.
|
| 370 |
+
//
|
| 371 |
+
// If a video renderer supports this functionality it is accessible to the
|
| 372 |
+
// application via the IMFGetService interface from the renderer object
|
| 373 |
+
// using service GUID MR_VIDEO_RENDER_SERVICE.
|
| 374 |
+
//
|
| 375 |
+
// Custom Video Presenter objects may optionally support this interface.
|
| 376 |
+
//
|
| 377 |
+
[
|
| 378 |
+
object,
|
| 379 |
+
uuid(a490b1e4-ab84-4d31-a1b2-181e03b1077a),
|
| 380 |
+
helpstring("IMFVideoDisplayControl Interface")
|
| 381 |
+
]
|
| 382 |
+
interface IMFVideoDisplayControl : IUnknown
|
| 383 |
+
{
|
| 384 |
+
//-------------------------------------------------------------------------
|
| 385 |
+
// Description:
|
| 386 |
+
//
|
| 387 |
+
// Retrieves the un-stretched video size and aspect ratio of the video.
|
| 388 |
+
//
|
| 389 |
+
// Parameters:
|
| 390 |
+
//
|
| 391 |
+
// pszVideo - Receives the size of the native video rectangle. Optional, unless pszARVideo is NULL.
|
| 392 |
+
// pszARVideo - Receives the aspect ratio size of the native video rectangle. Optional, unless pszVideo is NULL.
|
| 393 |
+
//
|
| 394 |
+
// Return values:
|
| 395 |
+
//
|
| 396 |
+
// S_OK - Successful completion.
|
| 397 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 398 |
+
// respond to methods calls. It must be released.
|
| 399 |
+
// E_POINTER - Both pointers passed were NULL.
|
| 400 |
+
//
|
| 401 |
+
// Remarks:
|
| 402 |
+
//
|
| 403 |
+
// If the video renderer has not had one of its streams opened and
|
| 404 |
+
// media type set, this method will succeed but all parameters will be
|
| 405 |
+
// set to zero.
|
| 406 |
+
//
|
| 407 |
+
HRESULT GetNativeVideoSize(
|
| 408 |
+
[in, out, unique] SIZE* pszVideo,
|
| 409 |
+
[in, out, unique] SIZE* pszARVideo
|
| 410 |
+
);
|
| 411 |
+
|
| 412 |
+
//-------------------------------------------------------------------------
|
| 413 |
+
// Description:
|
| 414 |
+
//
|
| 415 |
+
// Retrieves the minimum and maximum video sizes that the VIDEO RENDERER can
|
| 416 |
+
// display without incurring significant performance or image quality degradation.
|
| 417 |
+
//
|
| 418 |
+
// Parameters:
|
| 419 |
+
//
|
| 420 |
+
// pszMin - Receives the minimum ideal size. Optional, unless pszMax is NULL.
|
| 421 |
+
// pszMax - Receives the maximum ideal size. Optional, unless pszMax is NULL.
|
| 422 |
+
//
|
| 423 |
+
// Return values:
|
| 424 |
+
//
|
| 425 |
+
// S_OK - Successful completion.
|
| 426 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 427 |
+
// respond to methods calls. It must be released.
|
| 428 |
+
// E_POINTER - Both pointers passed were NULL.
|
| 429 |
+
//
|
| 430 |
+
// Remarks:
|
| 431 |
+
//
|
| 432 |
+
// None.
|
| 433 |
+
//
|
| 434 |
+
HRESULT GetIdealVideoSize(
|
| 435 |
+
[in, out, unique] SIZE* pszMin,
|
| 436 |
+
[in, out, unique] SIZE* pszMax
|
| 437 |
+
);
|
| 438 |
+
|
| 439 |
+
//-------------------------------------------------------------------------
|
| 440 |
+
// Description:
|
| 441 |
+
//
|
| 442 |
+
// Sets the source rectangle and destination region for the video.
|
| 443 |
+
//
|
| 444 |
+
// Parameters:
|
| 445 |
+
//
|
| 446 |
+
// pnrcSource - Specifies the source zoom rectangle as a normalized rectangle.
|
| 447 |
+
// This means that the coordinates exist as float values in the range {0, 1}.
|
| 448 |
+
// To zoom to 100 on the middle content, a rectangle of {.25, .25, .75, .75}
|
| 449 |
+
// would be specified. A src rectangle with zero height or width is invalid;
|
| 450 |
+
// it would be akin to a divide by zero, since nothing cannot be stretched.
|
| 451 |
+
// Optional, unless prcDest is NULL.
|
| 452 |
+
// prgnDest - Specifies the destination rectangle.
|
| 453 |
+
// Optional, unless pnrcSource is NULL.
|
| 454 |
+
//
|
| 455 |
+
// Return values:
|
| 456 |
+
//
|
| 457 |
+
// S_OK - Successful completion.
|
| 458 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 459 |
+
// respond to methods calls. It must be released.
|
| 460 |
+
// E_POINTER - An invalid pointer was passed.
|
| 461 |
+
//
|
| 462 |
+
// Remarks:
|
| 463 |
+
//
|
| 464 |
+
// None.
|
| 465 |
+
//
|
| 466 |
+
HRESULT SetVideoPosition(
|
| 467 |
+
[in, unique] const MFVideoNormalizedRect* pnrcSource,
|
| 468 |
+
[in, unique] const LPRECT prcDest
|
| 469 |
+
);
|
| 470 |
+
|
| 471 |
+
//-------------------------------------------------------------------------
|
| 472 |
+
// Description:
|
| 473 |
+
//
|
| 474 |
+
// Retrieves the current source rectangle and destination region used to display
|
| 475 |
+
// the video.
|
| 476 |
+
//
|
| 477 |
+
// Parameters:
|
| 478 |
+
//
|
| 479 |
+
// pnrcSource - Receives the current source rectangle. This is expressed as a
|
| 480 |
+
// normalized rectangle using float values in the range {0, 1}. If a rectangle
|
| 481 |
+
// of {.25, .25, .75, .75} is retrieved, then the middle content has been
|
| 482 |
+
// zoomed to 200.
|
| 483 |
+
// prcDest - Receives the current destination rectangle.
|
| 484 |
+
//
|
| 485 |
+
// Return values:
|
| 486 |
+
//
|
| 487 |
+
// S_OK - Successful completion.
|
| 488 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 489 |
+
// respond to methods calls. It must be released.
|
| 490 |
+
// E_POINTER - An invalid pointer was passed.
|
| 491 |
+
//
|
| 492 |
+
// Remarks:
|
| 493 |
+
//
|
| 494 |
+
// Need to add size_is(*pdwSizeofRgnData) attribute to prgnDest,
|
| 495 |
+
// but since that represents array size, need to change prgnDest
|
| 496 |
+
// to be BYTE* first.
|
| 497 |
+
//
|
| 498 |
+
HRESULT GetVideoPosition(
|
| 499 |
+
[out] MFVideoNormalizedRect* pnrcSource,
|
| 500 |
+
[out] LPRECT prcDest
|
| 501 |
+
);
|
| 502 |
+
|
| 503 |
+
//-------------------------------------------------------------------------
|
| 504 |
+
// Description:
|
| 505 |
+
//
|
| 506 |
+
// Specifies how the video renderer will preserve the aspect ratio of the source video.
|
| 507 |
+
//
|
| 508 |
+
// Parameters:
|
| 509 |
+
//
|
| 510 |
+
// AspectRatioMode - The aspect ratio mode in which the video should presented.
|
| 511 |
+
// This is an OR combination of MFVideoAspectRatioMode.
|
| 512 |
+
//
|
| 513 |
+
// Return values:
|
| 514 |
+
//
|
| 515 |
+
// S_OK - Successful completion.
|
| 516 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 517 |
+
// respond to methods calls. It must be released.
|
| 518 |
+
//
|
| 519 |
+
// Remarks:
|
| 520 |
+
//
|
| 521 |
+
// None.
|
| 522 |
+
//
|
| 523 |
+
HRESULT SetAspectRatioMode(
|
| 524 |
+
[in] DWORD dwAspectRatioMode
|
| 525 |
+
);
|
| 526 |
+
|
| 527 |
+
//-------------------------------------------------------------------------
|
| 528 |
+
// Description:
|
| 529 |
+
//
|
| 530 |
+
// Retrieves the current mode in which video is being displayed in a window.
|
| 531 |
+
//
|
| 532 |
+
// Parameters:
|
| 533 |
+
//
|
| 534 |
+
// lpAspectRatioMode - Receives the aspect ratio mode. This is an OR
|
| 535 |
+
// combination of MFVideoAspectRatioMode.
|
| 536 |
+
//
|
| 537 |
+
// Return values:
|
| 538 |
+
//
|
| 539 |
+
// S_OK - Successful completion.
|
| 540 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 541 |
+
// respond to methods calls. It must be released.
|
| 542 |
+
// E_POINTER - An invalid pointer was passed.
|
| 543 |
+
//
|
| 544 |
+
// Remarks:
|
| 545 |
+
//
|
| 546 |
+
// None.
|
| 547 |
+
//
|
| 548 |
+
HRESULT GetAspectRatioMode(
|
| 549 |
+
[out] DWORD* pdwAspectRatioMode
|
| 550 |
+
);
|
| 551 |
+
|
| 552 |
+
//-------------------------------------------------------------------------
|
| 553 |
+
// Description:
|
| 554 |
+
//
|
| 555 |
+
// Specifies the container window that video should be clipped to.
|
| 556 |
+
//
|
| 557 |
+
// Parameters:
|
| 558 |
+
//
|
| 559 |
+
// hwndVideo - The window to which the video should be clipped.
|
| 560 |
+
//
|
| 561 |
+
// Return values:
|
| 562 |
+
//
|
| 563 |
+
// S_OK - Successful completion.
|
| 564 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 565 |
+
// respond to methods calls. It must be released.
|
| 566 |
+
//
|
| 567 |
+
// Remarks:
|
| 568 |
+
//
|
| 569 |
+
// None.
|
| 570 |
+
//
|
| 571 |
+
HRESULT SetVideoWindow(
|
| 572 |
+
[in] HWND hwndVideo
|
| 573 |
+
);
|
| 574 |
+
|
| 575 |
+
//-------------------------------------------------------------------------
|
| 576 |
+
// Description:
|
| 577 |
+
//
|
| 578 |
+
// Retrieves the container window that video is being clipped to.
|
| 579 |
+
//
|
| 580 |
+
// Parameters:
|
| 581 |
+
//
|
| 582 |
+
// phwndVideo - Receives the HWND value to which the video is being clipped.
|
| 583 |
+
//
|
| 584 |
+
// Return values:
|
| 585 |
+
//
|
| 586 |
+
// S_OK - Successful completion.
|
| 587 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 588 |
+
// respond to methods calls. It must be released.
|
| 589 |
+
// E_POINTER - An invalid pointer was passed.
|
| 590 |
+
//
|
| 591 |
+
// Remarks:
|
| 592 |
+
//
|
| 593 |
+
// None.
|
| 594 |
+
//
|
| 595 |
+
HRESULT GetVideoWindow(
|
| 596 |
+
[out] HWND* phwndVideo
|
| 597 |
+
);
|
| 598 |
+
|
| 599 |
+
//-------------------------------------------------------------------------
|
| 600 |
+
// Description:
|
| 601 |
+
//
|
| 602 |
+
// Repaints the current video frame. Should be called when the application
|
| 603 |
+
// receives a WM_PAINT message.
|
| 604 |
+
//
|
| 605 |
+
// Return values:
|
| 606 |
+
//
|
| 607 |
+
// S_OK - Successful completion.
|
| 608 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 609 |
+
// respond to methods calls. It must be released.
|
| 610 |
+
// E_POINTER - An invalid pointer was passed.
|
| 611 |
+
//
|
| 612 |
+
// Remarks:
|
| 613 |
+
//
|
| 614 |
+
// None.
|
| 615 |
+
//
|
| 616 |
+
HRESULT RepaintVideo();
|
| 617 |
+
|
| 618 |
+
//-------------------------------------------------------------------------
|
| 619 |
+
// Description:
|
| 620 |
+
//
|
| 621 |
+
// Retrieves a copy of the current image being displayed by the video renderer.
|
| 622 |
+
//
|
| 623 |
+
// Parameters:
|
| 624 |
+
//
|
| 625 |
+
// pBih - Receives the description of the bitmap. biSize must be set
|
| 626 |
+
// to sizeof(BITMAPINFOHEADER).
|
| 627 |
+
// pDib - Receives the current image. Allocated by the callee.
|
| 628 |
+
// pcbDib - Receives the size of the the image in pDib.
|
| 629 |
+
// pTimeStamp - Receives the timestamp of the current frame.
|
| 630 |
+
//
|
| 631 |
+
//
|
| 632 |
+
// Return values:
|
| 633 |
+
//
|
| 634 |
+
// S_OK - Successful completion.
|
| 635 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 636 |
+
// respond to methods calls. It must be released.
|
| 637 |
+
// E_POINTER - An invalid pointer was passed.
|
| 638 |
+
//
|
| 639 |
+
// Remarks:
|
| 640 |
+
//
|
| 641 |
+
// The image is returned in the form of packed Windows DIB. The caller is
|
| 642 |
+
// responsible for free the returned memory by calling CoTaskMemFree.
|
| 643 |
+
//
|
| 644 |
+
// GetCurrentImage can be called at any time, but excessive use of this
|
| 645 |
+
// function will degrade video playback performed.
|
| 646 |
+
//
|
| 647 |
+
HRESULT GetCurrentImage(
|
| 648 |
+
[in, out] BITMAPINFOHEADER* pBih,
|
| 649 |
+
[out, size_is(, *pcbDib)] BYTE** pDib,
|
| 650 |
+
[out] DWORD* pcbDib,
|
| 651 |
+
[in, out, unique] LONGLONG* pTimeStamp
|
| 652 |
+
);
|
| 653 |
+
|
| 654 |
+
//-------------------------------------------------------------------------
|
| 655 |
+
// Description:
|
| 656 |
+
//
|
| 657 |
+
// Sets the border color to be used by the video renderer.
|
| 658 |
+
//
|
| 659 |
+
// Parameters:
|
| 660 |
+
//
|
| 661 |
+
// Clr - The color to be set.
|
| 662 |
+
//
|
| 663 |
+
// Return values:
|
| 664 |
+
//
|
| 665 |
+
// S_OK - Successful completion.
|
| 666 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 667 |
+
// respond to methods calls. It must be released.
|
| 668 |
+
//
|
| 669 |
+
// Remarks:
|
| 670 |
+
//
|
| 671 |
+
// The border color is color used to fill any area of the
|
| 672 |
+
// the destination rectangle that does not contain video.
|
| 673 |
+
// It is typically used in two instances:
|
| 674 |
+
// 1) When the video straddles two monitors and
|
| 675 |
+
// 2) When the EVR is trying to maintain the aspect
|
| 676 |
+
// ratio of the movies by letter boxing the video
|
| 677 |
+
// to fit within the specified destination rectangle.
|
| 678 |
+
// See also SetAspectRatioMode.
|
| 679 |
+
//
|
| 680 |
+
HRESULT SetBorderColor(
|
| 681 |
+
[in] COLORREF Clr
|
| 682 |
+
);
|
| 683 |
+
|
| 684 |
+
//-------------------------------------------------------------------------
|
| 685 |
+
// Description:
|
| 686 |
+
//
|
| 687 |
+
// Retrieves the current border color used by the video renderer.
|
| 688 |
+
//
|
| 689 |
+
// Parameters:
|
| 690 |
+
//
|
| 691 |
+
// pClr - Receives the current border color.
|
| 692 |
+
//
|
| 693 |
+
// Return values:
|
| 694 |
+
//
|
| 695 |
+
// S_OK - Successful completion.
|
| 696 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 697 |
+
// respond to methods calls. It must be released.
|
| 698 |
+
// E_POINTER - An invalid pointer was passed.
|
| 699 |
+
//
|
| 700 |
+
// Remarks:
|
| 701 |
+
//
|
| 702 |
+
// None.
|
| 703 |
+
//
|
| 704 |
+
HRESULT GetBorderColor(
|
| 705 |
+
[out] COLORREF* pClr
|
| 706 |
+
);
|
| 707 |
+
|
| 708 |
+
//-------------------------------------------------------------------------
|
| 709 |
+
// Description:
|
| 710 |
+
//
|
| 711 |
+
// Sets various application preferences related to video rendering.
|
| 712 |
+
//
|
| 713 |
+
// Parameters:
|
| 714 |
+
//
|
| 715 |
+
// dwRenderFlags - A bitwise OR of MFVideoRenderPrefs values specifying the
|
| 716 |
+
// rendering preferences.
|
| 717 |
+
//
|
| 718 |
+
// Return values:
|
| 719 |
+
//
|
| 720 |
+
// S_OK - Successful completion.
|
| 721 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 722 |
+
// respond to methods calls. It must be released.
|
| 723 |
+
// E_INVALIDARG - An invalid set of preferences were supplied.
|
| 724 |
+
//
|
| 725 |
+
// Remarks:
|
| 726 |
+
//
|
| 727 |
+
// None.
|
| 728 |
+
//
|
| 729 |
+
HRESULT SetRenderingPrefs(
|
| 730 |
+
[in] DWORD dwRenderFlags // a combination of MFVideoRenderPrefs
|
| 731 |
+
);
|
| 732 |
+
|
| 733 |
+
//-------------------------------------------------------------------------
|
| 734 |
+
// Description:
|
| 735 |
+
//
|
| 736 |
+
// Retrieves the current set of rendering preferences being used by
|
| 737 |
+
// the video renderer.
|
| 738 |
+
//
|
| 739 |
+
// Parameters:
|
| 740 |
+
//
|
| 741 |
+
// pdwRenderFlags - receives a DWORD representing a bitwise OR of
|
| 742 |
+
// MFVideoRenderprefs values indicating the current rendering preferences.
|
| 743 |
+
//
|
| 744 |
+
// Return values:
|
| 745 |
+
//
|
| 746 |
+
// S_OK - Successful completion.
|
| 747 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 748 |
+
// respond to methods calls. It must be released.
|
| 749 |
+
// E_POINTER - An invalid pointer was passed.
|
| 750 |
+
//
|
| 751 |
+
// Remarks:
|
| 752 |
+
//
|
| 753 |
+
// None.
|
| 754 |
+
//
|
| 755 |
+
HRESULT GetRenderingPrefs(
|
| 756 |
+
[out] DWORD* pdwRenderFlags
|
| 757 |
+
);
|
| 758 |
+
|
| 759 |
+
//-------------------------------------------------------------------------
|
| 760 |
+
// Description:
|
| 761 |
+
//
|
| 762 |
+
// Sets or unsets the renderer from its fullscreen rendering mode. For the
|
| 763 |
+
// D3D9 renderer, this is D3D exclusive mode.
|
| 764 |
+
//
|
| 765 |
+
// Parameters:
|
| 766 |
+
//
|
| 767 |
+
// fFullscreen - TRUE if the renderer should display to the entire screen.
|
| 768 |
+
// FALSE otherwise.
|
| 769 |
+
//
|
| 770 |
+
// Return values:
|
| 771 |
+
//
|
| 772 |
+
// S_OK - Successful completion.
|
| 773 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 774 |
+
// respond to methods calls. It must be released.
|
| 775 |
+
//
|
| 776 |
+
// Remarks:
|
| 777 |
+
//
|
| 778 |
+
// None.
|
| 779 |
+
//
|
| 780 |
+
HRESULT SetFullscreen(
|
| 781 |
+
[in] BOOL fFullscreen
|
| 782 |
+
);
|
| 783 |
+
|
| 784 |
+
//-------------------------------------------------------------------------
|
| 785 |
+
// Description:
|
| 786 |
+
//
|
| 787 |
+
// Indicates whether or not the renderer is currently in full screen mode.
|
| 788 |
+
//
|
| 789 |
+
// Parameters:
|
| 790 |
+
//
|
| 791 |
+
// pfFullscreen - TRUE if the renderer is displaying to the entire screen.
|
| 792 |
+
// FALSE otherwise.
|
| 793 |
+
//
|
| 794 |
+
// Return values:
|
| 795 |
+
//
|
| 796 |
+
// S_OK - Successful completion.
|
| 797 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 798 |
+
// respond to methods calls. It must be released.
|
| 799 |
+
// E_POINTER - An invalid pointer was passed.
|
| 800 |
+
//
|
| 801 |
+
// Remarks:
|
| 802 |
+
//
|
| 803 |
+
// None.
|
| 804 |
+
//
|
| 805 |
+
HRESULT GetFullscreen(
|
| 806 |
+
[out] BOOL* pfFullscreen
|
| 807 |
+
);
|
| 808 |
+
}
|
| 809 |
+
|
| 810 |
+
//=============================================================================
|
| 811 |
+
// Description:
|
| 812 |
+
//
|
| 813 |
+
// The different message types that can be passed to the video presenter via
|
| 814 |
+
// IMFVideoPresenter::ProcessMessage.
|
| 815 |
+
//
|
| 816 |
+
typedef enum MFVP_MESSAGE_TYPE {
|
| 817 |
+
// Called by the video renderer when a flush request is received on the
|
| 818 |
+
// reference video stream. In response, the presenter should clear its
|
| 819 |
+
// queue of samples waiting to be presented.
|
| 820 |
+
// ulParam is unused and should be set to zero.
|
| 821 |
+
MFVP_MESSAGE_FLUSH = 0x00000000,
|
| 822 |
+
// Indicates to the presenter that the current output media type on the
|
| 823 |
+
// mixer has changed. In response, the presenter may now wish to renegotiate
|
| 824 |
+
// the media type of the video mixer.
|
| 825 |
+
// Return Values:
|
| 826 |
+
// S_OK - successful completion
|
| 827 |
+
// MF_E_INVALIDMEDIATYPE - The presenter and mixer could not agree on
|
| 828 |
+
// a media type.
|
| 829 |
+
// ulParam is unused and should be set to zero.
|
| 830 |
+
MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x00000001,
|
| 831 |
+
// Indicates that a sample has been delivered to the video mixer object,
|
| 832 |
+
// and there may now be a sample now available on the mixer's output. In
|
| 833 |
+
// response, the presenter may want to draw frames out of the mixer's
|
| 834 |
+
// output.
|
| 835 |
+
// ulParam is unused and should be set to zero.
|
| 836 |
+
MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x00000002,
|
| 837 |
+
// Called when streaming is about to begin. In
|
| 838 |
+
// response, the presenter should allocate any resources necessary to begin
|
| 839 |
+
// streaming.
|
| 840 |
+
// ulParam is unused and should be set to zero.
|
| 841 |
+
MFVP_MESSAGE_BEGINSTREAMING = 0x00000003,
|
| 842 |
+
// Called when streaming has completed. In
|
| 843 |
+
// response, the presenter should release any resources that were
|
| 844 |
+
// previously allocated for streaming.
|
| 845 |
+
// ulParam is unused and should be set to zero.
|
| 846 |
+
MFVP_MESSAGE_ENDSTREAMING = 0x00000004,
|
| 847 |
+
// Indicates that the end of this segment has been reached.
|
| 848 |
+
// When the last frame has been rendered, EC_COMPLETE should be sent
|
| 849 |
+
// on the IMediaEvent interface retrieved from the renderer
|
| 850 |
+
// during IMFTopologyServiceLookupClient::InitServicePointers method.
|
| 851 |
+
// ulParam is unused and should be set to zero.
|
| 852 |
+
MFVP_MESSAGE_ENDOFSTREAM = 0x00000005,
|
| 853 |
+
// The presenter should step the number frames indicated by the lower DWORD
|
| 854 |
+
// of ulParam.
|
| 855 |
+
// The first n-1 frames should be skipped and only the nth frame should be
|
| 856 |
+
// shown. Note that this message should only be received while in the pause
|
| 857 |
+
// state or while in the started state when the rate is 0.
|
| 858 |
+
// Otherwise, MF_E_INVALIDREQUEST should be returned.
|
| 859 |
+
// When the nth frame has been shown EC_STEP_COMPLETE
|
| 860 |
+
// should be sent on the IMediaEvent interface.
|
| 861 |
+
// Additionally, if stepping is being done while the rate is set to 0
|
| 862 |
+
// (a.k.a. "scrubbing"), the frame should be displayed immediately when
|
| 863 |
+
// it is received, and EC_SCRUB_TIME should be sent right away after
|
| 864 |
+
// sending EC_STEP_COMPLETE.
|
| 865 |
+
MFVP_MESSAGE_STEP = 0x00000006,
|
| 866 |
+
// The currently queued step operation should be cancelled. The presenter
|
| 867 |
+
// should remain in the pause state following the cancellation.
|
| 868 |
+
// ulParam is unused and should be set to zero.
|
| 869 |
+
MFVP_MESSAGE_CANCELSTEP = 0x00000007,
|
| 870 |
+
|
| 871 |
+
} MFVP_MESSAGE_TYPE;
|
| 872 |
+
|
| 873 |
+
//=============================================================================
|
| 874 |
+
// Description:
|
| 875 |
+
//
|
| 876 |
+
// The IMFVideoPresenter interface allows for direct control over the video
|
| 877 |
+
// frames, in that it receives video samples as soon as they are available
|
| 878 |
+
// from upstream. The video presenter must therefore take care of the timing
|
| 879 |
+
// of the samples and synchronize with the render clock.
|
| 880 |
+
//
|
| 881 |
+
// Custom Video Presenter objects must support this interface.
|
| 882 |
+
//
|
| 883 |
+
[
|
| 884 |
+
object,
|
| 885 |
+
uuid(29AFF080-182A-4a5d-AF3B-448F3A6346CB),
|
| 886 |
+
helpstring("IMFVideoPresenter Interface"),
|
| 887 |
+
local
|
| 888 |
+
]
|
| 889 |
+
interface IMFVideoPresenter : IMFClockStateSink
|
| 890 |
+
{
|
| 891 |
+
//-------------------------------------------------------------------------
|
| 892 |
+
// Description:
|
| 893 |
+
//
|
| 894 |
+
// Indicates to the presenter that a certain action needs to be performed,
|
| 895 |
+
// or signals that something has occured.
|
| 896 |
+
//
|
| 897 |
+
// Parameters:
|
| 898 |
+
//
|
| 899 |
+
// eMessage - Indicates the action to be performed or the condition that
|
| 900 |
+
// has occured.
|
| 901 |
+
// ulParam - Allows for additional information to be passed to the caller.
|
| 902 |
+
// See the definition of eMessage for more information.
|
| 903 |
+
//
|
| 904 |
+
// Return values:
|
| 905 |
+
//
|
| 906 |
+
// S_OK - Successful completion.
|
| 907 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 908 |
+
// respond to methods calls. It must be released.
|
| 909 |
+
//
|
| 910 |
+
// Remarks:
|
| 911 |
+
//
|
| 912 |
+
// None.
|
| 913 |
+
//
|
| 914 |
+
HRESULT ProcessMessage(
|
| 915 |
+
MFVP_MESSAGE_TYPE eMessage,
|
| 916 |
+
ULONG_PTR ulParam
|
| 917 |
+
);
|
| 918 |
+
|
| 919 |
+
//-------------------------------------------------------------------------
|
| 920 |
+
// Description:
|
| 921 |
+
//
|
| 922 |
+
// Retrieves the current media type that has been last negotiated by a
|
| 923 |
+
// successful call to InvalidateMediaType.
|
| 924 |
+
//
|
| 925 |
+
// Parameters:
|
| 926 |
+
//
|
| 927 |
+
// ppMediaType - Receives the currently set media type.
|
| 928 |
+
//
|
| 929 |
+
// Return values:
|
| 930 |
+
//
|
| 931 |
+
// S_OK - Successful completion.
|
| 932 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 933 |
+
// respond to methods calls. It must be released.
|
| 934 |
+
// E_POINTER - An invalid pointer was passed.
|
| 935 |
+
//
|
| 936 |
+
// Remarks:
|
| 937 |
+
//
|
| 938 |
+
// None.
|
| 939 |
+
//
|
| 940 |
+
HRESULT GetCurrentMediaType(
|
| 941 |
+
[out, annotation("_Outptr_")] IMFVideoMediaType** ppMediaType
|
| 942 |
+
);
|
| 943 |
+
}
|
| 944 |
+
|
| 945 |
+
//=============================================================================
|
| 946 |
+
// Description:
|
| 947 |
+
//
|
| 948 |
+
// This interface may be optionally supported by buffers passed back to a
|
| 949 |
+
// D3D mixer. It allows the presenter more control over which frames the video
|
| 950 |
+
// mixer gives back the presenter.
|
| 951 |
+
//
|
| 952 |
+
// It is retrieved by calling QueryInterface on the IMFSample object.
|
| 953 |
+
//
|
| 954 |
+
[
|
| 955 |
+
object,
|
| 956 |
+
uuid(56C294D0-753E-4260-8D61-A3D8820B1D54),
|
| 957 |
+
helpstring("IMFDesiredSample Interface"),
|
| 958 |
+
local
|
| 959 |
+
]
|
| 960 |
+
interface IMFDesiredSample : IUnknown
|
| 961 |
+
{
|
| 962 |
+
|
| 963 |
+
//-------------------------------------------------------------------------
|
| 964 |
+
// Description:
|
| 965 |
+
//
|
| 966 |
+
// Called by the Mixer to get the time and duration of sample that the
|
| 967 |
+
// presenter wishes.
|
| 968 |
+
//
|
| 969 |
+
// Parameters:
|
| 970 |
+
//
|
| 971 |
+
// phnsSampleTime - Receives the desired sample time which should be mixed.
|
| 972 |
+
// For example, if the sample time is the same as the last sample time,
|
| 973 |
+
// the same sample will be retrieved. To retrieve the next sample, use
|
| 974 |
+
// the actual sample time plus the actual sample duration.
|
| 975 |
+
// phnsSampleDuration - Receives the sample duration that should be mixed.
|
| 976 |
+
//
|
| 977 |
+
// Return values:
|
| 978 |
+
//
|
| 979 |
+
// S_OK - Successful completion.
|
| 980 |
+
// E_POINTER - An invalid pointer was passed.
|
| 981 |
+
// MF_E_NOT_AVAILABLE - There is no timestamp set.
|
| 982 |
+
//
|
| 983 |
+
// Remarks:
|
| 984 |
+
//
|
| 985 |
+
// None.
|
| 986 |
+
//
|
| 987 |
+
HRESULT GetDesiredSampleTimeAndDuration(
|
| 988 |
+
[out, annotation("_Out_")] LONGLONG *phnsSampleTime,
|
| 989 |
+
[out, annotation("_Out_")] LONGLONG *phnsSampleDuration
|
| 990 |
+
);
|
| 991 |
+
|
| 992 |
+
//-------------------------------------------------------------------------
|
| 993 |
+
// Description:
|
| 994 |
+
//
|
| 995 |
+
// Called by the Presenter to set the time and duration of sample which it
|
| 996 |
+
// desires from the mixer.
|
| 997 |
+
//
|
| 998 |
+
// Parameters:
|
| 999 |
+
//
|
| 1000 |
+
// hnsSampleTime - The time of the sample that is wished from the mixer.
|
| 1001 |
+
// hnsSampleDuration - The duration of the sample that is wished from the
|
| 1002 |
+
// mixer.
|
| 1003 |
+
//
|
| 1004 |
+
// Return values:
|
| 1005 |
+
//
|
| 1006 |
+
// S_OK - Successful completion.
|
| 1007 |
+
//
|
| 1008 |
+
// Remarks:
|
| 1009 |
+
//
|
| 1010 |
+
// This value should be set prior to passing the buffer to the mixer for
|
| 1011 |
+
// a Mix operation. The mixer sets the actual start and duration times on
|
| 1012 |
+
// the IMFSample before handing it back.
|
| 1013 |
+
//
|
| 1014 |
+
void SetDesiredSampleTimeAndDuration(
|
| 1015 |
+
[in] LONGLONG hnsSampleTime,
|
| 1016 |
+
[in] LONGLONG hnsSampleDuration
|
| 1017 |
+
);
|
| 1018 |
+
|
| 1019 |
+
//-------------------------------------------------------------------------
|
| 1020 |
+
// Description:
|
| 1021 |
+
//
|
| 1022 |
+
// Clears the timestamps previously set by a call to
|
| 1023 |
+
// SetDesiredSampleTimeAndDuration, thus resulting in any subsequent calls
|
| 1024 |
+
// to GetDesiredSampleTimeAndDuration failing with error code
|
| 1025 |
+
// MF_E_NOT_AVAILABLE.
|
| 1026 |
+
//
|
| 1027 |
+
void Clear();
|
| 1028 |
+
};
|
| 1029 |
+
|
| 1030 |
+
//=============================================================================
|
| 1031 |
+
// Description:
|
| 1032 |
+
//
|
| 1033 |
+
// The IMFVideoMixerControl interface supports mixing of separate video streams.
|
| 1034 |
+
// If a video renderer supports this functionality it is accessed via the
|
| 1035 |
+
// IMFGetService interface from the renderer object, using service GUID
|
| 1036 |
+
// MR_VIDEO_MIXER_SERVICE.
|
| 1037 |
+
//
|
| 1038 |
+
[
|
| 1039 |
+
object,
|
| 1040 |
+
uuid(A5C6C53F-C202-4aa5-9695-175BA8C508A5),
|
| 1041 |
+
helpstring("IMFVideoMixerControl Interface")
|
| 1042 |
+
]
|
| 1043 |
+
interface IMFVideoMixerControl : IUnknown
|
| 1044 |
+
{
|
| 1045 |
+
//-------------------------------------------------------------------------
|
| 1046 |
+
// Description:
|
| 1047 |
+
//
|
| 1048 |
+
// Sets this video stream's position in the Z-order.
|
| 1049 |
+
//
|
| 1050 |
+
// Parameters:
|
| 1051 |
+
//
|
| 1052 |
+
// dwStreamID - The stream ID of the stream to set.
|
| 1053 |
+
// dwZ - The z-order value. 0 indicates the bottom of the z-order and must
|
| 1054 |
+
// be the reference stream.
|
| 1055 |
+
//
|
| 1056 |
+
// Return values:
|
| 1057 |
+
//
|
| 1058 |
+
// S_OK - Successful completion.
|
| 1059 |
+
// MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied.
|
| 1060 |
+
// MF_E_INVALIDREQUEST - 0 was supplied as the Z-order for a stream other
|
| 1061 |
+
// then the reference stream, or a value other than 0 was supplied
|
| 1062 |
+
// for the reference stream.
|
| 1063 |
+
// E_INVALIDARG - a z-order value greater than <the number of streams minus
|
| 1064 |
+
// one> was supplied.
|
| 1065 |
+
//
|
| 1066 |
+
// Remarks:
|
| 1067 |
+
//
|
| 1068 |
+
// Z-order of the reference stream is always 0 and cannot be set otherwise.
|
| 1069 |
+
//
|
| 1070 |
+
HRESULT SetStreamZOrder(
|
| 1071 |
+
[in] DWORD dwStreamID,
|
| 1072 |
+
[in] DWORD dwZ
|
| 1073 |
+
);
|
| 1074 |
+
|
| 1075 |
+
//-------------------------------------------------------------------------
|
| 1076 |
+
// Description:
|
| 1077 |
+
//
|
| 1078 |
+
// Retrieves this video stream's position in the Z-order.
|
| 1079 |
+
//
|
| 1080 |
+
// Parameters:
|
| 1081 |
+
//
|
| 1082 |
+
// dwStreamID - The stream ID of the stream to get.
|
| 1083 |
+
// pdwZ - Receives the z-order value. 0 indicates the bottom of the z-order
|
| 1084 |
+
// will always be the value of the reference stream.
|
| 1085 |
+
//
|
| 1086 |
+
// Return values:
|
| 1087 |
+
//
|
| 1088 |
+
// S_OK - Successful completion.
|
| 1089 |
+
// MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied.
|
| 1090 |
+
// E_POINTER - An invalid pointer was passed.
|
| 1091 |
+
//
|
| 1092 |
+
// Remarks:
|
| 1093 |
+
//
|
| 1094 |
+
// None.
|
| 1095 |
+
//
|
| 1096 |
+
HRESULT GetStreamZOrder(
|
| 1097 |
+
[in] DWORD dwStreamID,
|
| 1098 |
+
[out] DWORD* pdwZ
|
| 1099 |
+
);
|
| 1100 |
+
|
| 1101 |
+
//-------------------------------------------------------------------------
|
| 1102 |
+
// Description:
|
| 1103 |
+
//
|
| 1104 |
+
// Sets the position of this stream within the composition rectangle.
|
| 1105 |
+
//
|
| 1106 |
+
// Parameters:
|
| 1107 |
+
//
|
| 1108 |
+
// dwStreamID - The stream ID of the stream to set.
|
| 1109 |
+
// pnrcOutput - The bounding rectangle, in normalized coordinates.
|
| 1110 |
+
//
|
| 1111 |
+
// Return values:
|
| 1112 |
+
//
|
| 1113 |
+
// S_OK - Successful completion.
|
| 1114 |
+
// MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied.
|
| 1115 |
+
// E_INVALIDARG - the Normalized rectangle supplied had coordinates that
|
| 1116 |
+
// were invalid. See MFVideoNormalizedRect for more information.
|
| 1117 |
+
// E_POINTER - An invalid pointer was passed.
|
| 1118 |
+
//
|
| 1119 |
+
// Remarks:
|
| 1120 |
+
//
|
| 1121 |
+
// None.
|
| 1122 |
+
//
|
| 1123 |
+
HRESULT SetStreamOutputRect(
|
| 1124 |
+
[in] DWORD dwStreamID,
|
| 1125 |
+
[in] const MFVideoNormalizedRect *pnrcOutput
|
| 1126 |
+
);
|
| 1127 |
+
|
| 1128 |
+
//-------------------------------------------------------------------------
|
| 1129 |
+
// Description:
|
| 1130 |
+
//
|
| 1131 |
+
// Retrieves the position of this stream's video rectangle within the composition rectangle.
|
| 1132 |
+
//
|
| 1133 |
+
// Parameters:
|
| 1134 |
+
//
|
| 1135 |
+
// dwStreamID - The stream ID of the stream to get.
|
| 1136 |
+
// pnrcOutput - Receives the bounding rectangle, in normalized coordinates.
|
| 1137 |
+
//
|
| 1138 |
+
// Return values:
|
| 1139 |
+
//
|
| 1140 |
+
// S_OK - Successful completion.
|
| 1141 |
+
// MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied.
|
| 1142 |
+
// E_POINTER - An invalid pointer was passed.
|
| 1143 |
+
//
|
| 1144 |
+
// Remarks:
|
| 1145 |
+
//
|
| 1146 |
+
// None.
|
| 1147 |
+
//
|
| 1148 |
+
HRESULT GetStreamOutputRect(
|
| 1149 |
+
[in] DWORD dwStreamID,
|
| 1150 |
+
[out] MFVideoNormalizedRect *pnrcOutput
|
| 1151 |
+
);
|
| 1152 |
+
};
|
| 1153 |
+
|
| 1154 |
+
//=============================================================================
|
| 1155 |
+
// Description:
|
| 1156 |
+
//
|
| 1157 |
+
// The mixing preferences used by the video mixer object.
|
| 1158 |
+
//
|
| 1159 |
+
typedef enum _MFVideoMixPrefs {
|
| 1160 |
+
MFVideoMixPrefs_ForceHalfInterlace = 0x00000001,
|
| 1161 |
+
MFVideoMixPrefs_AllowDropToHalfInterlace = 0x00000002,
|
| 1162 |
+
MFVideoMixPrefs_AllowDropToBob = 0x00000004,
|
| 1163 |
+
MFVideoMixPrefs_ForceBob = 0x00000008,
|
| 1164 |
+
MFVideoMixPrefs_EnableRotation = 0x00000010,
|
| 1165 |
+
MFVideoMixPrefs_Mask = 0x0000001f,
|
| 1166 |
+
} MFVideoMixPrefs;
|
| 1167 |
+
|
| 1168 |
+
//=============================================================================
|
| 1169 |
+
// Description:
|
| 1170 |
+
//
|
| 1171 |
+
// The IMFVideoMixerControl2 interface supports mixing of separate video streams.
|
| 1172 |
+
// If a video renderer supports this functionality it is accessed via the
|
| 1173 |
+
// IMFGetService interface from the renderer object, using service GUID
|
| 1174 |
+
// MR_VIDEO_MIXER_SERVICE.
|
| 1175 |
+
//
|
| 1176 |
+
[
|
| 1177 |
+
object,
|
| 1178 |
+
uuid(8459616d-966e-4930-b658-54fa7e5a16d3),
|
| 1179 |
+
helpstring("IMFVideoMixerControl2 Interface")
|
| 1180 |
+
]
|
| 1181 |
+
interface IMFVideoMixerControl2 : IMFVideoMixerControl
|
| 1182 |
+
{
|
| 1183 |
+
//-------------------------------------------------------------------------
|
| 1184 |
+
// Description:
|
| 1185 |
+
//
|
| 1186 |
+
// Sets various application preferences related to video mixing.
|
| 1187 |
+
//
|
| 1188 |
+
// Parameters:
|
| 1189 |
+
//
|
| 1190 |
+
// dwMixFlags - A bitwise OR of MFVideoMixPrefs values specifying the
|
| 1191 |
+
// rendering preferences.
|
| 1192 |
+
//
|
| 1193 |
+
// Return values:
|
| 1194 |
+
//
|
| 1195 |
+
// S_OK - Successful completion.
|
| 1196 |
+
// MF_E_SHUTDOWN - The video mixer has been Shutdown and will no longer
|
| 1197 |
+
// respond to methods calls. It must be released.
|
| 1198 |
+
// E_INVALIDARG - An invalid set of preferences were supplied.
|
| 1199 |
+
//
|
| 1200 |
+
// Remarks:
|
| 1201 |
+
//
|
| 1202 |
+
// None.
|
| 1203 |
+
//
|
| 1204 |
+
HRESULT SetMixingPrefs(
|
| 1205 |
+
[in] DWORD dwMixFlags // a combination of MFVideoMixPrefs
|
| 1206 |
+
);
|
| 1207 |
+
|
| 1208 |
+
//-------------------------------------------------------------------------
|
| 1209 |
+
// Description:
|
| 1210 |
+
//
|
| 1211 |
+
// Retrieves the current set of mixing preferences being used by
|
| 1212 |
+
// the video mixer.
|
| 1213 |
+
//
|
| 1214 |
+
// Parameters:
|
| 1215 |
+
//
|
| 1216 |
+
// pdwMixFlags - receives a DWORD representing a bitwise OR of
|
| 1217 |
+
// MFVideoMixingprefs values indicating the current mixing preferences.
|
| 1218 |
+
//
|
| 1219 |
+
// Return values:
|
| 1220 |
+
//
|
| 1221 |
+
// S_OK - Successful completion.
|
| 1222 |
+
// MF_E_SHUTDOWN - The video mixer has been Shutdown and will no longer
|
| 1223 |
+
// respond to methods calls. It must be released.
|
| 1224 |
+
// E_POINTER - An invalid pointer was passed.
|
| 1225 |
+
//
|
| 1226 |
+
// Remarks:
|
| 1227 |
+
//
|
| 1228 |
+
// None.
|
| 1229 |
+
//
|
| 1230 |
+
HRESULT GetMixingPrefs(
|
| 1231 |
+
[out] DWORD* pdwMixFlags
|
| 1232 |
+
);
|
| 1233 |
+
};
|
| 1234 |
+
|
| 1235 |
+
//=============================================================================
|
| 1236 |
+
// Description:
|
| 1237 |
+
//
|
| 1238 |
+
// The IMFVideoRenderer interface supports a single method, which allows an
|
| 1239 |
+
// application to replace the video presenter and mixer objects with ones of
|
| 1240 |
+
// its own creation.
|
| 1241 |
+
//
|
| 1242 |
+
[
|
| 1243 |
+
object,
|
| 1244 |
+
uuid(DFDFD197-A9CA-43d8-B341-6AF3503792CD),
|
| 1245 |
+
helpstring("IMFVideoRenderer Interface"),
|
| 1246 |
+
local
|
| 1247 |
+
]
|
| 1248 |
+
interface IMFVideoRenderer : IUnknown
|
| 1249 |
+
{
|
| 1250 |
+
//-------------------------------------------------------------------------
|
| 1251 |
+
// Description:
|
| 1252 |
+
//
|
| 1253 |
+
// Replaces the video presenter and mixer objects with ones specified by the
|
| 1254 |
+
// application.
|
| 1255 |
+
//
|
| 1256 |
+
// Parameters:
|
| 1257 |
+
//
|
| 1258 |
+
// pVideoMixer - The new video mixer object. Can be NULL.
|
| 1259 |
+
//
|
| 1260 |
+
// pVideoPresenter - The new video presenter object. Can be NULL.
|
| 1261 |
+
//
|
| 1262 |
+
// Return values:
|
| 1263 |
+
//
|
| 1264 |
+
// S_OK - Successful completion.
|
| 1265 |
+
// MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer
|
| 1266 |
+
// respond to methods calls. It must be released.
|
| 1267 |
+
//
|
| 1268 |
+
// Remarks:
|
| 1269 |
+
//
|
| 1270 |
+
// If the video renderer is in the protected media path(PMP), then the mixer
|
| 1271 |
+
// and presenter objects must be certified safe components and pass any trust
|
| 1272 |
+
// authority verification that is being enforced. Otherwise, this method will fail.
|
| 1273 |
+
//
|
| 1274 |
+
// It is legal to supply NULL as the parameter for both arguments.
|
| 1275 |
+
//
|
| 1276 |
+
HRESULT InitializeRenderer(
|
| 1277 |
+
[in, unique, annotation("_In_opt_")] IMFTransform* pVideoMixer,
|
| 1278 |
+
[in, unique, annotation("_In_opt_")] IMFVideoPresenter* pVideoPresenter
|
| 1279 |
+
);
|
| 1280 |
+
}
|
| 1281 |
+
|
| 1282 |
+
//=============================================================================
|
| 1283 |
+
// Description:
|
| 1284 |
+
//
|
| 1285 |
+
// The IEVRFilterConfig interface exists for configuration of the DShow EVR
|
| 1286 |
+
// filter. It allows for setting the stream count.
|
| 1287 |
+
//
|
| 1288 |
+
[
|
| 1289 |
+
object,
|
| 1290 |
+
uuid(83E91E85-82C1-4ea7-801D-85DC50B75086),
|
| 1291 |
+
helpstring("IEVRFilterConfig Interface"),
|
| 1292 |
+
local
|
| 1293 |
+
]
|
| 1294 |
+
interface IEVRFilterConfig : IUnknown
|
| 1295 |
+
{
|
| 1296 |
+
//-------------------------------------------------------------------------
|
| 1297 |
+
// Description:
|
| 1298 |
+
//
|
| 1299 |
+
// Configures the video renderer filter with the desired number of streams.
|
| 1300 |
+
//
|
| 1301 |
+
// Parameters:
|
| 1302 |
+
//
|
| 1303 |
+
// dwMaxStreams - The number of pins.
|
| 1304 |
+
//
|
| 1305 |
+
// Return values:
|
| 1306 |
+
//
|
| 1307 |
+
// S_OK - Successful completion.
|
| 1308 |
+
// VFW_E_WRONG_STATE - The Pin count has already been set or the EVR is
|
| 1309 |
+
// still connected.
|
| 1310 |
+
// E_INVALIDARG - There must always be a minimum of one pin. Specifying 0
|
| 1311 |
+
// will result in this error code.
|
| 1312 |
+
//
|
| 1313 |
+
// Remarks:
|
| 1314 |
+
//
|
| 1315 |
+
// Pins are created in the disabled state.
|
| 1316 |
+
//
|
| 1317 |
+
HRESULT SetNumberOfStreams(
|
| 1318 |
+
[in] DWORD dwMaxStreams
|
| 1319 |
+
);
|
| 1320 |
+
|
| 1321 |
+
//-------------------------------------------------------------------------
|
| 1322 |
+
// Description:
|
| 1323 |
+
//
|
| 1324 |
+
// Retrieves the current number of pins that exist on the video renderer.
|
| 1325 |
+
// There is always at least one pin.
|
| 1326 |
+
//
|
| 1327 |
+
// Parameters:
|
| 1328 |
+
//
|
| 1329 |
+
// pdwMaxStreams - Receives the number of pins on the filter.
|
| 1330 |
+
//
|
| 1331 |
+
// Return values:
|
| 1332 |
+
//
|
| 1333 |
+
// S_OK - Successful completion.
|
| 1334 |
+
// E_POINTER - pdwMaxStreams is NULL.
|
| 1335 |
+
//
|
| 1336 |
+
// Remarks:
|
| 1337 |
+
//
|
| 1338 |
+
// None.
|
| 1339 |
+
//
|
| 1340 |
+
HRESULT GetNumberOfStreams(
|
| 1341 |
+
[out, annotation("_Out_")] DWORD* pdwMaxStreams
|
| 1342 |
+
);
|
| 1343 |
+
}
|
| 1344 |
+
|
| 1345 |
+
//=============================================================================
|
| 1346 |
+
// Description:
|
| 1347 |
+
//
|
| 1348 |
+
// The configuration preferences used by the filter.
|
| 1349 |
+
//
|
| 1350 |
+
typedef enum _EVRFilterConfig_Prefs {
|
| 1351 |
+
EVRFilterConfigPrefs_EnableQoS = 0x00000001,
|
| 1352 |
+
EVRFilterConfigPrefs_Mask = 0x00000001,
|
| 1353 |
+
} EVRFilterConfigPrefs;
|
| 1354 |
+
|
| 1355 |
+
//=============================================================================
|
| 1356 |
+
// Description:
|
| 1357 |
+
//
|
| 1358 |
+
// The IEVRFilterConfigEx interface controls the filter behavior
|
| 1359 |
+
//
|
| 1360 |
+
[
|
| 1361 |
+
object,
|
| 1362 |
+
uuid(aea36028-796d-454f-beee-b48071e24304),
|
| 1363 |
+
helpstring("IEVRFilterConfigEx Interface")
|
| 1364 |
+
]
|
| 1365 |
+
interface IEVRFilterConfigEx : IEVRFilterConfig
|
| 1366 |
+
{
|
| 1367 |
+
//-------------------------------------------------------------------------
|
| 1368 |
+
// Description:
|
| 1369 |
+
//
|
| 1370 |
+
// Sets various application filter preferences.
|
| 1371 |
+
//
|
| 1372 |
+
// Parameters:
|
| 1373 |
+
//
|
| 1374 |
+
// dwConfigFlags - A bitwise OR of EVRFilterConfigPrefs values specifying the
|
| 1375 |
+
// filter preferences.
|
| 1376 |
+
//
|
| 1377 |
+
// Return values:
|
| 1378 |
+
//
|
| 1379 |
+
// S_OK - Successful completion.
|
| 1380 |
+
// E_INVALIDARG - An invalid set of preferences were supplied.
|
| 1381 |
+
//
|
| 1382 |
+
// Remarks:
|
| 1383 |
+
//
|
| 1384 |
+
// None.
|
| 1385 |
+
//
|
| 1386 |
+
HRESULT SetConfigPrefs(
|
| 1387 |
+
[in] DWORD dwConfigFlags // a combination of EVRFilterConfigPrefs
|
| 1388 |
+
);
|
| 1389 |
+
|
| 1390 |
+
//-------------------------------------------------------------------------
|
| 1391 |
+
// Description:
|
| 1392 |
+
//
|
| 1393 |
+
// Retrieves the current set of Config preferences being used by
|
| 1394 |
+
// the EVR filter.
|
| 1395 |
+
//
|
| 1396 |
+
// Parameters:
|
| 1397 |
+
//
|
| 1398 |
+
// pdwConfigFlags - receives a DWORD representing a bitwise OR of
|
| 1399 |
+
// EVRFilterConfigPrefs values indicating the current Config preferences.
|
| 1400 |
+
//
|
| 1401 |
+
// Return values:
|
| 1402 |
+
//
|
| 1403 |
+
// S_OK - Successful completion.
|
| 1404 |
+
// E_POINTER - An invalid pointer was passed.
|
| 1405 |
+
//
|
| 1406 |
+
// Remarks:
|
| 1407 |
+
//
|
| 1408 |
+
// None.
|
| 1409 |
+
//
|
| 1410 |
+
HRESULT GetConfigPrefs(
|
| 1411 |
+
[out] DWORD* pdwConfigFlags
|
| 1412 |
+
);
|
| 1413 |
+
};
|
| 1414 |
+
|
| 1415 |
+
|
| 1416 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 1417 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 1418 |
+
|
| 1419 |
+
typedef enum _MF_SERVICE_LOOKUP_TYPE
|
| 1420 |
+
{
|
| 1421 |
+
MF_SERVICE_LOOKUP_UPSTREAM,
|
| 1422 |
+
MF_SERVICE_LOOKUP_UPSTREAM_DIRECT,
|
| 1423 |
+
MF_SERVICE_LOOKUP_DOWNSTREAM,
|
| 1424 |
+
MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT,
|
| 1425 |
+
MF_SERVICE_LOOKUP_ALL, // lookup service on any components of the graph
|
| 1426 |
+
MF_SERVICE_LOOKUP_GLOBAL, // lookup global objects
|
| 1427 |
+
} MF_SERVICE_LOOKUP_TYPE;
|
| 1428 |
+
|
| 1429 |
+
//=============================================================================
|
| 1430 |
+
// Description:
|
| 1431 |
+
//
|
| 1432 |
+
// Component can use IMFTopologyServiceLookup interface to lookup object in topology.
|
| 1433 |
+
// Pipeline will call IMFTopologyServiceLookupClient::InitServicePointers some time after component is created
|
| 1434 |
+
// Component should only use IMFTopologyServiceLookup in the context of IMFTopologyServiceLookupClient::InitServicePointers call
|
| 1435 |
+
// After call is complete IMFTopologyServiceLookup interface will return an error for any call
|
| 1436 |
+
//
|
| 1437 |
+
[
|
| 1438 |
+
object,
|
| 1439 |
+
uuid(fa993889-4383-415a-a930-dd472a8cf6f7),
|
| 1440 |
+
helpstring("IMFTopologyServiceLookup Interface"),
|
| 1441 |
+
local
|
| 1442 |
+
]
|
| 1443 |
+
interface IMFTopologyServiceLookup : IUnknown
|
| 1444 |
+
{
|
| 1445 |
+
//-------------------------------------------------------------------------
|
| 1446 |
+
// Description:
|
| 1447 |
+
//
|
| 1448 |
+
// Called by a client to retrieve external interfaces.
|
| 1449 |
+
//
|
| 1450 |
+
// Parameters:
|
| 1451 |
+
//
|
| 1452 |
+
// Type - Identifies the scope of the search.
|
| 1453 |
+
//
|
| 1454 |
+
// dwIndex - Optional index to identify component input or output. Ignored for _ALL or _GLOBAL type .
|
| 1455 |
+
//
|
| 1456 |
+
// guidService - Identifies the service to lookup.
|
| 1457 |
+
//
|
| 1458 |
+
// riid - IID of the interface on the service.
|
| 1459 |
+
//
|
| 1460 |
+
// ppvObjects - Contains array of size == *pnObject to fill in .
|
| 1461 |
+
//
|
| 1462 |
+
// pnObjects - At input time, contains the maximum number of elements in ppvObjects array.
|
| 1463 |
+
//
|
| 1464 |
+
// Return values:
|
| 1465 |
+
//
|
| 1466 |
+
// S_OK - Successful completion.
|
| 1467 |
+
// MF_E_UNSUPPORTED_SERVICE - The service specified by guidService is not supported.
|
| 1468 |
+
// MF_E_NOTACCEPTING - The method was called outside the context of an IMFTopologyServiceLookupClient::InitServicePointers method call.
|
| 1469 |
+
// E_POINTER - pnObjects or ppvObjects was NULL.
|
| 1470 |
+
// E_INVALIDARG - *pnObjects was zero.
|
| 1471 |
+
//
|
| 1472 |
+
// Remarks:
|
| 1473 |
+
//
|
| 1474 |
+
// Method may only be called within the context of an
|
| 1475 |
+
// IMFTopologyServiceLookupClient::InitServicePointers method call.
|
| 1476 |
+
//
|
| 1477 |
+
HRESULT LookupService(
|
| 1478 |
+
[in] MF_SERVICE_LOOKUP_TYPE Type,
|
| 1479 |
+
[in] DWORD dwIndex,
|
| 1480 |
+
[in] REFGUID guidService,
|
| 1481 |
+
[in] REFIID riid,
|
| 1482 |
+
[out, iid_is(riid), annotation("_Out_writes_to_(1,*pnObjects)")] LPVOID* ppvObjects,
|
| 1483 |
+
[in, out, annotation("_Inout_")] DWORD * pnObjects
|
| 1484 |
+
);
|
| 1485 |
+
}
|
| 1486 |
+
|
| 1487 |
+
|
| 1488 |
+
//=============================================================================
|
| 1489 |
+
// Description:
|
| 1490 |
+
//
|
| 1491 |
+
// Component can implement IMFTopologyServiceLookupClient if it wants to lookup services on other components in the pipeline
|
| 1492 |
+
//
|
| 1493 |
+
[
|
| 1494 |
+
local,
|
| 1495 |
+
object,
|
| 1496 |
+
uuid(fa99388a-4383-415a-a930-dd472a8cf6f7)
|
| 1497 |
+
]
|
| 1498 |
+
interface IMFTopologyServiceLookupClient : IUnknown
|
| 1499 |
+
{
|
| 1500 |
+
//-------------------------------------------------------------------------
|
| 1501 |
+
// Description:
|
| 1502 |
+
//
|
| 1503 |
+
// Called by the EVR during initialization of the component.
|
| 1504 |
+
// Component can lookup services using pLookup object
|
| 1505 |
+
//
|
| 1506 |
+
// Parameters:
|
| 1507 |
+
//
|
| 1508 |
+
// pLookup - The interface to be used to discover objects.
|
| 1509 |
+
//
|
| 1510 |
+
// Return values:
|
| 1511 |
+
//
|
| 1512 |
+
// S_OK - Successful completion.
|
| 1513 |
+
//
|
| 1514 |
+
// Remarks:
|
| 1515 |
+
//
|
| 1516 |
+
// The IMFTopologyServiceLookup pointer should not be addref'ed or cached
|
| 1517 |
+
// by the callee. It can not be used outside the context of this method
|
| 1518 |
+
// call and will fail if an attempt is made.
|
| 1519 |
+
//
|
| 1520 |
+
HRESULT InitServicePointers(
|
| 1521 |
+
[in, annotation("_In_")] IMFTopologyServiceLookup * pLookup
|
| 1522 |
+
);
|
| 1523 |
+
|
| 1524 |
+
//-------------------------------------------------------------------------
|
| 1525 |
+
// Description:
|
| 1526 |
+
//
|
| 1527 |
+
// Called by the pipeline during deinitialization of the component.
|
| 1528 |
+
// Component should release all services acquired during InitServicePointers call
|
| 1529 |
+
//
|
| 1530 |
+
HRESULT ReleaseServicePointers(
|
| 1531 |
+
);
|
| 1532 |
+
}
|
| 1533 |
+
|
| 1534 |
+
|
| 1535 |
+
//=============================================================================
|
| 1536 |
+
// Description:
|
| 1537 |
+
//
|
| 1538 |
+
// EVR plug-ins (mixer, presenter) are expected to implement IEVRTrustedVideoPlugin - QI-able interface
|
| 1539 |
+
// to enable working in the Protected Video Path. Video OTA uses them to communicate with
|
| 1540 |
+
// policy objects from ITA.
|
| 1541 |
+
//
|
| 1542 |
+
// Abscence of this interface on the plug-in is interpreted as a negative answer to both predicates
|
| 1543 |
+
// for the purposes of EVR-OTA communication
|
| 1544 |
+
//
|
| 1545 |
+
|
| 1546 |
+
[
|
| 1547 |
+
object,
|
| 1548 |
+
uuid(83A4CE40-7710-494b-A893-A472049AF630),
|
| 1549 |
+
helpstring("IEVRTrustedVideoPlugin Interface"),
|
| 1550 |
+
local
|
| 1551 |
+
]
|
| 1552 |
+
interface IEVRTrustedVideoPlugin: IUnknown
|
| 1553 |
+
{
|
| 1554 |
+
//-------------------------------------------------------------------------
|
| 1555 |
+
// Description:
|
| 1556 |
+
//
|
| 1557 |
+
// This predicate is a simple mechanism for a plug-in to report presence of transient/conditional "video vulnerabilities"
|
| 1558 |
+
// known to a plug-in on EVR's device change. Returning FALSE here will result in indication to a Policy Object from ITA
|
| 1559 |
+
// of an additional presence of "unknown software "connector" as an output. Policy Object may take this into consideration
|
| 1560 |
+
// when defining the protection settings.
|
| 1561 |
+
//
|
| 1562 |
+
// The method is called every time on every EVR plug-in after EVR's OTA is informed by EVR about new rendering "device"
|
| 1563 |
+
//
|
| 1564 |
+
// The example of such "transient" vulnerability is a windowed (non-fullscreen DX) mode for the EVR presenter in Vista
|
| 1565 |
+
// ("GDI hole") that is vulnerable to a screen scraping. Whenever the presenter finds itself in a windowed mode it should
|
| 1566 |
+
// return FALSE. Once "GDI hole" is fixed this may be reflected in this plug-in's implementation of this method.
|
| 1567 |
+
|
| 1568 |
+
// The vulnerabilities are expected to be "transient" as a plug-in that is *always* cannot be trusted with premium video probably
|
| 1569 |
+
// shouldn't be certified to be loaded in PMP at all. It is responsibility of the plug-in to verify during this call all applicable transient
|
| 1570 |
+
// conditions for known video vulnerabilities.
|
| 1571 |
+
|
| 1572 |
+
//
|
| 1573 |
+
// Parameters:
|
| 1574 |
+
//
|
| 1575 |
+
// pYes - To return TRUE if plug-in is in trusted video mode, FALSE otherwise
|
| 1576 |
+
//
|
| 1577 |
+
// Return values:
|
| 1578 |
+
//
|
| 1579 |
+
// S_OK - Successful completion. Any failure is treated as if the method returned FALSE.
|
| 1580 |
+
//
|
| 1581 |
+
// Remarks:
|
| 1582 |
+
//
|
| 1583 |
+
HRESULT IsInTrustedVideoMode (
|
| 1584 |
+
[out] BOOL *pYes
|
| 1585 |
+
);
|
| 1586 |
+
|
| 1587 |
+
|
| 1588 |
+
|
| 1589 |
+
//-------------------------------------------------------------------------
|
| 1590 |
+
// Description:
|
| 1591 |
+
//
|
| 1592 |
+
// Constriction (limiting the effective resolution of the image to a specified number of pixels)
|
| 1593 |
+
// is a protection mechanism offered by EVR via OTA to a content policy owner. It can be
|
| 1594 |
+
// implemented either by a mixer or a presenter plug-in (or both) with preference given to a
|
| 1595 |
+
// mixer. If no mixer is available or a mixer indicates that it cannot support constriction then
|
| 1596 |
+
// the presenter will be asked if it implements constriction.
|
| 1597 |
+
// This predicate currently is called immediately after every SetDevice in EVR.
|
| 1598 |
+
//
|
| 1599 |
+
// Parameters:
|
| 1600 |
+
//
|
| 1601 |
+
// pYes - To return TRUE if plug-in can constrict, FALSE otherwise
|
| 1602 |
+
//
|
| 1603 |
+
// Return values:
|
| 1604 |
+
//
|
| 1605 |
+
// S_OK - Successful completion. Any failure is treated as if the method returned FALSE.
|
| 1606 |
+
//
|
| 1607 |
+
// Remarks:
|
| 1608 |
+
//
|
| 1609 |
+
// Care should be taken that no public interface exposed by plug-ins can lessen bandwidth
|
| 1610 |
+
// restriction imposed by private IEVRTrustedVideo::SetConstriction. If constriction cannot be performed
|
| 1611 |
+
// in a trusted manner (regardless of the answer on IsInTrustedVideoMode) this capability should
|
| 1612 |
+
// not be reported.
|
| 1613 |
+
//
|
| 1614 |
+
//
|
| 1615 |
+
HRESULT CanConstrict (
|
| 1616 |
+
[out] BOOL *pYes
|
| 1617 |
+
);
|
| 1618 |
+
|
| 1619 |
+
|
| 1620 |
+
|
| 1621 |
+
//-------------------------------------------------------------------------
|
| 1622 |
+
// Description:
|
| 1623 |
+
//
|
| 1624 |
+
// Once an EVR plug-in reports that it CanConstrict video it may be called at any time
|
| 1625 |
+
// to SetContsriction with the argument establishing limit on the total number of "source" pixels
|
| 1626 |
+
// in the full output image in "kilopixels" (1000 pixels). (The actual number of pixels at destination can be
|
| 1627 |
+
// different due to stretch scaling, etc)
|
| 1628 |
+
// Two argument values are reserved: DWORD(0) and DWORD(0xFFFFFFFF). The former is meant
|
| 1629 |
+
// to "disable" video (0 "source" pixels, preferably "black video"
|
| 1630 |
+
// Refer to compliance rules for the definition of "disable". It may be possible to treat "ultra-constriction"
|
| 1631 |
+
// (<1Kpix) as "disable".) The latter is used to indicate the end of any policy-imposed constriction
|
| 1632 |
+
// requirements that might be in effect before.
|
| 1633 |
+
//
|
| 1634 |
+
// Parameters:
|
| 1635 |
+
//
|
| 1636 |
+
// dwKPix - Amount of allowed source pixels in the image in KPixels, or one the two reserved value (see description)
|
| 1637 |
+
//
|
| 1638 |
+
// Return values:
|
| 1639 |
+
//
|
| 1640 |
+
// S_OK - Successful completion. Any failure here is teated as Policy Enforcemet Failure and is reported to
|
| 1641 |
+
// to MIG's policy engine as such.
|
| 1642 |
+
//
|
| 1643 |
+
// Remarks:
|
| 1644 |
+
//
|
| 1645 |
+
// Care should be taken that no public interface exposed by plug-ins can lessen bandwidth
|
| 1646 |
+
// restriction imposed by private IEVRTrustedVideo::SetConstriction. If constriction cannot be performed
|
| 1647 |
+
// in a trusted manner (regardless of the answer on IsInTrustedVideoMode) this capability should
|
| 1648 |
+
// not be reported.
|
| 1649 |
+
//
|
| 1650 |
+
//
|
| 1651 |
+
HRESULT SetConstriction(
|
| 1652 |
+
DWORD dwKPix
|
| 1653 |
+
);
|
| 1654 |
+
|
| 1655 |
+
|
| 1656 |
+
//-------------------------------------------------------------------------
|
| 1657 |
+
// Description:
|
| 1658 |
+
//
|
| 1659 |
+
// Some plug-ins (presenters) may implement some form of image exports
|
| 1660 |
+
// like vidctrl GetCurrentImage(). This OTA callback sets permission to do that.
|
| 1661 |
+
//
|
| 1662 |
+
// By default the plug-in is assumed to start with ImageExport functionality enabled
|
| 1663 |
+
// (if implemented)
|
| 1664 |
+
//
|
| 1665 |
+
// Parameters:
|
| 1666 |
+
//
|
| 1667 |
+
// BOOL bDisable - TRUE/FALSE. TRUE disables all subsequent image export requests, until set to FALSE.
|
| 1668 |
+
//
|
| 1669 |
+
// Return values:
|
| 1670 |
+
//
|
| 1671 |
+
// Should always S_OK. Failure will be reported as a policy enforcement error.
|
| 1672 |
+
//
|
| 1673 |
+
// Remarks:
|
| 1674 |
+
//
|
| 1675 |
+
// A plug-in is expected to return MF_E_LICENSE_INCORRECT_RIGHTS
|
| 1676 |
+
// from an export methods when disabled.
|
| 1677 |
+
//
|
| 1678 |
+
HRESULT DisableImageExport(
|
| 1679 |
+
BOOL bDisable
|
| 1680 |
+
);
|
| 1681 |
+
|
| 1682 |
+
};
|
| 1683 |
+
|
| 1684 |
+
|
| 1685 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1686 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1687 |
+
cpp_quote( "#ifndef MFEVRDLL" )
|
| 1688 |
+
cpp_quote( "#define MFEVRDLL 0" )
|
| 1689 |
+
cpp_quote( "#endif" )
|
| 1690 |
+
|
| 1691 |
+
cpp_quote( "#if MFEVRDLL" )
|
| 1692 |
+
cpp_quote( "#define EVRPUBLIC(func) STDAPI _##func" )
|
| 1693 |
+
cpp_quote( "#else" )
|
| 1694 |
+
cpp_quote( "#define EVRPUBLIC(func) STDAPI func" )
|
| 1695 |
+
cpp_quote( "#endif" )
|
| 1696 |
+
|
| 1697 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1698 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1699 |
+
|
| 1700 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoPresenter)(" )
|
| 1701 |
+
cpp_quote( " _In_opt_ IUnknown * pOwner," )
|
| 1702 |
+
cpp_quote( " REFIID riidDevice," )
|
| 1703 |
+
cpp_quote( " REFIID riid," )
|
| 1704 |
+
cpp_quote( " _Outptr_result_maybenull_ void ** ppVideoPresenter" )
|
| 1705 |
+
cpp_quote( " );" )
|
| 1706 |
+
|
| 1707 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1708 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1709 |
+
|
| 1710 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoMixer)(" )
|
| 1711 |
+
cpp_quote( " _In_opt_ IUnknown * pOwner," )
|
| 1712 |
+
cpp_quote( " REFIID riidDevice," )
|
| 1713 |
+
cpp_quote( " REFIID riid," )
|
| 1714 |
+
cpp_quote( " _Outptr_ void ** ppv" )
|
| 1715 |
+
cpp_quote( " );" )
|
| 1716 |
+
|
| 1717 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1718 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1719 |
+
|
| 1720 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoMixerAndPresenter)(" )
|
| 1721 |
+
cpp_quote( " _In_opt_ IUnknown * pMixerOwner,")
|
| 1722 |
+
cpp_quote( " _In_opt_ IUnknown * pPresenterOwner,")
|
| 1723 |
+
cpp_quote( " REFIID riidMixer,")
|
| 1724 |
+
cpp_quote( " _Outptr_ void ** ppvVideoMixer, ")
|
| 1725 |
+
cpp_quote( " REFIID riidPresenter,")
|
| 1726 |
+
cpp_quote( " _Outptr_ void ** ppvVideoPresenter")
|
| 1727 |
+
cpp_quote( " );" )
|
| 1728 |
+
|
| 1729 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1730 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1731 |
+
|
| 1732 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoRenderer)(" )
|
| 1733 |
+
cpp_quote( " REFIID riidRenderer,")
|
| 1734 |
+
cpp_quote( " _Outptr_result_maybenull_ void ** ppVideoRenderer" )
|
| 1735 |
+
cpp_quote( " );" )
|
| 1736 |
+
|
| 1737 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1738 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1739 |
+
|
| 1740 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoSampleFromSurface)(" )
|
| 1741 |
+
cpp_quote( " _In_ IUnknown* pUnkSurface," )
|
| 1742 |
+
cpp_quote( " _Out_ IMFSample** ppSample" )
|
| 1743 |
+
cpp_quote( " );" )
|
| 1744 |
+
|
| 1745 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1746 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 1747 |
+
|
| 1748 |
+
cpp_quote( "EVRPUBLIC(MFCreateVideoSampleAllocator)(" )
|
| 1749 |
+
cpp_quote( " _In_ REFIID riid," )
|
| 1750 |
+
cpp_quote( " _Outptr_ void** ppSampleAllocator" )
|
| 1751 |
+
cpp_quote( " );" )
|
| 1752 |
+
|
| 1753 |
+
|
| 1754 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 1755 |
+
#pragma endregion
|
| 1756 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evr9.h
ADDED
|
@@ -0,0 +1,592 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __evr9_h__
|
| 34 |
+
#define __evr9_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IEVRVideoStreamControl_FWD_DEFINED__
|
| 51 |
+
#define __IEVRVideoStreamControl_FWD_DEFINED__
|
| 52 |
+
typedef interface IEVRVideoStreamControl IEVRVideoStreamControl;
|
| 53 |
+
|
| 54 |
+
#endif /* __IEVRVideoStreamControl_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IMFVideoProcessor_FWD_DEFINED__
|
| 58 |
+
#define __IMFVideoProcessor_FWD_DEFINED__
|
| 59 |
+
typedef interface IMFVideoProcessor IMFVideoProcessor;
|
| 60 |
+
|
| 61 |
+
#endif /* __IMFVideoProcessor_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IMFVideoMixerBitmap_FWD_DEFINED__
|
| 65 |
+
#define __IMFVideoMixerBitmap_FWD_DEFINED__
|
| 66 |
+
typedef interface IMFVideoMixerBitmap IMFVideoMixerBitmap;
|
| 67 |
+
|
| 68 |
+
#endif /* __IMFVideoMixerBitmap_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
/* header files for imported files */
|
| 72 |
+
#include "unknwn.h"
|
| 73 |
+
#include "mfobjects.h"
|
| 74 |
+
#include "mftransform.h"
|
| 75 |
+
#include "evr.h"
|
| 76 |
+
#include "dxva2api.h"
|
| 77 |
+
|
| 78 |
+
#ifdef __cplusplus
|
| 79 |
+
extern "C"{
|
| 80 |
+
#endif
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
/* interface __MIDL_itf_evr9_0000_0000 */
|
| 84 |
+
/* [local] */
|
| 85 |
+
|
| 86 |
+
#include <winapifamily.h>
|
| 87 |
+
#pragma region Desktop Family
|
| 88 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0000_v0_0_c_ifspec;
|
| 94 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0000_v0_0_s_ifspec;
|
| 95 |
+
|
| 96 |
+
#ifndef __IEVRVideoStreamControl_INTERFACE_DEFINED__
|
| 97 |
+
#define __IEVRVideoStreamControl_INTERFACE_DEFINED__
|
| 98 |
+
|
| 99 |
+
/* interface IEVRVideoStreamControl */
|
| 100 |
+
/* [unique][helpstring][uuid][local][object] */
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
EXTERN_C const IID IID_IEVRVideoStreamControl;
|
| 104 |
+
|
| 105 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 106 |
+
|
| 107 |
+
MIDL_INTERFACE("d0cfe38b-93e7-4772-8957-0400c49a4485")
|
| 108 |
+
IEVRVideoStreamControl : public IUnknown
|
| 109 |
+
{
|
| 110 |
+
public:
|
| 111 |
+
virtual HRESULT STDMETHODCALLTYPE SetStreamActiveState(
|
| 112 |
+
/* [in] */ BOOL fActive) = 0;
|
| 113 |
+
|
| 114 |
+
virtual HRESULT STDMETHODCALLTYPE GetStreamActiveState(
|
| 115 |
+
/* [annotation][out] */
|
| 116 |
+
_Out_ BOOL *lpfActive) = 0;
|
| 117 |
+
|
| 118 |
+
};
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
#else /* C style interface */
|
| 122 |
+
|
| 123 |
+
typedef struct IEVRVideoStreamControlVtbl
|
| 124 |
+
{
|
| 125 |
+
BEGIN_INTERFACE
|
| 126 |
+
|
| 127 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 128 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 129 |
+
IEVRVideoStreamControl * This,
|
| 130 |
+
/* [in] */ REFIID riid,
|
| 131 |
+
/* [annotation][iid_is][out] */
|
| 132 |
+
_COM_Outptr_ void **ppvObject);
|
| 133 |
+
|
| 134 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 135 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 136 |
+
IEVRVideoStreamControl * This);
|
| 137 |
+
|
| 138 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 139 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 140 |
+
IEVRVideoStreamControl * This);
|
| 141 |
+
|
| 142 |
+
DECLSPEC_XFGVIRT(IEVRVideoStreamControl, SetStreamActiveState)
|
| 143 |
+
HRESULT ( STDMETHODCALLTYPE *SetStreamActiveState )(
|
| 144 |
+
IEVRVideoStreamControl * This,
|
| 145 |
+
/* [in] */ BOOL fActive);
|
| 146 |
+
|
| 147 |
+
DECLSPEC_XFGVIRT(IEVRVideoStreamControl, GetStreamActiveState)
|
| 148 |
+
HRESULT ( STDMETHODCALLTYPE *GetStreamActiveState )(
|
| 149 |
+
IEVRVideoStreamControl * This,
|
| 150 |
+
/* [annotation][out] */
|
| 151 |
+
_Out_ BOOL *lpfActive);
|
| 152 |
+
|
| 153 |
+
END_INTERFACE
|
| 154 |
+
} IEVRVideoStreamControlVtbl;
|
| 155 |
+
|
| 156 |
+
interface IEVRVideoStreamControl
|
| 157 |
+
{
|
| 158 |
+
CONST_VTBL struct IEVRVideoStreamControlVtbl *lpVtbl;
|
| 159 |
+
};
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
#ifdef COBJMACROS
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
#define IEVRVideoStreamControl_QueryInterface(This,riid,ppvObject) \
|
| 167 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 168 |
+
|
| 169 |
+
#define IEVRVideoStreamControl_AddRef(This) \
|
| 170 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 171 |
+
|
| 172 |
+
#define IEVRVideoStreamControl_Release(This) \
|
| 173 |
+
( (This)->lpVtbl -> Release(This) )
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
#define IEVRVideoStreamControl_SetStreamActiveState(This,fActive) \
|
| 177 |
+
( (This)->lpVtbl -> SetStreamActiveState(This,fActive) )
|
| 178 |
+
|
| 179 |
+
#define IEVRVideoStreamControl_GetStreamActiveState(This,lpfActive) \
|
| 180 |
+
( (This)->lpVtbl -> GetStreamActiveState(This,lpfActive) )
|
| 181 |
+
|
| 182 |
+
#endif /* COBJMACROS */
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
#endif /* C style interface */
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
#endif /* __IEVRVideoStreamControl_INTERFACE_DEFINED__ */
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
#ifndef __IMFVideoProcessor_INTERFACE_DEFINED__
|
| 194 |
+
#define __IMFVideoProcessor_INTERFACE_DEFINED__
|
| 195 |
+
|
| 196 |
+
/* interface IMFVideoProcessor */
|
| 197 |
+
/* [unique][helpstring][uuid][object] */
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
EXTERN_C const IID IID_IMFVideoProcessor;
|
| 201 |
+
|
| 202 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 203 |
+
|
| 204 |
+
MIDL_INTERFACE("6AB0000C-FECE-4d1f-A2AC-A9573530656E")
|
| 205 |
+
IMFVideoProcessor : public IUnknown
|
| 206 |
+
{
|
| 207 |
+
public:
|
| 208 |
+
virtual HRESULT STDMETHODCALLTYPE GetAvailableVideoProcessorModes(
|
| 209 |
+
/* [out][in] */ __RPC__inout UINT *lpdwNumProcessingModes,
|
| 210 |
+
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*lpdwNumProcessingModes) GUID **ppVideoProcessingModes) = 0;
|
| 211 |
+
|
| 212 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(
|
| 213 |
+
/* [in] */ __RPC__in LPGUID lpVideoProcessorMode,
|
| 214 |
+
/* [out] */ __RPC__out DXVA2_VideoProcessorCaps *lpVideoProcessorCaps) = 0;
|
| 215 |
+
|
| 216 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorMode(
|
| 217 |
+
/* [out] */ __RPC__out LPGUID lpMode) = 0;
|
| 218 |
+
|
| 219 |
+
virtual HRESULT STDMETHODCALLTYPE SetVideoProcessorMode(
|
| 220 |
+
/* [in] */ __RPC__in LPGUID lpMode) = 0;
|
| 221 |
+
|
| 222 |
+
virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange(
|
| 223 |
+
DWORD dwProperty,
|
| 224 |
+
/* [out] */ __RPC__out DXVA2_ValueRange *pPropRange) = 0;
|
| 225 |
+
|
| 226 |
+
virtual HRESULT STDMETHODCALLTYPE GetProcAmpValues(
|
| 227 |
+
DWORD dwFlags,
|
| 228 |
+
/* [out] */ __RPC__out DXVA2_ProcAmpValues *Values) = 0;
|
| 229 |
+
|
| 230 |
+
virtual HRESULT STDMETHODCALLTYPE SetProcAmpValues(
|
| 231 |
+
DWORD dwFlags,
|
| 232 |
+
/* [in] */ __RPC__in DXVA2_ProcAmpValues *pValues) = 0;
|
| 233 |
+
|
| 234 |
+
virtual HRESULT STDMETHODCALLTYPE GetFilteringRange(
|
| 235 |
+
DWORD dwProperty,
|
| 236 |
+
/* [out] */ __RPC__out DXVA2_ValueRange *pPropRange) = 0;
|
| 237 |
+
|
| 238 |
+
virtual HRESULT STDMETHODCALLTYPE GetFilteringValue(
|
| 239 |
+
DWORD dwProperty,
|
| 240 |
+
/* [out] */ __RPC__out DXVA2_Fixed32 *pValue) = 0;
|
| 241 |
+
|
| 242 |
+
virtual HRESULT STDMETHODCALLTYPE SetFilteringValue(
|
| 243 |
+
DWORD dwProperty,
|
| 244 |
+
/* [in] */ __RPC__in DXVA2_Fixed32 *pValue) = 0;
|
| 245 |
+
|
| 246 |
+
virtual HRESULT STDMETHODCALLTYPE GetBackgroundColor(
|
| 247 |
+
/* [out] */ __RPC__out COLORREF *lpClrBkg) = 0;
|
| 248 |
+
|
| 249 |
+
virtual HRESULT STDMETHODCALLTYPE SetBackgroundColor(
|
| 250 |
+
COLORREF ClrBkg) = 0;
|
| 251 |
+
|
| 252 |
+
};
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
#else /* C style interface */
|
| 256 |
+
|
| 257 |
+
typedef struct IMFVideoProcessorVtbl
|
| 258 |
+
{
|
| 259 |
+
BEGIN_INTERFACE
|
| 260 |
+
|
| 261 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 262 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 263 |
+
__RPC__in IMFVideoProcessor * This,
|
| 264 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 265 |
+
/* [annotation][iid_is][out] */
|
| 266 |
+
_COM_Outptr_ void **ppvObject);
|
| 267 |
+
|
| 268 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 269 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 270 |
+
__RPC__in IMFVideoProcessor * This);
|
| 271 |
+
|
| 272 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 273 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 274 |
+
__RPC__in IMFVideoProcessor * This);
|
| 275 |
+
|
| 276 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetAvailableVideoProcessorModes)
|
| 277 |
+
HRESULT ( STDMETHODCALLTYPE *GetAvailableVideoProcessorModes )(
|
| 278 |
+
__RPC__in IMFVideoProcessor * This,
|
| 279 |
+
/* [out][in] */ __RPC__inout UINT *lpdwNumProcessingModes,
|
| 280 |
+
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*lpdwNumProcessingModes) GUID **ppVideoProcessingModes);
|
| 281 |
+
|
| 282 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetVideoProcessorCaps)
|
| 283 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )(
|
| 284 |
+
__RPC__in IMFVideoProcessor * This,
|
| 285 |
+
/* [in] */ __RPC__in LPGUID lpVideoProcessorMode,
|
| 286 |
+
/* [out] */ __RPC__out DXVA2_VideoProcessorCaps *lpVideoProcessorCaps);
|
| 287 |
+
|
| 288 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetVideoProcessorMode)
|
| 289 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorMode )(
|
| 290 |
+
__RPC__in IMFVideoProcessor * This,
|
| 291 |
+
/* [out] */ __RPC__out LPGUID lpMode);
|
| 292 |
+
|
| 293 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, SetVideoProcessorMode)
|
| 294 |
+
HRESULT ( STDMETHODCALLTYPE *SetVideoProcessorMode )(
|
| 295 |
+
__RPC__in IMFVideoProcessor * This,
|
| 296 |
+
/* [in] */ __RPC__in LPGUID lpMode);
|
| 297 |
+
|
| 298 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetProcAmpRange)
|
| 299 |
+
HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )(
|
| 300 |
+
__RPC__in IMFVideoProcessor * This,
|
| 301 |
+
DWORD dwProperty,
|
| 302 |
+
/* [out] */ __RPC__out DXVA2_ValueRange *pPropRange);
|
| 303 |
+
|
| 304 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetProcAmpValues)
|
| 305 |
+
HRESULT ( STDMETHODCALLTYPE *GetProcAmpValues )(
|
| 306 |
+
__RPC__in IMFVideoProcessor * This,
|
| 307 |
+
DWORD dwFlags,
|
| 308 |
+
/* [out] */ __RPC__out DXVA2_ProcAmpValues *Values);
|
| 309 |
+
|
| 310 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, SetProcAmpValues)
|
| 311 |
+
HRESULT ( STDMETHODCALLTYPE *SetProcAmpValues )(
|
| 312 |
+
__RPC__in IMFVideoProcessor * This,
|
| 313 |
+
DWORD dwFlags,
|
| 314 |
+
/* [in] */ __RPC__in DXVA2_ProcAmpValues *pValues);
|
| 315 |
+
|
| 316 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetFilteringRange)
|
| 317 |
+
HRESULT ( STDMETHODCALLTYPE *GetFilteringRange )(
|
| 318 |
+
__RPC__in IMFVideoProcessor * This,
|
| 319 |
+
DWORD dwProperty,
|
| 320 |
+
/* [out] */ __RPC__out DXVA2_ValueRange *pPropRange);
|
| 321 |
+
|
| 322 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetFilteringValue)
|
| 323 |
+
HRESULT ( STDMETHODCALLTYPE *GetFilteringValue )(
|
| 324 |
+
__RPC__in IMFVideoProcessor * This,
|
| 325 |
+
DWORD dwProperty,
|
| 326 |
+
/* [out] */ __RPC__out DXVA2_Fixed32 *pValue);
|
| 327 |
+
|
| 328 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, SetFilteringValue)
|
| 329 |
+
HRESULT ( STDMETHODCALLTYPE *SetFilteringValue )(
|
| 330 |
+
__RPC__in IMFVideoProcessor * This,
|
| 331 |
+
DWORD dwProperty,
|
| 332 |
+
/* [in] */ __RPC__in DXVA2_Fixed32 *pValue);
|
| 333 |
+
|
| 334 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, GetBackgroundColor)
|
| 335 |
+
HRESULT ( STDMETHODCALLTYPE *GetBackgroundColor )(
|
| 336 |
+
__RPC__in IMFVideoProcessor * This,
|
| 337 |
+
/* [out] */ __RPC__out COLORREF *lpClrBkg);
|
| 338 |
+
|
| 339 |
+
DECLSPEC_XFGVIRT(IMFVideoProcessor, SetBackgroundColor)
|
| 340 |
+
HRESULT ( STDMETHODCALLTYPE *SetBackgroundColor )(
|
| 341 |
+
__RPC__in IMFVideoProcessor * This,
|
| 342 |
+
COLORREF ClrBkg);
|
| 343 |
+
|
| 344 |
+
END_INTERFACE
|
| 345 |
+
} IMFVideoProcessorVtbl;
|
| 346 |
+
|
| 347 |
+
interface IMFVideoProcessor
|
| 348 |
+
{
|
| 349 |
+
CONST_VTBL struct IMFVideoProcessorVtbl *lpVtbl;
|
| 350 |
+
};
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
#ifdef COBJMACROS
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
#define IMFVideoProcessor_QueryInterface(This,riid,ppvObject) \
|
| 358 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 359 |
+
|
| 360 |
+
#define IMFVideoProcessor_AddRef(This) \
|
| 361 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 362 |
+
|
| 363 |
+
#define IMFVideoProcessor_Release(This) \
|
| 364 |
+
( (This)->lpVtbl -> Release(This) )
|
| 365 |
+
|
| 366 |
+
|
| 367 |
+
#define IMFVideoProcessor_GetAvailableVideoProcessorModes(This,lpdwNumProcessingModes,ppVideoProcessingModes) \
|
| 368 |
+
( (This)->lpVtbl -> GetAvailableVideoProcessorModes(This,lpdwNumProcessingModes,ppVideoProcessingModes) )
|
| 369 |
+
|
| 370 |
+
#define IMFVideoProcessor_GetVideoProcessorCaps(This,lpVideoProcessorMode,lpVideoProcessorCaps) \
|
| 371 |
+
( (This)->lpVtbl -> GetVideoProcessorCaps(This,lpVideoProcessorMode,lpVideoProcessorCaps) )
|
| 372 |
+
|
| 373 |
+
#define IMFVideoProcessor_GetVideoProcessorMode(This,lpMode) \
|
| 374 |
+
( (This)->lpVtbl -> GetVideoProcessorMode(This,lpMode) )
|
| 375 |
+
|
| 376 |
+
#define IMFVideoProcessor_SetVideoProcessorMode(This,lpMode) \
|
| 377 |
+
( (This)->lpVtbl -> SetVideoProcessorMode(This,lpMode) )
|
| 378 |
+
|
| 379 |
+
#define IMFVideoProcessor_GetProcAmpRange(This,dwProperty,pPropRange) \
|
| 380 |
+
( (This)->lpVtbl -> GetProcAmpRange(This,dwProperty,pPropRange) )
|
| 381 |
+
|
| 382 |
+
#define IMFVideoProcessor_GetProcAmpValues(This,dwFlags,Values) \
|
| 383 |
+
( (This)->lpVtbl -> GetProcAmpValues(This,dwFlags,Values) )
|
| 384 |
+
|
| 385 |
+
#define IMFVideoProcessor_SetProcAmpValues(This,dwFlags,pValues) \
|
| 386 |
+
( (This)->lpVtbl -> SetProcAmpValues(This,dwFlags,pValues) )
|
| 387 |
+
|
| 388 |
+
#define IMFVideoProcessor_GetFilteringRange(This,dwProperty,pPropRange) \
|
| 389 |
+
( (This)->lpVtbl -> GetFilteringRange(This,dwProperty,pPropRange) )
|
| 390 |
+
|
| 391 |
+
#define IMFVideoProcessor_GetFilteringValue(This,dwProperty,pValue) \
|
| 392 |
+
( (This)->lpVtbl -> GetFilteringValue(This,dwProperty,pValue) )
|
| 393 |
+
|
| 394 |
+
#define IMFVideoProcessor_SetFilteringValue(This,dwProperty,pValue) \
|
| 395 |
+
( (This)->lpVtbl -> SetFilteringValue(This,dwProperty,pValue) )
|
| 396 |
+
|
| 397 |
+
#define IMFVideoProcessor_GetBackgroundColor(This,lpClrBkg) \
|
| 398 |
+
( (This)->lpVtbl -> GetBackgroundColor(This,lpClrBkg) )
|
| 399 |
+
|
| 400 |
+
#define IMFVideoProcessor_SetBackgroundColor(This,ClrBkg) \
|
| 401 |
+
( (This)->lpVtbl -> SetBackgroundColor(This,ClrBkg) )
|
| 402 |
+
|
| 403 |
+
#endif /* COBJMACROS */
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
#endif /* C style interface */
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
#endif /* __IMFVideoProcessor_INTERFACE_DEFINED__ */
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
/* interface __MIDL_itf_evr9_0000_0002 */
|
| 415 |
+
/* [local] */
|
| 416 |
+
|
| 417 |
+
typedef struct MFVideoAlphaBitmapParams
|
| 418 |
+
{
|
| 419 |
+
DWORD dwFlags;
|
| 420 |
+
COLORREF clrSrcKey;
|
| 421 |
+
RECT rcSrc;
|
| 422 |
+
MFVideoNormalizedRect nrcDest;
|
| 423 |
+
FLOAT fAlpha;
|
| 424 |
+
DWORD dwFilterMode;
|
| 425 |
+
} MFVideoAlphaBitmapParams;
|
| 426 |
+
|
| 427 |
+
typedef struct MFVideoAlphaBitmap
|
| 428 |
+
{
|
| 429 |
+
BOOL GetBitmapFromDC;
|
| 430 |
+
union
|
| 431 |
+
{
|
| 432 |
+
HDC hdc;
|
| 433 |
+
IDirect3DSurface9 *pDDS;
|
| 434 |
+
} bitmap;
|
| 435 |
+
MFVideoAlphaBitmapParams params;
|
| 436 |
+
} MFVideoAlphaBitmap;
|
| 437 |
+
|
| 438 |
+
typedef /* [public] */
|
| 439 |
+
enum __MIDL___MIDL_itf_evr9_0000_0002_0002
|
| 440 |
+
{
|
| 441 |
+
MFVideoAlphaBitmap_EntireDDS = 0x1,
|
| 442 |
+
MFVideoAlphaBitmap_SrcColorKey = 0x2,
|
| 443 |
+
MFVideoAlphaBitmap_SrcRect = 0x4,
|
| 444 |
+
MFVideoAlphaBitmap_DestRect = 0x8,
|
| 445 |
+
MFVideoAlphaBitmap_FilterMode = 0x10,
|
| 446 |
+
MFVideoAlphaBitmap_Alpha = 0x20,
|
| 447 |
+
MFVideoAlphaBitmap_BitMask = 0x3f
|
| 448 |
+
} MFVideoAlphaBitmapFlags;
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0002_v0_0_c_ifspec;
|
| 453 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0002_v0_0_s_ifspec;
|
| 454 |
+
|
| 455 |
+
#ifndef __IMFVideoMixerBitmap_INTERFACE_DEFINED__
|
| 456 |
+
#define __IMFVideoMixerBitmap_INTERFACE_DEFINED__
|
| 457 |
+
|
| 458 |
+
/* interface IMFVideoMixerBitmap */
|
| 459 |
+
/* [local][helpstring][uuid][object] */
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
EXTERN_C const IID IID_IMFVideoMixerBitmap;
|
| 463 |
+
|
| 464 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 465 |
+
|
| 466 |
+
MIDL_INTERFACE("814C7B20-0FDB-4eec-AF8F-F957C8F69EDC")
|
| 467 |
+
IMFVideoMixerBitmap : public IUnknown
|
| 468 |
+
{
|
| 469 |
+
public:
|
| 470 |
+
virtual HRESULT STDMETHODCALLTYPE SetAlphaBitmap(
|
| 471 |
+
/* [in] */ const MFVideoAlphaBitmap *pBmpParms) = 0;
|
| 472 |
+
|
| 473 |
+
virtual HRESULT STDMETHODCALLTYPE ClearAlphaBitmap( void) = 0;
|
| 474 |
+
|
| 475 |
+
virtual HRESULT STDMETHODCALLTYPE UpdateAlphaBitmapParameters(
|
| 476 |
+
/* [in] */ const MFVideoAlphaBitmapParams *pBmpParms) = 0;
|
| 477 |
+
|
| 478 |
+
virtual HRESULT STDMETHODCALLTYPE GetAlphaBitmapParameters(
|
| 479 |
+
/* [annotation][out] */
|
| 480 |
+
_Out_ MFVideoAlphaBitmapParams *pBmpParms) = 0;
|
| 481 |
+
|
| 482 |
+
};
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
#else /* C style interface */
|
| 486 |
+
|
| 487 |
+
typedef struct IMFVideoMixerBitmapVtbl
|
| 488 |
+
{
|
| 489 |
+
BEGIN_INTERFACE
|
| 490 |
+
|
| 491 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 492 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 493 |
+
IMFVideoMixerBitmap * This,
|
| 494 |
+
/* [in] */ REFIID riid,
|
| 495 |
+
/* [annotation][iid_is][out] */
|
| 496 |
+
_COM_Outptr_ void **ppvObject);
|
| 497 |
+
|
| 498 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 499 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 500 |
+
IMFVideoMixerBitmap * This);
|
| 501 |
+
|
| 502 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 503 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 504 |
+
IMFVideoMixerBitmap * This);
|
| 505 |
+
|
| 506 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, SetAlphaBitmap)
|
| 507 |
+
HRESULT ( STDMETHODCALLTYPE *SetAlphaBitmap )(
|
| 508 |
+
IMFVideoMixerBitmap * This,
|
| 509 |
+
/* [in] */ const MFVideoAlphaBitmap *pBmpParms);
|
| 510 |
+
|
| 511 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, ClearAlphaBitmap)
|
| 512 |
+
HRESULT ( STDMETHODCALLTYPE *ClearAlphaBitmap )(
|
| 513 |
+
IMFVideoMixerBitmap * This);
|
| 514 |
+
|
| 515 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, UpdateAlphaBitmapParameters)
|
| 516 |
+
HRESULT ( STDMETHODCALLTYPE *UpdateAlphaBitmapParameters )(
|
| 517 |
+
IMFVideoMixerBitmap * This,
|
| 518 |
+
/* [in] */ const MFVideoAlphaBitmapParams *pBmpParms);
|
| 519 |
+
|
| 520 |
+
DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, GetAlphaBitmapParameters)
|
| 521 |
+
HRESULT ( STDMETHODCALLTYPE *GetAlphaBitmapParameters )(
|
| 522 |
+
IMFVideoMixerBitmap * This,
|
| 523 |
+
/* [annotation][out] */
|
| 524 |
+
_Out_ MFVideoAlphaBitmapParams *pBmpParms);
|
| 525 |
+
|
| 526 |
+
END_INTERFACE
|
| 527 |
+
} IMFVideoMixerBitmapVtbl;
|
| 528 |
+
|
| 529 |
+
interface IMFVideoMixerBitmap
|
| 530 |
+
{
|
| 531 |
+
CONST_VTBL struct IMFVideoMixerBitmapVtbl *lpVtbl;
|
| 532 |
+
};
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
#ifdef COBJMACROS
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
#define IMFVideoMixerBitmap_QueryInterface(This,riid,ppvObject) \
|
| 540 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 541 |
+
|
| 542 |
+
#define IMFVideoMixerBitmap_AddRef(This) \
|
| 543 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 544 |
+
|
| 545 |
+
#define IMFVideoMixerBitmap_Release(This) \
|
| 546 |
+
( (This)->lpVtbl -> Release(This) )
|
| 547 |
+
|
| 548 |
+
|
| 549 |
+
#define IMFVideoMixerBitmap_SetAlphaBitmap(This,pBmpParms) \
|
| 550 |
+
( (This)->lpVtbl -> SetAlphaBitmap(This,pBmpParms) )
|
| 551 |
+
|
| 552 |
+
#define IMFVideoMixerBitmap_ClearAlphaBitmap(This) \
|
| 553 |
+
( (This)->lpVtbl -> ClearAlphaBitmap(This) )
|
| 554 |
+
|
| 555 |
+
#define IMFVideoMixerBitmap_UpdateAlphaBitmapParameters(This,pBmpParms) \
|
| 556 |
+
( (This)->lpVtbl -> UpdateAlphaBitmapParameters(This,pBmpParms) )
|
| 557 |
+
|
| 558 |
+
#define IMFVideoMixerBitmap_GetAlphaBitmapParameters(This,pBmpParms) \
|
| 559 |
+
( (This)->lpVtbl -> GetAlphaBitmapParameters(This,pBmpParms) )
|
| 560 |
+
|
| 561 |
+
#endif /* COBJMACROS */
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
#endif /* C style interface */
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
#endif /* __IMFVideoMixerBitmap_INTERFACE_DEFINED__ */
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
/* interface __MIDL_itf_evr9_0000_0003 */
|
| 573 |
+
/* [local] */
|
| 574 |
+
|
| 575 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 576 |
+
#pragma endregion
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0003_v0_0_c_ifspec;
|
| 580 |
+
extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0003_v0_0_s_ifspec;
|
| 581 |
+
|
| 582 |
+
/* Additional Prototypes for ALL interfaces */
|
| 583 |
+
|
| 584 |
+
/* end of Additional Prototypes */
|
| 585 |
+
|
| 586 |
+
#ifdef __cplusplus
|
| 587 |
+
}
|
| 588 |
+
#endif
|
| 589 |
+
|
| 590 |
+
#endif
|
| 591 |
+
|
| 592 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/expandedresources.h
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//
|
| 2 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
//
|
| 4 |
+
|
| 5 |
+
//
|
| 6 |
+
// API Set Contract:
|
| 7 |
+
//
|
| 8 |
+
// api-ms-win-gaming-expandedresources-l1-1-*
|
| 9 |
+
//
|
| 10 |
+
// Abstract:
|
| 11 |
+
//
|
| 12 |
+
// This header file provides API function signatures for expanded resources / GameMode apps.
|
| 13 |
+
//
|
| 14 |
+
|
| 15 |
+
#ifdef MSC_VER
|
| 16 |
+
#pragma once
|
| 17 |
+
#endif
|
| 18 |
+
|
| 19 |
+
#ifndef _APISET_EXPANDEDRESOURCES_
|
| 20 |
+
#define _APISET_EXPANDEDRESOURCES_
|
| 21 |
+
|
| 22 |
+
#include <apiset.h>
|
| 23 |
+
#include <apisetcconv.h>
|
| 24 |
+
#ifdef _CONTRACT_GEN
|
| 25 |
+
#include <nt.h>
|
| 26 |
+
#include <ntrtl.h>
|
| 27 |
+
#include <nturtl.h>
|
| 28 |
+
#include <windows.h>
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
#if defined(__cplusplus)
|
| 32 |
+
extern "C" {
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
HRESULT
|
| 36 |
+
WINAPI
|
| 37 |
+
HasExpandedResources(
|
| 38 |
+
_Out_ BOOL* hasExpandedResources
|
| 39 |
+
);
|
| 40 |
+
|
| 41 |
+
HRESULT
|
| 42 |
+
WINAPI
|
| 43 |
+
GetExpandedResourceExclusiveCpuCount(
|
| 44 |
+
_Out_ ULONG* exclusiveCpuCount
|
| 45 |
+
);
|
| 46 |
+
|
| 47 |
+
HRESULT
|
| 48 |
+
WINAPI
|
| 49 |
+
ReleaseExclusiveCpuSets(
|
| 50 |
+
);
|
| 51 |
+
|
| 52 |
+
#if defined(__cplusplus)
|
| 53 |
+
} // end extern "C"
|
| 54 |
+
#endif // defined(__cplusplus)
|
| 55 |
+
|
| 56 |
+
#endif // _APISET_EXPANDEDRESOURCES_
|
| 57 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fci.h
ADDED
|
@@ -0,0 +1,483 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*** fci_int.h - File Compression Interface definitions
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation 1993-1994
|
| 4 |
+
* All Rights Reserved.
|
| 5 |
+
*
|
| 6 |
+
* Author:
|
| 7 |
+
* Chuck Strouss
|
| 8 |
+
*
|
| 9 |
+
* History:
|
| 10 |
+
* 09-Jan-1994 chuckst Contents moved to bfol.h, this file is a
|
| 11 |
+
* placeholder for the new 'higher-level' fci
|
| 12 |
+
* 14-Feb-1994 bens Cleaned up some comments.
|
| 13 |
+
* 09-Mar-1994 bens Added error codes (moved from buildcab.h);
|
| 14 |
+
* Added RESERVE control
|
| 15 |
+
* 17-Mar-1994 bens Specify structure packing explicitly
|
| 16 |
+
* 21-Mar-1994 bens Cleaned up names
|
| 17 |
+
* 22-Mar-1994 bens Documented error cods
|
| 18 |
+
* 29-Mar-1994 bens Add FCIFlushFolder, renamed FCIFlushCabinet
|
| 19 |
+
* 18-Apr-1994 bens Changed CDECL to DIAMONDAPI
|
| 20 |
+
* 18-May-1994 bens Add ccab.fFailOnIncompressible field for
|
| 21 |
+
* Chicago M6 hack.
|
| 22 |
+
* 11-Nov-2005 kinshu SAL annotation
|
| 23 |
+
*/
|
| 24 |
+
|
| 25 |
+
#include <fdi_fci_types.h>
|
| 26 |
+
|
| 27 |
+
#ifndef INCLUDED_FCI
|
| 28 |
+
#define INCLUDED_FCI 1
|
| 29 |
+
|
| 30 |
+
#pragma region Desktop Family or OneCore Family
|
| 31 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 32 |
+
|
| 33 |
+
#include <specstrings.h>
|
| 34 |
+
typedef _Null_terminated_ char* LPSTR;
|
| 35 |
+
#include <basetsd.h>
|
| 36 |
+
|
| 37 |
+
#ifdef __cplusplus
|
| 38 |
+
extern "C" { /* Assume C declarations for C++ */
|
| 39 |
+
#endif /* __cplusplus */
|
| 40 |
+
|
| 41 |
+
//** Specify structure packing explicitly for clients of FCI
|
| 42 |
+
|
| 43 |
+
#ifndef _WIN64
|
| 44 |
+
#include <pshpack4.h>
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
/*** FCIERROR - Error codes returned in erf.erfOper field
|
| 49 |
+
*
|
| 50 |
+
*/
|
| 51 |
+
typedef enum {
|
| 52 |
+
FCIERR_NONE, // No error
|
| 53 |
+
|
| 54 |
+
FCIERR_OPEN_SRC, // Failure opening file to be stored in cabinet
|
| 55 |
+
// erf.erfTyp has C run-time *errno* value
|
| 56 |
+
|
| 57 |
+
FCIERR_READ_SRC, // Failure reading file to be stored in cabinet
|
| 58 |
+
// erf.erfTyp has C run-time *errno* value
|
| 59 |
+
|
| 60 |
+
FCIERR_ALLOC_FAIL, // Out of memory in FCI
|
| 61 |
+
|
| 62 |
+
FCIERR_TEMP_FILE, // Could not create a temporary file
|
| 63 |
+
// erf.erfTyp has C run-time *errno* value
|
| 64 |
+
|
| 65 |
+
FCIERR_BAD_COMPR_TYPE, // Unknown compression type
|
| 66 |
+
|
| 67 |
+
FCIERR_CAB_FILE, // Could not create cabinet file
|
| 68 |
+
// erf.erfTyp has C run-time *errno* value
|
| 69 |
+
|
| 70 |
+
FCIERR_USER_ABORT, // Client requested abort
|
| 71 |
+
|
| 72 |
+
FCIERR_MCI_FAIL, // Failure compressing data
|
| 73 |
+
|
| 74 |
+
FCIERR_CAB_FORMAT_LIMIT // Data-size or file-count exceeded CAB format limits
|
| 75 |
+
// i.e. Total-bytes (uncompressed) in a CAB-folder exceeded 0x7FFF8000 (~ 2GB)
|
| 76 |
+
// or, CAB size (compressed) exceeded 0x7FFFFFFF
|
| 77 |
+
// or, File-count in CAB exceeded 0xFFFF
|
| 78 |
+
|
| 79 |
+
} FCIERROR;
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
/*
|
| 83 |
+
* FAT file attribute flag used by FCI/FDI to indicate that
|
| 84 |
+
* the filename in the CAB is a UTF string
|
| 85 |
+
*/
|
| 86 |
+
#ifndef _A_NAME_IS_UTF
|
| 87 |
+
#define _A_NAME_IS_UTF 0x80
|
| 88 |
+
#endif
|
| 89 |
+
|
| 90 |
+
/*
|
| 91 |
+
* FAT file attribute flag used by FCI/FDI to indicate that
|
| 92 |
+
* the file should be executed after extraction
|
| 93 |
+
*/
|
| 94 |
+
#ifndef _A_EXEC
|
| 95 |
+
#define _A_EXEC 0x40
|
| 96 |
+
#endif
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
/*** HFCI - Handle to an FCI Context
|
| 100 |
+
*
|
| 101 |
+
*/
|
| 102 |
+
typedef void * HFCI;
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
/*** CCAB - Current Cabinet
|
| 106 |
+
*
|
| 107 |
+
* This structure is used for passing in the cabinet parameters to FCI,
|
| 108 |
+
* and is passed back on certain FCI callbacks to provide cabinet
|
| 109 |
+
* information to the client.
|
| 110 |
+
*/
|
| 111 |
+
typedef struct {
|
| 112 |
+
// longs first
|
| 113 |
+
ULONG cb; // size available for cabinet on this media
|
| 114 |
+
ULONG cbFolderThresh; // Thresshold for forcing a new Folder
|
| 115 |
+
|
| 116 |
+
// then ints
|
| 117 |
+
UINT cbReserveCFHeader; // Space to reserve in CFHEADER
|
| 118 |
+
UINT cbReserveCFFolder; // Space to reserve in CFFOLDER
|
| 119 |
+
UINT cbReserveCFData; // Space to reserve in CFDATA
|
| 120 |
+
int iCab; // sequential numbers for cabinets
|
| 121 |
+
int iDisk; // Disk number
|
| 122 |
+
#ifndef REMOVE_CHICAGO_M6_HACK
|
| 123 |
+
int fFailOnIncompressible; // TRUE => Fail if a block is incompressible
|
| 124 |
+
#endif
|
| 125 |
+
|
| 126 |
+
// then shorts
|
| 127 |
+
USHORT setID; // Cabinet set ID
|
| 128 |
+
|
| 129 |
+
// then chars
|
| 130 |
+
char szDisk[CB_MAX_DISK_NAME]; // current disk name
|
| 131 |
+
char szCab[CB_MAX_CABINET_NAME]; // current cabinet name
|
| 132 |
+
char szCabPath[CB_MAX_CAB_PATH]; // path for creating cabinet
|
| 133 |
+
} CCAB; /* ccab */
|
| 134 |
+
typedef CCAB *PCCAB; /* pccab */
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
/*** FNALLOC - Memory Allocation
|
| 138 |
+
* FNFREE - Memory Free
|
| 139 |
+
*
|
| 140 |
+
* These are modeled after the C run-time routines malloc() and free()
|
| 141 |
+
* (16-bit clients please note -- the size is a ULONG, so you may need
|
| 142 |
+
* to write a wrapper routine for halloc!). FDI expects error
|
| 143 |
+
* handling to be identical to these C run-time routines.
|
| 144 |
+
*
|
| 145 |
+
* As long as you faithfully copy the semantics of malloc() and free(),
|
| 146 |
+
* you can supply any functions you like!
|
| 147 |
+
*
|
| 148 |
+
* WARNING: You should never assume anything about the sequence of
|
| 149 |
+
* PFNALLOC and PFNFREE calls -- incremental releases of
|
| 150 |
+
* Diamond/FDI may have radically different numbers of
|
| 151 |
+
* PFNALLOC calls and allocation sizes!
|
| 152 |
+
*/
|
| 153 |
+
//** Memory functions for FCI
|
| 154 |
+
typedef void HUGE * (FAR DIAMONDAPI *PFNFCIALLOC)(ULONG cb); /* pfna */
|
| 155 |
+
#define FNFCIALLOC(fn) void HUGE * FAR DIAMONDAPI fn(ULONG cb)
|
| 156 |
+
|
| 157 |
+
typedef void (FAR DIAMONDAPI *PFNFCIFREE)(void HUGE *memory); /* pfnf */
|
| 158 |
+
#define FNFCIFREE(fn) void FAR DIAMONDAPI fn(void HUGE *memory)
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
//** File I/O functions for FCI
|
| 162 |
+
typedef INT_PTR (FAR DIAMONDAPI *PFNFCIOPEN) (_In_ LPSTR pszFile, int oflag, int pmode, int FAR *err, void FAR *pv);
|
| 163 |
+
typedef UINT (FAR DIAMONDAPI *PFNFCIREAD) (INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv);
|
| 164 |
+
typedef UINT (FAR DIAMONDAPI *PFNFCIWRITE)(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv);
|
| 165 |
+
typedef int (FAR DIAMONDAPI *PFNFCICLOSE)(INT_PTR hf, int FAR *err, void FAR *pv);
|
| 166 |
+
typedef long (FAR DIAMONDAPI *PFNFCISEEK) (INT_PTR hf, long dist, int seektype, int FAR *err, void FAR *pv);
|
| 167 |
+
typedef int (FAR DIAMONDAPI *PFNFCIDELETE) (_In_ LPSTR pszFile, int FAR *err, void FAR *pv);
|
| 168 |
+
|
| 169 |
+
#define FNFCIOPEN(fn) INT_PTR FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int oflag, int pmode, int FAR *err, void FAR *pv)
|
| 170 |
+
#define FNFCIREAD(fn) UINT FAR DIAMONDAPI fn(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv)
|
| 171 |
+
#define FNFCIWRITE(fn) UINT FAR DIAMONDAPI fn(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv)
|
| 172 |
+
#define FNFCICLOSE(fn) int FAR DIAMONDAPI fn(INT_PTR hf, int FAR *err, void FAR *pv)
|
| 173 |
+
#define FNFCISEEK(fn) long FAR DIAMONDAPI fn(INT_PTR hf, long dist, int seektype, int FAR *err, void FAR *pv)
|
| 174 |
+
#define FNFCIDELETE(fn) int FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int FAR *err, void FAR *pv)
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
/*** FNFCIGETNEXTCABINET - Callback used to request new cabinet info
|
| 178 |
+
*
|
| 179 |
+
* Entry:
|
| 180 |
+
* pccab - Points to copy of old ccab structure to modify
|
| 181 |
+
* cbPrevCab - Estimate of size of previous cabinet
|
| 182 |
+
* pv - Has the caller's context pointer
|
| 183 |
+
*
|
| 184 |
+
* Exit-Success:
|
| 185 |
+
* returns TRUE;
|
| 186 |
+
*
|
| 187 |
+
* Exit-Failure:
|
| 188 |
+
* returns FALSE;
|
| 189 |
+
*/
|
| 190 |
+
typedef BOOL (DIAMONDAPI *PFNFCIGETNEXTCABINET)(PCCAB pccab,
|
| 191 |
+
ULONG cbPrevCab,
|
| 192 |
+
void FAR *pv); /* pfnfcignc */
|
| 193 |
+
|
| 194 |
+
#define FNFCIGETNEXTCABINET(fn) BOOL DIAMONDAPI fn(PCCAB pccab, \
|
| 195 |
+
ULONG cbPrevCab, \
|
| 196 |
+
void FAR *pv)
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
/*** FNFCIFILEPLACED - Notify FCI client that file was placed
|
| 200 |
+
*
|
| 201 |
+
* Entry:
|
| 202 |
+
* pccab - cabinet structure to fill in, with copy of previous one
|
| 203 |
+
* pszFile - name of file, from cabinet
|
| 204 |
+
* cbFile - length of file
|
| 205 |
+
* fContinuation - true if this is a later segment of a continued file
|
| 206 |
+
* pv - the context of the client
|
| 207 |
+
*
|
| 208 |
+
* Exit-Success:
|
| 209 |
+
* return value anything but -1
|
| 210 |
+
*
|
| 211 |
+
* Exit-Failure:
|
| 212 |
+
* return value -1 means to abort
|
| 213 |
+
*/
|
| 214 |
+
typedef int (DIAMONDAPI *PFNFCIFILEPLACED)(PCCAB pccab,
|
| 215 |
+
_In_ LPSTR pszFile,
|
| 216 |
+
long cbFile,
|
| 217 |
+
BOOL fContinuation,
|
| 218 |
+
void FAR *pv); /* pfnfcifp */
|
| 219 |
+
|
| 220 |
+
#define FNFCIFILEPLACED(fn) int DIAMONDAPI fn(PCCAB pccab, \
|
| 221 |
+
_In_ LPSTR pszFile, \
|
| 222 |
+
long cbFile, \
|
| 223 |
+
BOOL fContinuation, \
|
| 224 |
+
void FAR *pv)
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
/*** FNCDIGETOPENINFO - Open source file, get date/time/attribs
|
| 228 |
+
*
|
| 229 |
+
* Entry:
|
| 230 |
+
* pszName -- complete path to filename
|
| 231 |
+
* pdate -- location to return FAT-style date code
|
| 232 |
+
* ptime -- location to return FAT-style time code
|
| 233 |
+
* pattribs -- location to return FAT-style attributes
|
| 234 |
+
* pv -- client's context
|
| 235 |
+
*
|
| 236 |
+
* Exit-Success:
|
| 237 |
+
* Return value is file handle of open file to read
|
| 238 |
+
*
|
| 239 |
+
* Exit-Failure:
|
| 240 |
+
* Return value is -1
|
| 241 |
+
*/
|
| 242 |
+
typedef INT_PTR (DIAMONDAPI *PFNFCIGETOPENINFO)(_In_ LPSTR pszName,
|
| 243 |
+
USHORT *pdate,
|
| 244 |
+
USHORT *ptime,
|
| 245 |
+
USHORT *pattribs,
|
| 246 |
+
int FAR *err,
|
| 247 |
+
void FAR *pv); /* pfnfcigoi */
|
| 248 |
+
|
| 249 |
+
#define FNFCIGETOPENINFO(fn) INT_PTR DIAMONDAPI fn(_In_ LPSTR pszName, \
|
| 250 |
+
USHORT *pdate, \
|
| 251 |
+
USHORT *ptime, \
|
| 252 |
+
USHORT *pattribs, \
|
| 253 |
+
int FAR *err, \
|
| 254 |
+
void FAR *pv)
|
| 255 |
+
|
| 256 |
+
/*** FNFCISTATUS - Status/Cabinet Size callback
|
| 257 |
+
*
|
| 258 |
+
* Entry:
|
| 259 |
+
* typeStatus == statusFile if compressing a block into a folder
|
| 260 |
+
* cb1 = Size of compressed block
|
| 261 |
+
* cb2 = Size of uncompressed block
|
| 262 |
+
*
|
| 263 |
+
* typeStatus == statusFolder if adding a folder to a cabinet
|
| 264 |
+
* cb1 = Amount of folder copied to cabinet so far
|
| 265 |
+
* cb2 = Total size of folder
|
| 266 |
+
*
|
| 267 |
+
* typeStatus == statusCabinet if writing out a complete cabinet
|
| 268 |
+
* cb1 = Estimated cabinet size that was previously
|
| 269 |
+
* passed to fnfciGetNextCabinet().
|
| 270 |
+
* cb2 = Actual cabinet size
|
| 271 |
+
* NOTE: Return value is desired client size for cabinet
|
| 272 |
+
* file. FCI updates the maximum cabinet size
|
| 273 |
+
* remaining using this value. This allows a client
|
| 274 |
+
* to generate multiple cabinets per disk, and have
|
| 275 |
+
* FCI limit the size correctly -- the client can do
|
| 276 |
+
* cluster size rounding on the cabinet size!
|
| 277 |
+
* The client should either return cb2, or round cb2
|
| 278 |
+
* up to some larger value and return that.
|
| 279 |
+
* Exit-Success:
|
| 280 |
+
* Returns anything other than -1;
|
| 281 |
+
* NOTE: See statusCabinet for special return values!
|
| 282 |
+
*
|
| 283 |
+
* Exit-Failure:
|
| 284 |
+
* Returns -1 to signal that FCI should abort;
|
| 285 |
+
*/
|
| 286 |
+
|
| 287 |
+
#define statusFile 0 // Add File to Folder callback
|
| 288 |
+
#define statusFolder 1 // Add Folder to Cabinet callback
|
| 289 |
+
#define statusCabinet 2 // Write out a completed cabinet callback
|
| 290 |
+
|
| 291 |
+
typedef long (DIAMONDAPI *PFNFCISTATUS)(UINT typeStatus,
|
| 292 |
+
ULONG cb1,
|
| 293 |
+
ULONG cb2,
|
| 294 |
+
void FAR *pv); /* pfnfcis */
|
| 295 |
+
|
| 296 |
+
#define FNFCISTATUS(fn) long DIAMONDAPI fn(UINT typeStatus, \
|
| 297 |
+
ULONG cb1, \
|
| 298 |
+
ULONG cb2, \
|
| 299 |
+
void FAR *pv)
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
/*** FNFCIGETTEMPFILE - Callback, requests temporary file name
|
| 303 |
+
*
|
| 304 |
+
* Entry:
|
| 305 |
+
* pszTempName - Buffer to receive complete tempfile name
|
| 306 |
+
* cbTempName - Size of pszTempName buffer
|
| 307 |
+
*
|
| 308 |
+
* Exit-Success:
|
| 309 |
+
* return TRUE
|
| 310 |
+
*
|
| 311 |
+
* Exit-Failure:
|
| 312 |
+
* return FALSE; could not create tempfile, or buffer too small
|
| 313 |
+
*
|
| 314 |
+
* Note:
|
| 315 |
+
* It is conceivable that this function may return a filename
|
| 316 |
+
* that will already exist by the time it is opened. For this
|
| 317 |
+
* reason, the caller should make several attempts to create
|
| 318 |
+
* temporary files before giving up.
|
| 319 |
+
*/
|
| 320 |
+
typedef BOOL (DIAMONDAPI *PFNFCIGETTEMPFILE)(_Out_writes_bytes_(cbTempName) char *pszTempName,
|
| 321 |
+
_In_range_(<=, 260) int cbTempName,
|
| 322 |
+
void FAR *pv); /* pfnfcigtf */
|
| 323 |
+
|
| 324 |
+
#define FNFCIGETTEMPFILE(fn) BOOL DIAMONDAPI fn(_Out_writes_bytes_(cbTempName) char *pszTempName, \
|
| 325 |
+
_In_range_(<=, 260) int cbTempName, \
|
| 326 |
+
void FAR *pv)
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
/*** FCICreate -- create an FCI context (an open CAB, an open FOL)
|
| 330 |
+
*
|
| 331 |
+
* Entry:
|
| 332 |
+
* perf - structure where we return error codes
|
| 333 |
+
* pfnfcifp - callback to inform caller of eventual dest of files
|
| 334 |
+
* pfna - memory allocation function callback
|
| 335 |
+
* pfnf - memory free function callback
|
| 336 |
+
* pfnfcigtf - temp file name generator callback
|
| 337 |
+
* pccab - pointer to cabinet/disk name & size structure
|
| 338 |
+
*
|
| 339 |
+
* Notes:
|
| 340 |
+
* (1) The alloc/free callbacks must remain valid throughout
|
| 341 |
+
* the life of the context, up to and including the call to
|
| 342 |
+
* FCIDestroy.
|
| 343 |
+
* (2) The perf pointer is stored in the compression context (HCI),
|
| 344 |
+
* and any errors from subsequent FCI calls are stored in the
|
| 345 |
+
* erf that was passed in on *this* call.
|
| 346 |
+
*
|
| 347 |
+
* Exit-Success:
|
| 348 |
+
* Returns non-NULL handle to an FCI context.
|
| 349 |
+
*
|
| 350 |
+
* Exit-Failure:
|
| 351 |
+
* Returns NULL, perf filled in.
|
| 352 |
+
*/
|
| 353 |
+
HFCI DIAMONDAPI FCICreate(_In_ PERF perf,
|
| 354 |
+
__callback PFNFCIFILEPLACED pfnfcifp,
|
| 355 |
+
__callback PFNFCIALLOC pfna,
|
| 356 |
+
__callback PFNFCIFREE pfnf,
|
| 357 |
+
__callback PFNFCIOPEN pfnopen,
|
| 358 |
+
__callback PFNFCIREAD pfnread,
|
| 359 |
+
__callback PFNFCIWRITE pfnwrite,
|
| 360 |
+
__callback PFNFCICLOSE pfnclose,
|
| 361 |
+
__callback PFNFCISEEK pfnseek,
|
| 362 |
+
__callback PFNFCIDELETE pfndelete,
|
| 363 |
+
__callback PFNFCIGETTEMPFILE pfnfcigtf,
|
| 364 |
+
_In_ PCCAB pccab,
|
| 365 |
+
_In_opt_ void FAR *pv
|
| 366 |
+
);
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
/*** FCIAddFile - Add a disk file to a folder/cabinet
|
| 370 |
+
*
|
| 371 |
+
* Entry:
|
| 372 |
+
* hfci - FCI context handle
|
| 373 |
+
* pszSourceFile - Name of file to add to folder
|
| 374 |
+
* pszFileName - Name to store into folder/cabinet
|
| 375 |
+
* fExecute - Flag indicating execute on extract
|
| 376 |
+
* pfn_progress - Progress callback
|
| 377 |
+
* pfnfcignc - GetNextCabinet callback
|
| 378 |
+
* pfnfcis - Status callback
|
| 379 |
+
* pfnfcigoi - OpenInfo callback
|
| 380 |
+
* typeCompress - Type of compression to use for this file
|
| 381 |
+
* pv - pointer to caller's internal context
|
| 382 |
+
*
|
| 383 |
+
* Exit-Success:
|
| 384 |
+
* returns TRUE
|
| 385 |
+
*
|
| 386 |
+
* Exit-Failure:
|
| 387 |
+
* returns FALSE, error filled in
|
| 388 |
+
*
|
| 389 |
+
* This is the main function used to add file(s) to a cabinet
|
| 390 |
+
* or series of cabinets. If the current file causes the current
|
| 391 |
+
* folder/cabinet to overflow the disk image currently being built,
|
| 392 |
+
* the cabinet will be terminated, and a new cabinet/disk name will
|
| 393 |
+
* be prompted for via a callback. The pending folder will be trimmed
|
| 394 |
+
* of the data which has already been generated in the finished cabinet.
|
| 395 |
+
*/
|
| 396 |
+
BOOL DIAMONDAPI FCIAddFile(_In_ HFCI hfci,
|
| 397 |
+
_In_ LPSTR pszSourceFile,
|
| 398 |
+
_In_ LPSTR pszFileName,
|
| 399 |
+
BOOL fExecute,
|
| 400 |
+
__callback PFNFCIGETNEXTCABINET pfnfcignc,
|
| 401 |
+
__callback PFNFCISTATUS pfnfcis,
|
| 402 |
+
__callback PFNFCIGETOPENINFO pfnfcigoi,
|
| 403 |
+
TCOMP typeCompress
|
| 404 |
+
);
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
/*** FCIFlushCabinet - Complete the current cabinet under construction
|
| 408 |
+
*
|
| 409 |
+
* This will cause the current cabinet (assuming it is not empty) to
|
| 410 |
+
* be gathered together and written to disk.
|
| 411 |
+
*
|
| 412 |
+
* Entry:
|
| 413 |
+
* hfci - FCI context
|
| 414 |
+
* fGetNextCab - TRUE => Call GetNextCab to get continuation info;
|
| 415 |
+
* FALSE => Don't call GetNextCab unless this cabinet
|
| 416 |
+
* overflows.
|
| 417 |
+
* pfnfcignc - callback function to get continuation cabinets
|
| 418 |
+
* pfnfcis - callback function for progress reporting
|
| 419 |
+
* pv - caller's internal context for callbacks
|
| 420 |
+
*
|
| 421 |
+
* Exit-Success:
|
| 422 |
+
* return code TRUE
|
| 423 |
+
*
|
| 424 |
+
* Exit-Failure:
|
| 425 |
+
* return code FALSE, error structure filled in
|
| 426 |
+
*/
|
| 427 |
+
BOOL DIAMONDAPI FCIFlushCabinet(_In_ HFCI hfci,
|
| 428 |
+
BOOL fGetNextCab,
|
| 429 |
+
__callback PFNFCIGETNEXTCABINET pfnfcignc,
|
| 430 |
+
__callback PFNFCISTATUS pfnfcis
|
| 431 |
+
);
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
/*** FCIFlushFolder - Complete the current folder under construction
|
| 435 |
+
*
|
| 436 |
+
* This will force the termination of the current folder, which may or
|
| 437 |
+
* may not cause one or more cabinet files to be completed.
|
| 438 |
+
*
|
| 439 |
+
* Entry:
|
| 440 |
+
* hfci - FCI context
|
| 441 |
+
* GetNextCab - callback function to get continuation cabinets
|
| 442 |
+
* pfnProgress - callback function for progress reporting
|
| 443 |
+
* pv - caller's internal context for callbacks
|
| 444 |
+
*
|
| 445 |
+
* Exit-Success:
|
| 446 |
+
* return code TRUE
|
| 447 |
+
*
|
| 448 |
+
* Exit-Failure:
|
| 449 |
+
* return code FALSE, error structure filled in
|
| 450 |
+
*/
|
| 451 |
+
BOOL DIAMONDAPI FCIFlushFolder(_In_ HFCI hfci,
|
| 452 |
+
__callback PFNFCIGETNEXTCABINET pfnfcignc,
|
| 453 |
+
__callback PFNFCISTATUS pfnfcis
|
| 454 |
+
);
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
/*** FCIDestroy - Destroy a FCI context and delete temp files
|
| 458 |
+
*
|
| 459 |
+
* Entry:
|
| 460 |
+
* hfci - FCI context
|
| 461 |
+
*
|
| 462 |
+
* Exit-Success:
|
| 463 |
+
* return code TRUE
|
| 464 |
+
*
|
| 465 |
+
* Exit-Failure:
|
| 466 |
+
* return code FALSE, error structure filled in
|
| 467 |
+
*/
|
| 468 |
+
BOOL DIAMONDAPI FCIDestroy (_In_ HFCI hfci);
|
| 469 |
+
|
| 470 |
+
//** Revert to default structure packing
|
| 471 |
+
|
| 472 |
+
#ifndef _WIN64
|
| 473 |
+
#include <poppack.h>
|
| 474 |
+
#endif
|
| 475 |
+
|
| 476 |
+
#ifdef __cplusplus
|
| 477 |
+
}
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*** fdi_int.h - Diamond File Decompression Interface definitions
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation 1993-1997
|
| 4 |
+
* All Rights Reserved.
|
| 5 |
+
*
|
| 6 |
+
* Author:
|
| 7 |
+
* Chuck Strouss, Benjamin W. Slivka
|
| 8 |
+
*
|
| 9 |
+
* History:
|
| 10 |
+
* 30-Nov-1993 chuckst Created
|
| 11 |
+
* 21-Dec-1993 bens Updated with comments from 12/21/93 design review
|
| 12 |
+
* 09-Mar-1994 bens Add new error code
|
| 13 |
+
* 17-Mar-1994 bens Specify structure packing explicitly
|
| 14 |
+
* 21-Mar-1994 bens Spruce up comments
|
| 15 |
+
* 25-Mar-1994 bens Add fdintCABINET_INFO notification
|
| 16 |
+
* 31-Mar-1994 bens Clarify handling of open files when errors occur
|
| 17 |
+
* 01-Apr-1994 bens Add FDIIsCabinet() function.
|
| 18 |
+
* 07-Apr-1994 bens Add Decryption interfaces; remove fdintPROGRESS
|
| 19 |
+
* 11-Apr-1994 bens Add more guidance on how to respond to FDI errors.
|
| 20 |
+
* 13-Apr-1994 bens Add date & time & attribs to fdintCOPY_FILE
|
| 21 |
+
* 18-Apr-1994 bens Changed CDECL to DIAMONDAPI
|
| 22 |
+
* 05-May-1994 bens Clarified error handling (billhu/alanr/migueldc)
|
| 23 |
+
* 11-May-1994 bens Added setId/iCabinet to fdintNEXT_CABINET
|
| 24 |
+
* 07-Jul-1994 bens Support Quantum virtual file -- PLEASE note the
|
| 25 |
+
* comments about PFNOPEN/PFNCLOSE changes, and
|
| 26 |
+
* about reserving memory, if necessary, before
|
| 27 |
+
* calling FDICreate()!
|
| 28 |
+
* 19-Aug-1994 bens Add cpuType parameter to FDICreate().
|
| 29 |
+
* 03-Apr-1995 jeffwe Added chaining indicators to FDICABINETINFO
|
| 30 |
+
* 22-Nov-1996 msliger Backed out fdintNEXT_FOLDER, added iFolder to
|
| 31 |
+
* FDINOTIFICATION for fdintCOPY_FILE calls.
|
| 32 |
+
* 20-Feb-1997 msliger Added fdintENUMERATE message.
|
| 33 |
+
* 11-Nov-2005 kinshu SAL annotation
|
| 34 |
+
*
|
| 35 |
+
*
|
| 36 |
+
* ATTENTION:
|
| 37 |
+
* This is the only documentation on the Diamond File Decompression
|
| 38 |
+
* Interface (FDI). Please read it carefully, as there are some subtle
|
| 39 |
+
* points in FDI that are carefully explained below.
|
| 40 |
+
*
|
| 41 |
+
* Concepts:
|
| 42 |
+
* A *cabinet* file contains one or more *folders*. A folder contains
|
| 43 |
+
* one or more (pieces of) *files*. A folder is by definition a
|
| 44 |
+
* decompression unit, i.e., to extract a file from a folder, all of
|
| 45 |
+
* the data from the start of the folder up through and including the
|
| 46 |
+
* desired file must be read and decompressed.
|
| 47 |
+
*
|
| 48 |
+
* A folder can span one (or more) cabinet boundaries, and by implication
|
| 49 |
+
* a file can also span one (or more) cabinet boundaries. Indeed, more
|
| 50 |
+
* than one file can span a cabinet boundary, since Diamond concatenates
|
| 51 |
+
* files together into a single data stream before compressing (actually,
|
| 52 |
+
* at most one file will span any one cabinet boundary, but Diamond does
|
| 53 |
+
* not know which file this is, since the mapping from uncompressed bytes
|
| 54 |
+
* to compressed bytes is pretty obscure. Also, since Diamond compresses
|
| 55 |
+
* in blocks of 32K (at present), any files with data in a 32K block that
|
| 56 |
+
* spans a cabinet boundary require Diamond to read both cabinet files
|
| 57 |
+
* to get the two halves of the compressed block).
|
| 58 |
+
*
|
| 59 |
+
* Overview:
|
| 60 |
+
* The File Decompression Interface is used to simplify the reading of
|
| 61 |
+
* Diamond cabinet files. A setup program will proceed in a manner very
|
| 62 |
+
* similar to the pseudo code below. An FDI context is created, the
|
| 63 |
+
* setup program calls FDICopy() for each cabinet to be processed. For
|
| 64 |
+
* each file in the cabinet, FDICopy() calls a notification callback
|
| 65 |
+
* routine, asking the setup program if the file should be copied.
|
| 66 |
+
* This call-back approach is great because it allows the cabinet file
|
| 67 |
+
* to be read and decompressed in an optimal manner, and also makes FDI
|
| 68 |
+
* independent of the run-time environment -- FDI makes *no* C run-time
|
| 69 |
+
* calls whatsoever. All memory allocation and file I/O functions are
|
| 70 |
+
* passed into FDI by the client.
|
| 71 |
+
*
|
| 72 |
+
* main(...)
|
| 73 |
+
* {
|
| 74 |
+
* // Read INF file to construct list of desired files.
|
| 75 |
+
* // Ideally, these would be sorted in the same order as the
|
| 76 |
+
* // files appear in the cabinets, so that you can just walk
|
| 77 |
+
* // down the list in response to fdintCOPY_FILE notifications.
|
| 78 |
+
*
|
| 79 |
+
* // Construct list of required cabinets.
|
| 80 |
+
*
|
| 81 |
+
* hfdi = FDICreate(...); // Create FDI context
|
| 82 |
+
* For (cabinet in List of Cabinets) {
|
| 83 |
+
* FDICopy(hfdi,cabinet,fdiNotify,...); // Process each cabinet
|
| 84 |
+
* }
|
| 85 |
+
* FDIDestroy(hfdi);
|
| 86 |
+
* ...
|
| 87 |
+
* }
|
| 88 |
+
*
|
| 89 |
+
* // Notification callback function
|
| 90 |
+
* fdiNotify(fdint,...)
|
| 91 |
+
* {
|
| 92 |
+
* If (User Aborted) // Permit cancellation
|
| 93 |
+
* if (fdint == fdintCLOSE_FILE_INFO)
|
| 94 |
+
* close open file
|
| 95 |
+
* return -1;
|
| 96 |
+
* switch (fdint) {
|
| 97 |
+
* case fdintCOPY_FILE: // File to copy, maybe
|
| 98 |
+
* // Check file against list of desired files
|
| 99 |
+
* if want to copy file
|
| 100 |
+
* open destination file and return handle
|
| 101 |
+
* else
|
| 102 |
+
* return NULL; // Skip file
|
| 103 |
+
* case fdintCLOSE_FILE_INFO:
|
| 104 |
+
* close file
|
| 105 |
+
* set date, time, and attributes
|
| 106 |
+
*
|
| 107 |
+
* case fdintNEXT_CABINET:
|
| 108 |
+
* if not an error callback
|
| 109 |
+
* Tell FDI to use suggested directory name
|
| 110 |
+
* else
|
| 111 |
+
* Tell user what the problem was, and prompt
|
| 112 |
+
* for a new disk and/or path.
|
| 113 |
+
* if user aborts
|
| 114 |
+
* Tell FDI to abort
|
| 115 |
+
* else
|
| 116 |
+
* return to FDI to try another cabinet
|
| 117 |
+
* //NOTE: Be sure to see the (sample) code in EXTRACT.C
|
| 118 |
+
* // for an example of how to do this!
|
| 119 |
+
* default:
|
| 120 |
+
* return 0; // more messages may be defined
|
| 121 |
+
* ...
|
| 122 |
+
* }
|
| 123 |
+
*
|
| 124 |
+
* Error Handling Suggestions:
|
| 125 |
+
* Since you the client have passed in *all* of the functions that
|
| 126 |
+
* FDI uses to interact with the "outside" world, you are in prime
|
| 127 |
+
* position to understand and deal with errors.
|
| 128 |
+
*
|
| 129 |
+
* The general philosophy of FDI is to pass all errors back up to
|
| 130 |
+
* the client. FDI returns fairly generic error codes in the case
|
| 131 |
+
* where one of the callback functions (PFNOPEN, PFNREAD, etc.) fail,
|
| 132 |
+
* since it assumes that the callback function will save enough
|
| 133 |
+
* information in a static/global so that when FDICopy() returns
|
| 134 |
+
* fail, the client can examine this information and report enough
|
| 135 |
+
* detail about the problem that the user can take corrective action.
|
| 136 |
+
*
|
| 137 |
+
* For very specific errors (CORRUPT_CABINET, for example), FDI returns
|
| 138 |
+
* very specific error codes.
|
| 139 |
+
*
|
| 140 |
+
* THE BEST POLICY IS FOR YOUR CALLBACK ROUTINES TO AVOID RETURNING
|
| 141 |
+
* ERRORS TO FDI!
|
| 142 |
+
*
|
| 143 |
+
* Examples:
|
| 144 |
+
* (1) If the disk is getting full, instead of returning an error
|
| 145 |
+
* from your PFNWRITE function, you should -- inside your
|
| 146 |
+
* PFNWRITE function -- put up a dialog telling the user to free
|
| 147 |
+
* some disk space.
|
| 148 |
+
* (2) When you get the fdintNEXT_CABINET notification, you should
|
| 149 |
+
* verify that the cabinet you return is the correct one (call
|
| 150 |
+
* FDIIsCabinet(), and make sure the setID matches the one for
|
| 151 |
+
* the current cabinet specified in the fdintCABINET_INFO, and
|
| 152 |
+
* that the disk number is one greater.
|
| 153 |
+
*
|
| 154 |
+
* NOTE: FDI will continue to call fdintNEXT_CABINET until it
|
| 155 |
+
* gets the cabinet it wants, or until you return -1
|
| 156 |
+
* to abort the FDICopy() call.
|
| 157 |
+
*
|
| 158 |
+
* The documentation below on the FDI error codes provides explicit
|
| 159 |
+
* guidance on how to avoid each error.
|
| 160 |
+
*
|
| 161 |
+
* If you find you must return a failure to FDI from one of your
|
| 162 |
+
* callback functions, then FDICopy() frees all resources it allocated
|
| 163 |
+
* and closes all files. If you can figure out how to overcome the
|
| 164 |
+
* problem, you can call FDICopy() again on the last cabinet, and
|
| 165 |
+
* skip any files that you already copied. But, note that FDI does
|
| 166 |
+
* *not* maintain any state between FDICopy() calls, other than possibly
|
| 167 |
+
* memory allocated for the decompressor.
|
| 168 |
+
*
|
| 169 |
+
* See FDIERROR for details on FDI error codes and recommended actions.
|
| 170 |
+
*
|
| 171 |
+
*
|
| 172 |
+
* Progress Indicator Suggestions:
|
| 173 |
+
* As above, all of the file I/O functions are supplied by you. So,
|
| 174 |
+
* updating a progress indicator is very simple. You keep track of
|
| 175 |
+
* the target files handles you have opened, along with the uncompressed
|
| 176 |
+
* size of the target file. When you see writes to the handle of a
|
| 177 |
+
* target file, you use the write count to update your status!
|
| 178 |
+
* Since this method is available, there is no separate callback from
|
| 179 |
+
* FDI just for progess indication.
|
| 180 |
+
*/
|
| 181 |
+
|
| 182 |
+
#include <fdi_fci_types.h>
|
| 183 |
+
|
| 184 |
+
#include <basetsd.h>
|
| 185 |
+
|
| 186 |
+
#ifndef INCLUDED_FDI
|
| 187 |
+
#define INCLUDED_FDI 1
|
| 188 |
+
|
| 189 |
+
#include <specstrings.h>
|
| 190 |
+
typedef _Null_terminated_ char* LPSTR;
|
| 191 |
+
|
| 192 |
+
#ifdef __cplusplus
|
| 193 |
+
extern "C" { /* Assume C declarations for C++ */
|
| 194 |
+
#endif /* __cplusplus */
|
| 195 |
+
|
| 196 |
+
//** Specify structure packing explicitly for clients of FDI
|
| 197 |
+
|
| 198 |
+
#ifndef _WIN64
|
| 199 |
+
#include <pshpack4.h>
|
| 200 |
+
#endif
|
| 201 |
+
|
| 202 |
+
#pragma region Application Family or OneCore Family
|
| 203 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 204 |
+
|
| 205 |
+
/*** FDIERROR - Error codes returned in erf.erfOper field
|
| 206 |
+
*
|
| 207 |
+
* In general, FDI will only fail if one of the passed in memory or
|
| 208 |
+
* file I/O functions fails. Other errors are pretty unlikely, and are
|
| 209 |
+
* caused by corrupted cabinet files, passing in a file which is not a
|
| 210 |
+
* cabinet file, or cabinet files out of order.
|
| 211 |
+
*
|
| 212 |
+
* Description: Summary of error.
|
| 213 |
+
* Cause: List of possible causes of this error.
|
| 214 |
+
* Response: How client might respond to this error, or avoid it in
|
| 215 |
+
* the first place.
|
| 216 |
+
*/
|
| 217 |
+
typedef enum {
|
| 218 |
+
FDIERROR_NONE,
|
| 219 |
+
// Description: No error
|
| 220 |
+
// Cause: Function was successfull.
|
| 221 |
+
// Response: Keep going!
|
| 222 |
+
|
| 223 |
+
FDIERROR_CABINET_NOT_FOUND,
|
| 224 |
+
// Description: Cabinet not found
|
| 225 |
+
// Cause: Bad file name or path passed to FDICopy(), or returned
|
| 226 |
+
// to fdintNEXT_CABINET.
|
| 227 |
+
// Response: To prevent this error, validate the existence of the
|
| 228 |
+
// the cabinet *before* passing the path to FDI.
|
| 229 |
+
|
| 230 |
+
FDIERROR_NOT_A_CABINET,
|
| 231 |
+
// Description: Cabinet file does not have the correct format
|
| 232 |
+
// Cause: File passed to to FDICopy(), or returned to
|
| 233 |
+
// fdintNEXT_CABINET, is too small to be a cabinet file,
|
| 234 |
+
// or does not have the cabinet signature in its first
|
| 235 |
+
// four bytes.
|
| 236 |
+
// Response: To prevent this error, call FDIIsCabinet() to check a
|
| 237 |
+
// cabinet before calling FDICopy() or returning the
|
| 238 |
+
// cabinet path to fdintNEXT_CABINET.
|
| 239 |
+
|
| 240 |
+
FDIERROR_UNKNOWN_CABINET_VERSION,
|
| 241 |
+
// Description: Cabinet file has an unknown version number.
|
| 242 |
+
// Cause: File passed to to FDICopy(), or returned to
|
| 243 |
+
// fdintNEXT_CABINET, has what looks like a cabinet file
|
| 244 |
+
// header, but the version of the cabinet file format
|
| 245 |
+
// is not one understood by this version of FDI. The
|
| 246 |
+
// erf.erfType field is filled in with the version number
|
| 247 |
+
// found in the cabinet file.
|
| 248 |
+
// Response: To prevent this error, call FDIIsCabinet() to check a
|
| 249 |
+
// cabinet before calling FDICopy() or returning the
|
| 250 |
+
// cabinet path to fdintNEXT_CABINET.
|
| 251 |
+
|
| 252 |
+
FDIERROR_CORRUPT_CABINET,
|
| 253 |
+
// Description: Cabinet file is corrupt
|
| 254 |
+
// Cause: FDI returns this error any time it finds a problem
|
| 255 |
+
// with the logical format of a cabinet file, and any
|
| 256 |
+
// time one of the passed-in file I/O calls fails when
|
| 257 |
+
// operating on a cabinet (PFNOPEN, PFNSEEK, PFNREAD,
|
| 258 |
+
// or PFNCLOSE). The client can distinguish these two
|
| 259 |
+
// cases based upon whether the last file I/O call
|
| 260 |
+
// failed or not.
|
| 261 |
+
// Response: Assuming this is not a real corruption problem in
|
| 262 |
+
// a cabinet file, the file I/O functions could attempt
|
| 263 |
+
// to do retries on failure (for example, if there is a
|
| 264 |
+
// temporary network connection problem). If this does
|
| 265 |
+
// not work, and the file I/O call has to fail, then the
|
| 266 |
+
// FDI client will have to clean up and call the
|
| 267 |
+
// FDICopy() function again.
|
| 268 |
+
|
| 269 |
+
FDIERROR_ALLOC_FAIL,
|
| 270 |
+
// Description: Could not allocate enough memory
|
| 271 |
+
// Cause: FDI tried to allocate memory with the PFNALLOC
|
| 272 |
+
// function, but it failed.
|
| 273 |
+
// Response: If possible, PFNALLOC should take whatever steps
|
| 274 |
+
// are possible to allocate the memory requested. If
|
| 275 |
+
// memory is not immediately available, it might post a
|
| 276 |
+
// dialog asking the user to free memory, for example.
|
| 277 |
+
// Note that the bulk of FDI's memory allocations are
|
| 278 |
+
// made at FDICreate() time and when the first cabinet
|
| 279 |
+
// file is opened during FDICopy().
|
| 280 |
+
|
| 281 |
+
FDIERROR_BAD_COMPR_TYPE,
|
| 282 |
+
// Description: Unknown compression type in a cabinet folder
|
| 283 |
+
// Cause: [Should never happen.] A folder in a cabinet has an
|
| 284 |
+
// unknown compression type. This is probably caused by
|
| 285 |
+
// a mismatch between the version of Diamond used to
|
| 286 |
+
// create the cabinet and the FDI. LIB used to read the
|
| 287 |
+
// cabinet.
|
| 288 |
+
// Response: Abort.
|
| 289 |
+
|
| 290 |
+
FDIERROR_MDI_FAIL,
|
| 291 |
+
// Description: Failure decompressing data from a cabinet file
|
| 292 |
+
// Cause: The decompressor found an error in the data coming
|
| 293 |
+
// from the file cabinet. The cabinet file was corrupted.
|
| 294 |
+
// [11-Apr-1994 bens When checksuming is turned on, this
|
| 295 |
+
// error should never occur.]
|
| 296 |
+
// Response: Probably should abort; only other choice is to cleanup
|
| 297 |
+
// and call FDICopy() again, and hope there was some
|
| 298 |
+
// intermittent data error that will not reoccur.
|
| 299 |
+
|
| 300 |
+
FDIERROR_TARGET_FILE,
|
| 301 |
+
// Description: Failure writing to target file
|
| 302 |
+
// Cause: FDI returns this error any time it gets an error back
|
| 303 |
+
// from one of the passed-in file I/O calls fails when
|
| 304 |
+
// writing to a file being extracted from a cabinet.
|
| 305 |
+
// Response: To avoid or minimize this error, the file I/O functions
|
| 306 |
+
// could attempt to avoid failing. A common cause might
|
| 307 |
+
// be disk full -- in this case, the PFNWRITE function
|
| 308 |
+
// could have a check for free space, and put up a dialog
|
| 309 |
+
// asking the user to free some disk space.
|
| 310 |
+
|
| 311 |
+
FDIERROR_RESERVE_MISMATCH,
|
| 312 |
+
// Description: Cabinets in a set do not have the same RESERVE sizes
|
| 313 |
+
// Cause: [Should never happen]. FDI requires that the sizes of
|
| 314 |
+
// the per-cabinet, per-folder, and per-data block
|
| 315 |
+
// RESERVE sections be consistent across all the cabinet
|
| 316 |
+
// in a set. Diamond will only generate cabinet sets
|
| 317 |
+
// with these properties.
|
| 318 |
+
// Response: Abort.
|
| 319 |
+
|
| 320 |
+
FDIERROR_WRONG_CABINET,
|
| 321 |
+
// Description: Cabinet returned on fdintNEXT_CABINET is incorrect
|
| 322 |
+
// Cause: NOTE: THIS ERROR IS NEVER RETURNED BY FDICopy()!
|
| 323 |
+
// Rather, FDICopy() keeps calling the fdintNEXT_CABINET
|
| 324 |
+
// callback until either the correct cabinet is specified,
|
| 325 |
+
// or you return ABORT.
|
| 326 |
+
// When FDICopy() is extracting a file that crosses a
|
| 327 |
+
// cabinet boundary, it calls fdintNEXT_CABINET to ask
|
| 328 |
+
// for the path to the next cabinet. Not being very
|
| 329 |
+
// trusting, FDI then checks to make sure that the
|
| 330 |
+
// correct continuation cabinet was supplied! It does
|
| 331 |
+
// this by checking the "setID" and "iCabinet" fields
|
| 332 |
+
// in the cabinet. When DIAMOND.EXE creates a set of
|
| 333 |
+
// cabinets, it constructs the "setID" using the sum
|
| 334 |
+
// of the bytes of all the destination file names in
|
| 335 |
+
// the cabinet set. FDI makes sure that the 16-bit
|
| 336 |
+
// setID of the continuation cabinet matches the
|
| 337 |
+
// cabinet file just processed. FDI then checks that
|
| 338 |
+
// the cabinet number (iCabinet) is one more than the
|
| 339 |
+
// cabinet number for the cabinet just processed.
|
| 340 |
+
// Response: You need code in your fdintNEXT_CABINET (see below)
|
| 341 |
+
// handler to do retries if you get recalled with this
|
| 342 |
+
// error. See the sample code (EXTRACT.C) to see how
|
| 343 |
+
// this should be handled.
|
| 344 |
+
|
| 345 |
+
FDIERROR_USER_ABORT,
|
| 346 |
+
// Description: FDI aborted.
|
| 347 |
+
// Cause: An FDI callback returned -1 (usually).
|
| 348 |
+
// Response: Up to client.
|
| 349 |
+
|
| 350 |
+
FDIERROR_EOF,
|
| 351 |
+
// Description: Unexpected end of file.
|
| 352 |
+
// Cause: This error may be returned instead of
|
| 353 |
+
// FDIERROR_CORRUPT_CABINET if PFNREAD returned 0.
|
| 354 |
+
// Response: See FDIERROR_CORRUPT_CABINET above.
|
| 355 |
+
|
| 356 |
+
} FDIERROR;
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
/*
|
| 360 |
+
* FAT file attribute flag used by FCI/FDI to indicate that
|
| 361 |
+
* the filename in the CAB is a UTF string
|
| 362 |
+
*/
|
| 363 |
+
#ifndef _A_NAME_IS_UTF
|
| 364 |
+
#define _A_NAME_IS_UTF 0x80
|
| 365 |
+
#endif
|
| 366 |
+
|
| 367 |
+
/*
|
| 368 |
+
* FAT file attribute flag used by FCI/FDI to indicate that
|
| 369 |
+
* the file should be executed after extraction
|
| 370 |
+
*/
|
| 371 |
+
#ifndef _A_EXEC
|
| 372 |
+
#define _A_EXEC 0x40
|
| 373 |
+
#endif
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
/*** HFDI - Handle to an FDI context
|
| 377 |
+
*
|
| 378 |
+
* FDICreate() creates this, and it must be passed to all other FDI
|
| 379 |
+
* functions.
|
| 380 |
+
*/
|
| 381 |
+
typedef void FAR *HFDI; /* hfdi */
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
/*** FDICABINETINFO - Information about a cabinet
|
| 385 |
+
*
|
| 386 |
+
*/
|
| 387 |
+
typedef struct {
|
| 388 |
+
long cbCabinet; // Total length of cabinet file
|
| 389 |
+
USHORT cFolders; // Count of folders in cabinet
|
| 390 |
+
USHORT cFiles; // Count of files in cabinet
|
| 391 |
+
USHORT setID; // Cabinet set ID
|
| 392 |
+
USHORT iCabinet; // Cabinet number in set (0 based)
|
| 393 |
+
BOOL fReserve; // TRUE => RESERVE present in cabinet
|
| 394 |
+
BOOL hasprev; // TRUE => Cabinet is chained prev
|
| 395 |
+
BOOL hasnext; // TRUE => Cabinet is chained next
|
| 396 |
+
} FDICABINETINFO; /* fdici */
|
| 397 |
+
typedef FDICABINETINFO FAR *PFDICABINETINFO; /* pfdici */
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
/*** FDIDECRYPTTYPE - PFNFDIDECRYPT command types
|
| 401 |
+
*
|
| 402 |
+
*/
|
| 403 |
+
typedef enum {
|
| 404 |
+
fdidtNEW_CABINET, // New cabinet
|
| 405 |
+
fdidtNEW_FOLDER, // New folder
|
| 406 |
+
fdidtDECRYPT, // Decrypt a data block
|
| 407 |
+
} FDIDECRYPTTYPE; /* fdidt */
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
/*** FDIDECRYPT - Data for PFNFDIDECRYPT function
|
| 411 |
+
*
|
| 412 |
+
*/
|
| 413 |
+
typedef struct {
|
| 414 |
+
FDIDECRYPTTYPE fdidt; // Command type (selects union below)
|
| 415 |
+
void FAR *pvUser; // Decryption context
|
| 416 |
+
union {
|
| 417 |
+
struct { // fdidtNEW_CABINET
|
| 418 |
+
void FAR *pHeaderReserve; // RESERVE section from CFHEADER
|
| 419 |
+
USHORT cbHeaderReserve; // Size of pHeaderReserve
|
| 420 |
+
USHORT setID; // Cabinet set ID
|
| 421 |
+
int iCabinet; // Cabinet number in set (0 based)
|
| 422 |
+
} cabinet;
|
| 423 |
+
|
| 424 |
+
struct { // fdidtNEW_FOLDER
|
| 425 |
+
void FAR *pFolderReserve; // RESERVE section from CFFOLDER
|
| 426 |
+
USHORT cbFolderReserve; // Size of pFolderReserve
|
| 427 |
+
USHORT iFolder; // Folder number in cabinet (0 based)
|
| 428 |
+
} folder;
|
| 429 |
+
|
| 430 |
+
struct { // fdidtDECRYPT
|
| 431 |
+
void FAR *pDataReserve; // RESERVE section from CFDATA
|
| 432 |
+
USHORT cbDataReserve; // Size of pDataReserve
|
| 433 |
+
void FAR *pbData; // Data buffer
|
| 434 |
+
USHORT cbData; // Size of data buffer
|
| 435 |
+
BOOL fSplit; // TRUE if this is a split data block
|
| 436 |
+
USHORT cbPartial; // 0 if this is not a split block, or
|
| 437 |
+
// the first piece of a split block;
|
| 438 |
+
// Greater than 0 if this is the
|
| 439 |
+
// second piece of a split block.
|
| 440 |
+
} decrypt;
|
| 441 |
+
};
|
| 442 |
+
} FDIDECRYPT; /* fdid */
|
| 443 |
+
typedef FDIDECRYPT FAR *PFDIDECRYPT; /* pfdid */
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
/*** FNALLOC - Memory Allocation
|
| 447 |
+
* FNFREE - Memory Free
|
| 448 |
+
*
|
| 449 |
+
* These are modeled after the C run-time routines malloc() and free()
|
| 450 |
+
* (16-bit clients please note -- the size is a ULONG, so you may need
|
| 451 |
+
* to write a wrapper routine for halloc!). FDI expects error
|
| 452 |
+
* handling to be identical to these C run-time routines.
|
| 453 |
+
*
|
| 454 |
+
* As long as you faithfully copy the semantics of malloc() and free(),
|
| 455 |
+
* you can supply any functions you like!
|
| 456 |
+
*
|
| 457 |
+
* WARNING: You should never assume anything about the sequence of
|
| 458 |
+
* PFNALLOC and PFNFREE calls -- incremental releases of
|
| 459 |
+
* Diamond/FDI may have radically different numbers of
|
| 460 |
+
* PFNALLOC calls and allocation sizes!
|
| 461 |
+
*/
|
| 462 |
+
//** Memory functions for FDI
|
| 463 |
+
typedef void HUGE * (FAR DIAMONDAPI *PFNALLOC)(ULONG cb); /* pfna */
|
| 464 |
+
#define FNALLOC(fn) void HUGE * FAR DIAMONDAPI fn(ULONG cb)
|
| 465 |
+
|
| 466 |
+
typedef void (FAR DIAMONDAPI *PFNFREE)(_In_opt_ void HUGE *pv); /* pfnf */
|
| 467 |
+
#define FNFREE(fn) void FAR DIAMONDAPI fn(_In_opt_ void HUGE *pv)
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
//** File I/O functions for FDI
|
| 471 |
+
typedef INT_PTR (FAR DIAMONDAPI *PFNOPEN) (_In_ LPSTR pszFile, int oflag, int pmode);
|
| 472 |
+
typedef UINT (FAR DIAMONDAPI *PFNREAD) (_In_ INT_PTR hf, _Out_writes_bytes_(cb) void FAR *pv, UINT cb);
|
| 473 |
+
typedef UINT (FAR DIAMONDAPI *PFNWRITE)(_In_ INT_PTR hf, _In_reads_bytes_(cb) void FAR *pv, UINT cb);
|
| 474 |
+
typedef int (FAR DIAMONDAPI *PFNCLOSE)(_In_ INT_PTR hf);
|
| 475 |
+
typedef long (FAR DIAMONDAPI *PFNSEEK) (_In_ INT_PTR hf, long dist, int seektype);
|
| 476 |
+
|
| 477 |
+
#define FNOPEN(fn) INT_PTR FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int oflag, int pmode)
|
| 478 |
+
#define FNREAD(fn) UINT FAR DIAMONDAPI fn(_In_ INT_PTR hf, _Out_writes_bytes_(cb) void FAR *pv, UINT cb)
|
| 479 |
+
#define FNWRITE(fn) UINT FAR DIAMONDAPI fn(_In_ INT_PTR hf, _In_reads_bytes_(cb) void FAR *pv, UINT cb)
|
| 480 |
+
#define FNCLOSE(fn) int FAR DIAMONDAPI fn(_In_ INT_PTR hf)
|
| 481 |
+
#define FNSEEK(fn) long FAR DIAMONDAPI fn(_In_ INT_PTR hf, long dist, int seektype)
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
/*** PFNFDIDECRYPT - FDI Decryption callback
|
| 486 |
+
*
|
| 487 |
+
* If this function is passed on the FDICopy() call, then FDI calls it
|
| 488 |
+
* at various times to update the decryption state and to decrypt FCDATA
|
| 489 |
+
* blocks.
|
| 490 |
+
*
|
| 491 |
+
* Common Entry Conditions:
|
| 492 |
+
* pfdid->fdidt - Command type
|
| 493 |
+
* pfdid->pvUser - pvUser value from FDICopy() call
|
| 494 |
+
*
|
| 495 |
+
* fdidtNEW_CABINET: //** Notification of a new cabinet
|
| 496 |
+
* Entry:
|
| 497 |
+
* pfdid->cabinet.
|
| 498 |
+
* pHeaderReserve - RESERVE section from CFHEADER
|
| 499 |
+
* cbHeaderReserve - Size of pHeaderReserve
|
| 500 |
+
* setID - Cabinet set ID
|
| 501 |
+
* iCabinet - Cabinet number in set (0 based)
|
| 502 |
+
* Exit-Success:
|
| 503 |
+
* returns anything but -1;
|
| 504 |
+
* Exit-Failure:
|
| 505 |
+
* returns -1; FDICopy() is aborted.
|
| 506 |
+
* Notes:
|
| 507 |
+
* (1) This call allows the decryption code to pick out any information
|
| 508 |
+
* from the cabinet header reserved area (placed there by DIACRYPT)
|
| 509 |
+
* needed to perform decryption. If there is no such information,
|
| 510 |
+
* this call would presumably be ignored.
|
| 511 |
+
* (2) This call is made very soon after fdintCABINET_INFO.
|
| 512 |
+
*
|
| 513 |
+
* fdidtNEW_FOLDER: //** Notification of a new folder
|
| 514 |
+
* Entry:
|
| 515 |
+
* pfdid->folder.
|
| 516 |
+
* pFolderReserve - RESERVE section from CFFOLDER
|
| 517 |
+
* cbFolderReserve - Size of pFolderReserve
|
| 518 |
+
* iFolder - Folder number in cabinet (0 based)
|
| 519 |
+
* Exit-Success:
|
| 520 |
+
* returns anything but -1;
|
| 521 |
+
* Exit-Failure:
|
| 522 |
+
* returns -1; FDICopy() is aborted.
|
| 523 |
+
* Notes:
|
| 524 |
+
* This call allows the decryption code to pick out any information
|
| 525 |
+
* from the folder reserved area (placed there by DIACRYPT) needed
|
| 526 |
+
* to perform decryption. If there is no such information, this
|
| 527 |
+
* call would presumably be ignored.
|
| 528 |
+
*
|
| 529 |
+
* fdidtDECRYPT: //** Decrypt a data buffer
|
| 530 |
+
* Entry:
|
| 531 |
+
* pfdid->folder.
|
| 532 |
+
* pDataReserve - RESERVE section for this CFDATA block
|
| 533 |
+
* cbDataReserve - Size of pDataReserve
|
| 534 |
+
* pbData - Data buffer
|
| 535 |
+
* cbData - Size of data buffer
|
| 536 |
+
* fSplit - TRUE if this is a split data block
|
| 537 |
+
* cbPartial - 0 if this is not a split block, or the first
|
| 538 |
+
* piece of a split block; Greater than 0 if
|
| 539 |
+
* this is the second piece of a split block.
|
| 540 |
+
* Exit-Success:
|
| 541 |
+
* returns TRUE;
|
| 542 |
+
* Exit-Failure:
|
| 543 |
+
* returns FALSE; error during decrypt
|
| 544 |
+
* returns -1; FDICopy() is aborted.
|
| 545 |
+
* Notes:
|
| 546 |
+
* Diamond will split CFDATA blocks across cabinet boundaries if
|
| 547 |
+
* necessary. To provide maximum flexibility, FDI will call the
|
| 548 |
+
* fdidtDECRYPT function twice on such split blocks, once when
|
| 549 |
+
* the first portion is read, and again when the second portion
|
| 550 |
+
* is read. And, of course, most data blocks will not be split.
|
| 551 |
+
* So, there are three cases:
|
| 552 |
+
*
|
| 553 |
+
* 1) fSplit == FALSE
|
| 554 |
+
* You have the entire data block, so decrypt it.
|
| 555 |
+
*
|
| 556 |
+
* 2) fSplit == TRUE, cbPartial == 0
|
| 557 |
+
* This is the first portion of a split data block, so cbData
|
| 558 |
+
* is the size of this portion. You can either choose to decrypt
|
| 559 |
+
* this piece, or ignore this call and decrypt the full CFDATA
|
| 560 |
+
* block on the next (second) fdidtDECRYPT call.
|
| 561 |
+
*
|
| 562 |
+
* 3) fSplit == TRUE, cbPartial > 0
|
| 563 |
+
* This is the second portion of a split data block (indeed,
|
| 564 |
+
* cbPartial will have the same value as cbData did on the
|
| 565 |
+
* immediately preceeding fdidtDECRYPT call!). If you decrypted
|
| 566 |
+
* the first portion on the first call, then you can decrypt the
|
| 567 |
+
* second portion now. If you ignored the first call, then you
|
| 568 |
+
* can decrypt the entire buffer.
|
| 569 |
+
* NOTE: pbData points to the second portion of the split data
|
| 570 |
+
* block in this case, *not* the entire data block. If
|
| 571 |
+
* you want to wait until the second piece to decrypt the
|
| 572 |
+
* *entire* block, pbData-cbPartial is the address of the
|
| 573 |
+
* start of the whole block, and cbData+cbPartial is its
|
| 574 |
+
* size.
|
| 575 |
+
*/
|
| 576 |
+
typedef int (FAR DIAMONDAPI *PFNFDIDECRYPT)(PFDIDECRYPT pfdid); /* pfnfdid */
|
| 577 |
+
#define FNFDIDECRYPT(fn) int FAR DIAMONDAPI fn(PFDIDECRYPT pfdid)
|
| 578 |
+
|
| 579 |
+
|
| 580 |
+
/*** FDINOTIFICATION - Notification structure for PFNFDINOTIFY
|
| 581 |
+
*
|
| 582 |
+
* See the FDINOTIFICATIONTYPE definition for information on usage and
|
| 583 |
+
* meaning of these fields.
|
| 584 |
+
*/
|
| 585 |
+
typedef struct {
|
| 586 |
+
// long fields
|
| 587 |
+
long cb;
|
| 588 |
+
char FAR *psz1;
|
| 589 |
+
char FAR *psz2;
|
| 590 |
+
char FAR *psz3; // Points to a 256 character buffer
|
| 591 |
+
void FAR *pv; // Value for client
|
| 592 |
+
|
| 593 |
+
// int fields
|
| 594 |
+
INT_PTR hf;
|
| 595 |
+
|
| 596 |
+
// short fields
|
| 597 |
+
USHORT date;
|
| 598 |
+
USHORT time;
|
| 599 |
+
USHORT attribs;
|
| 600 |
+
|
| 601 |
+
USHORT setID; // Cabinet set ID
|
| 602 |
+
USHORT iCabinet; // Cabinet number (0-based)
|
| 603 |
+
USHORT iFolder; // Folder number (0-based)
|
| 604 |
+
|
| 605 |
+
FDIERROR fdie;
|
| 606 |
+
} FDINOTIFICATION, FAR *PFDINOTIFICATION; /* fdin, pfdin */
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
/*** FDINOTIFICATIONTYPE - FDICopy notification types
|
| 610 |
+
*
|
| 611 |
+
* The notification function for FDICopy can be called with the following
|
| 612 |
+
* values for the fdint parameter. In all cases, the pfdin->pv field is
|
| 613 |
+
* filled in with the value of the pvUser argument passed in to FDICopy().
|
| 614 |
+
*
|
| 615 |
+
* A typical sequence of calls will be something like this:
|
| 616 |
+
* fdintCABINET_INFO // Info about the cabinet
|
| 617 |
+
* fdintENUMERATE // Starting enumeration
|
| 618 |
+
* fdintPARTIAL_FILE // Only if this is not the first cabinet, and
|
| 619 |
+
* // one or more files were continued from the
|
| 620 |
+
* // previous cabinet.
|
| 621 |
+
* ...
|
| 622 |
+
* fdintPARTIAL_FILE
|
| 623 |
+
* fdintCOPY_FILE // The first file that starts in this cabinet
|
| 624 |
+
* ...
|
| 625 |
+
* fdintCOPY_FILE // Now let's assume you want this file...
|
| 626 |
+
* // PFNWRITE called multiple times to write to this file.
|
| 627 |
+
* fdintCLOSE_FILE_INFO // File done, set date/time/attributes
|
| 628 |
+
*
|
| 629 |
+
* fdintCOPY_FILE // Now let's assume you want this file...
|
| 630 |
+
* // PFNWRITE called multiple times to write to this file.
|
| 631 |
+
* fdintNEXT_CABINET // File was continued to next cabinet!
|
| 632 |
+
* fdintCABINET_INFO // Info about the new cabinet
|
| 633 |
+
* // PFNWRITE called multiple times to write to this file.
|
| 634 |
+
* fdintCLOSE_FILE_INFO // File done, set date/time/attributes
|
| 635 |
+
* ...
|
| 636 |
+
* fdintENUMERATE // Ending enumeration
|
| 637 |
+
*
|
| 638 |
+
* fdintCABINET_INFO:
|
| 639 |
+
* Called exactly once for each cabinet opened by FDICopy(), including
|
| 640 |
+
* continuation cabinets opened due to file(s) spanning cabinet
|
| 641 |
+
* boundaries. Primarily intended to permit EXTRACT.EXE to
|
| 642 |
+
* automatically select the next cabinet in a cabinet sequence even if
|
| 643 |
+
* not copying files that span cabinet boundaries.
|
| 644 |
+
* Entry:
|
| 645 |
+
* pfdin->psz1 = name of next cabinet
|
| 646 |
+
* pfdin->psz2 = name of next disk
|
| 647 |
+
* pfdin->psz3 = cabinet path name
|
| 648 |
+
* pfdin->setID = cabinet set ID (a random 16-bit number)
|
| 649 |
+
* pfdin->iCabinet = Cabinet number within cabinet set (0-based)
|
| 650 |
+
* Exit-Success:
|
| 651 |
+
* Return anything but -1
|
| 652 |
+
* Exit-Failure:
|
| 653 |
+
* Returns -1 => Abort FDICopy() call
|
| 654 |
+
* Notes:
|
| 655 |
+
* This call is made *every* time a new cabinet is examined by
|
| 656 |
+
* FDICopy(). So if "foo2.cab" is examined because a file is
|
| 657 |
+
* continued from "foo1.cab", and then you call FDICopy() again
|
| 658 |
+
* on "foo2.cab", you will get *two* fdintCABINET_INFO calls all
|
| 659 |
+
* told.
|
| 660 |
+
*
|
| 661 |
+
* fdintCOPY_FILE:
|
| 662 |
+
* Called for each file that *starts* in the current cabinet, giving
|
| 663 |
+
* the client the opportunity to request that the file be copied or
|
| 664 |
+
* skipped.
|
| 665 |
+
* Entry:
|
| 666 |
+
* pfdin->psz1 = file name in cabinet
|
| 667 |
+
* pfdin->cb = uncompressed size of file
|
| 668 |
+
* pfdin->date = file date
|
| 669 |
+
* pfdin->time = file time
|
| 670 |
+
* pfdin->attribs = file attributes
|
| 671 |
+
* pfdin->iFolder = file's folder index
|
| 672 |
+
* Exit-Success:
|
| 673 |
+
* Return non-zero file handle for destination file; FDI writes
|
| 674 |
+
* data to this file use the PFNWRITE function supplied to FDICreate,
|
| 675 |
+
* and then calls fdintCLOSE_FILE_INFO to close the file and set
|
| 676 |
+
* the date, time, and attributes. NOTE: This file handle returned
|
| 677 |
+
* must also be closeable by the PFNCLOSE function supplied to
|
| 678 |
+
* FDICreate, since if an error occurs while writing to this handle,
|
| 679 |
+
* FDI will use the PFNCLOSE function to close the file so that the
|
| 680 |
+
* client may delete it.
|
| 681 |
+
* Exit-Failure:
|
| 682 |
+
* Returns 0 => Skip file, do not copy
|
| 683 |
+
* Returns -1 => Abort FDICopy() call
|
| 684 |
+
*
|
| 685 |
+
* fdintCLOSE_FILE_INFO:
|
| 686 |
+
* Called after all of the data has been written to a target file.
|
| 687 |
+
* This function must close the file and set the file date, time,
|
| 688 |
+
* and attributes.
|
| 689 |
+
* Entry:
|
| 690 |
+
* pfdin->psz1 = file name in cabinet
|
| 691 |
+
* pfdin->hf = file handle
|
| 692 |
+
* pfdin->date = file date
|
| 693 |
+
* pfdin->time = file time
|
| 694 |
+
* pfdin->attribs = file attributes
|
| 695 |
+
* pfdin->iFolder = file's folder index
|
| 696 |
+
* pfdin->cb = Run After Extract (0 - don't run, 1 Run)
|
| 697 |
+
* Exit-Success:
|
| 698 |
+
* Returns TRUE
|
| 699 |
+
* Exit-Failure:
|
| 700 |
+
* Returns FALSE, or -1 to abort;
|
| 701 |
+
*
|
| 702 |
+
* IMPORTANT NOTE IMPORTANT:
|
| 703 |
+
* pfdin->cb is overloaded to no longer be the size of
|
| 704 |
+
* the file but to be a binary indicated run or not
|
| 705 |
+
*
|
| 706 |
+
* IMPORTANT NOTE:
|
| 707 |
+
* FDI assumes that the target file was closed, even if this
|
| 708 |
+
* callback returns failure. FDI will NOT attempt to use
|
| 709 |
+
* the PFNCLOSE function supplied on FDICreate() to close
|
| 710 |
+
* the file!
|
| 711 |
+
*
|
| 712 |
+
* fdintPARTIAL_FILE:
|
| 713 |
+
* Called for files at the front of the cabinet that are CONTINUED
|
| 714 |
+
* from a previous cabinet. This callback occurs only when FDICopy is
|
| 715 |
+
* started on second or subsequent cabinet in a series that has files
|
| 716 |
+
* continued from a previous cabinet.
|
| 717 |
+
* Entry:
|
| 718 |
+
* pfdin->psz1 = file name of file CONTINUED from a PREVIOUS cabinet
|
| 719 |
+
* pfdin->psz2 = name of cabinet where file starts
|
| 720 |
+
* pfdin->psz3 = name of disk where file starts
|
| 721 |
+
* Exit-Success:
|
| 722 |
+
* Return anything other than -1; enumeration continues
|
| 723 |
+
* Exit-Failure:
|
| 724 |
+
* Returns -1 => Abort FDICopy() call
|
| 725 |
+
*
|
| 726 |
+
* fdintENUMERATE:
|
| 727 |
+
* Called once after a call to FDICopy() starts scanning a CAB's
|
| 728 |
+
* CFFILE entries, and again when there are no more CFFILE entries.
|
| 729 |
+
* If CAB spanning occurs, an additional call will occur after the
|
| 730 |
+
* first spanned file is completed. If the pfdin->iFolder value is
|
| 731 |
+
* changed from zero, additional calls will occur next time it reaches
|
| 732 |
+
* zero. If iFolder is changed to zero, FDICopy will terminate, as if
|
| 733 |
+
* there were no more CFFILE entries. Primarily intended to allow an
|
| 734 |
+
* application with it's own file list to help FDI advance quickly to
|
| 735 |
+
* a CFFILE entry of interest. Can also be used to allow an
|
| 736 |
+
* application to determine the cb values for each file in the CAB.
|
| 737 |
+
* Entry:
|
| 738 |
+
* pfdin->cb = current CFFILE position
|
| 739 |
+
* pfdin->iFolder = number of files remaining
|
| 740 |
+
* pfdin->setID = current CAB's setID value
|
| 741 |
+
* Exit-Don't Care:
|
| 742 |
+
* Don't change anything.
|
| 743 |
+
* Return anything but -1.
|
| 744 |
+
* Exit-Forcing a skip:
|
| 745 |
+
* pfdin->cb = desired CFFILE position
|
| 746 |
+
* pfdin->iFolder = desired # of files remaining
|
| 747 |
+
* Return anything but -1.
|
| 748 |
+
* Exit-Stop:
|
| 749 |
+
* pfdin->iFolder = set to 0
|
| 750 |
+
* Return anything but -1.
|
| 751 |
+
* Exit-Failure:
|
| 752 |
+
* Return -1 => Abort FDICopy call ("user aborted".)
|
| 753 |
+
* Notes:
|
| 754 |
+
* This call can be ignored by applications which want normal file
|
| 755 |
+
* searching. The application can adjust the supplied values to
|
| 756 |
+
* force FDICopy() to continue it's search at another location, or
|
| 757 |
+
* to force FDICopy() to terminate the search, by setting iFolder to 0.
|
| 758 |
+
* (FDICopy() will report no error when terminated this way.)
|
| 759 |
+
* FDI has no means to verify the supplied cb or iFolder values.
|
| 760 |
+
* Arbitrary values are likely to cause undesirable results. An
|
| 761 |
+
* application should cross-check pfdin->setID to be certain the
|
| 762 |
+
* external database is in sync with the CAB. Reverse-skips are OK
|
| 763 |
+
* (but may be inefficient) unless fdintNEXT_CABINET has been called.
|
| 764 |
+
*
|
| 765 |
+
* fdintNEXT_CABINET:
|
| 766 |
+
* This function is *only* called when fdintCOPY_FILE was told to copy
|
| 767 |
+
* a file in the current cabinet that is continued to a subsequent
|
| 768 |
+
* cabinet file. It is important that the cabinet path name (psz3)
|
| 769 |
+
* be validated before returning! This function should ensure that
|
| 770 |
+
* the cabinet exists and is readable before returning. So, this
|
| 771 |
+
* is the function that should, for example, issue a disk change
|
| 772 |
+
* prompt and make sure the cabinet file exists.
|
| 773 |
+
*
|
| 774 |
+
* When this function returns to FDI, FDI will check that the setID
|
| 775 |
+
* and iCabinet match the expected values for the next cabinet.
|
| 776 |
+
* If not, FDI will continue to call this function until the correct
|
| 777 |
+
* cabinet file is specified, or until this function returns -1 to
|
| 778 |
+
* abort the FDICopy() function. pfdin->fdie is set to
|
| 779 |
+
* FDIERROR_WRONG_CABINET to indicate this case.
|
| 780 |
+
*
|
| 781 |
+
* If you *haven't* ensured that the cabinet file is present and
|
| 782 |
+
* readable, or the cabinet file has been damaged, pfdin->fdie will
|
| 783 |
+
* receive other appropriate error codes:
|
| 784 |
+
*
|
| 785 |
+
* FDIERROR_CABINET_NOT_FOUND
|
| 786 |
+
* FDIERROR_NOT_A_CABINET
|
| 787 |
+
* FDIERROR_UNKNOWN_CABINET_VERSION
|
| 788 |
+
* FDIERROR_CORRUPT_CABINET
|
| 789 |
+
* FDIERROR_BAD_COMPR_TYPE
|
| 790 |
+
* FDIERROR_RESERVE_MISMATCH
|
| 791 |
+
* FDIERROR_WRONG_CABINET
|
| 792 |
+
*
|
| 793 |
+
* Entry:
|
| 794 |
+
* pfdin->psz1 = name of next cabinet where current file is continued
|
| 795 |
+
* pfdin->psz2 = name of next disk where current file is continued
|
| 796 |
+
* pfdin->psz3 = cabinet path name; FDI concatenates psz3 with psz1
|
| 797 |
+
* to produce the fully-qualified path for the cabinet
|
| 798 |
+
* file. The 256-byte buffer pointed at by psz3 may
|
| 799 |
+
* be modified, but psz1 may not!
|
| 800 |
+
* pfdin->fdie = FDIERROR_WRONG_CABINET if the previous call to
|
| 801 |
+
* fdintNEXT_CABINET specified a cabinet file that
|
| 802 |
+
* did not match the setID/iCabinet that was expected.
|
| 803 |
+
* Exit-Success:
|
| 804 |
+
* Return anything but -1
|
| 805 |
+
* Exit-Failure:
|
| 806 |
+
* Returns -1 => Abort FDICopy() call
|
| 807 |
+
* Notes:
|
| 808 |
+
* This call is almost always made when a target file is open and
|
| 809 |
+
* being written to, and the next cabinet is needed to get more
|
| 810 |
+
* data for the file.
|
| 811 |
+
*/
|
| 812 |
+
typedef enum {
|
| 813 |
+
fdintCABINET_INFO, // General information about cabinet
|
| 814 |
+
fdintPARTIAL_FILE, // First file in cabinet is continuation
|
| 815 |
+
fdintCOPY_FILE, // File to be copied
|
| 816 |
+
fdintCLOSE_FILE_INFO, // close the file, set relevant info
|
| 817 |
+
fdintNEXT_CABINET, // File continued to next cabinet
|
| 818 |
+
fdintENUMERATE, // Enumeration status
|
| 819 |
+
} FDINOTIFICATIONTYPE; /* fdint */
|
| 820 |
+
|
| 821 |
+
typedef INT_PTR (FAR DIAMONDAPI *PFNFDINOTIFY)(FDINOTIFICATIONTYPE fdint,
|
| 822 |
+
PFDINOTIFICATION pfdin); /* pfnfdin */
|
| 823 |
+
|
| 824 |
+
#define FNFDINOTIFY(fn) INT_PTR FAR DIAMONDAPI fn(FDINOTIFICATIONTYPE fdint, \
|
| 825 |
+
PFDINOTIFICATION pfdin)
|
| 826 |
+
|
| 827 |
+
|
| 828 |
+
/*** PFNOPEN - File I/O callbacks for FDI
|
| 829 |
+
* PFNREAD
|
| 830 |
+
* PFNWRITE
|
| 831 |
+
* PFNCLOSE
|
| 832 |
+
* PFNSEEK
|
| 833 |
+
*
|
| 834 |
+
* These are modeled after the C run-time routines _open, _read,
|
| 835 |
+
* _write, _close, and _lseek. The values for the PFNOPEN oflag
|
| 836 |
+
* and pmode calls are those defined for _open. FDI expects error
|
| 837 |
+
* handling to be identical to these C run-time routines.
|
| 838 |
+
*
|
| 839 |
+
* As long as you faithfully copy these aspects, you can supply
|
| 840 |
+
* any functions you like!
|
| 841 |
+
*
|
| 842 |
+
*
|
| 843 |
+
* SPECIAL NOTE FOR QUANTUM DECOMPRESSION:
|
| 844 |
+
* When using Quantum compression, at compress time (with Diamond)
|
| 845 |
+
* you specify how much memory Quantum requires at *decompress* time
|
| 846 |
+
* to store the decompression history buffer. This can be as large
|
| 847 |
+
* as *2Mb*, and in an MS-DOS environment, for example, this much
|
| 848 |
+
* memory may not be available (certainly not under 640K!). To permit
|
| 849 |
+
* large CompressionMemory settings on any machine, the Quantum
|
| 850 |
+
* decompressor will attempt to create a "spill file" if there is not
|
| 851 |
+
* sufficient memory available.
|
| 852 |
+
*
|
| 853 |
+
* For PFNOPEN, a special pszFile parameter is passed to indicate that
|
| 854 |
+
* a temporary "spill file" is requested. The name passed is "*", and
|
| 855 |
+
* you should cast the pszFile parameter to an FDISPILLFILE pointer,
|
| 856 |
+
* and get the requested file size. You then need to create a file
|
| 857 |
+
* of the specified size with read/write access, save the file name and
|
| 858 |
+
* handle for later use by PFNCLOSE, and then return the handle. If
|
| 859 |
+
* you cannot create the file of the specified size, you should return
|
| 860 |
+
* an error (-1). This file should be placed on a fast local hard disk,
|
| 861 |
+
* to maximize the speed of decompression.
|
| 862 |
+
*
|
| 863 |
+
* For PFNCLOSE, you should check the handle to see if it the spill file
|
| 864 |
+
* created previously by PFNOPEN (FDI will create at most one spill file
|
| 865 |
+
* per FDICreate() call). If it is the spill file handle, you should
|
| 866 |
+
* close the handle and then delete the file, using the file name you
|
| 867 |
+
* saved when you created the spill file in PFNOPEN.
|
| 868 |
+
*
|
| 869 |
+
* WARNING: You should never assume you know what file is being
|
| 870 |
+
* opened at any one point in time! FDI will usually
|
| 871 |
+
* stick to opening cabinet files, but it is possible
|
| 872 |
+
* that in a future implementation it may open temporary
|
| 873 |
+
* files or open cabinet files in a different order.
|
| 874 |
+
*
|
| 875 |
+
* Notes for Memory Mapped File fans:
|
| 876 |
+
* You can write wrapper routines to allow FDI to work on memory
|
| 877 |
+
* mapped files. You'll have to create your own "handle" type so that
|
| 878 |
+
* you can store the base memory address of the file and the current
|
| 879 |
+
* seek position, and then you'll allocate and fill in one of these
|
| 880 |
+
* structures and return a pointer to it in response to the PFNOPEN
|
| 881 |
+
* call and the fdintCOPY_FILE call. Your PFNREAD and PFNWRITE
|
| 882 |
+
* functions will do memcopy(), and update the seek position in your
|
| 883 |
+
* "handle" structure. PFNSEEK will just change the seek position
|
| 884 |
+
* in your "handle" structure.
|
| 885 |
+
*/
|
| 886 |
+
|
| 887 |
+
#ifndef _WIN64
|
| 888 |
+
#pragma pack (1)
|
| 889 |
+
#endif
|
| 890 |
+
|
| 891 |
+
/** FDISPILLFILE - Pass as pszFile on PFNOPEN to create spill file
|
| 892 |
+
*
|
| 893 |
+
* ach - A two byte string to signal to PFNOPEN that a spill file is
|
| 894 |
+
* requested. Value is '*','\0'.
|
| 895 |
+
* cbFile - Required spill file size, in bytes.
|
| 896 |
+
*/
|
| 897 |
+
typedef struct {
|
| 898 |
+
char ach[2]; // Set to { '*', '\0' }
|
| 899 |
+
long cbFile; // Required spill file size
|
| 900 |
+
} FDISPILLFILE; /* fdisf */
|
| 901 |
+
typedef FDISPILLFILE *PFDISPILLFILE; /* pfdisf */
|
| 902 |
+
|
| 903 |
+
#ifndef _WIN64
|
| 904 |
+
#pragma pack ()
|
| 905 |
+
#endif
|
| 906 |
+
|
| 907 |
+
|
| 908 |
+
/*** cpuType values for FDICreate()
|
| 909 |
+
*
|
| 910 |
+
* WARNING: For 16-bit Windows applications, the CPU detection may not
|
| 911 |
+
* correctly detect 286 CPUs. Instead, use the following code:
|
| 912 |
+
*
|
| 913 |
+
* DWORD flags;
|
| 914 |
+
* int cpuType;
|
| 915 |
+
*
|
| 916 |
+
* flags = GetWinFlags();
|
| 917 |
+
* if (flags & WF_CPU286)
|
| 918 |
+
* cpuType = cpu80286;
|
| 919 |
+
* else
|
| 920 |
+
* cpuType = cpu80386;
|
| 921 |
+
*
|
| 922 |
+
* hfdi = FDICreate(....,cpuType,...);
|
| 923 |
+
*/
|
| 924 |
+
#define cpuUNKNOWN (-1) /* FDI does detection */
|
| 925 |
+
#define cpu80286 (0) /* '286 opcodes only */
|
| 926 |
+
#define cpu80386 (1) /* '386 opcodes used */
|
| 927 |
+
|
| 928 |
+
|
| 929 |
+
/*** FDICreate - Create an FDI context
|
| 930 |
+
*
|
| 931 |
+
* Entry:
|
| 932 |
+
* pfnalloc
|
| 933 |
+
* pfnfree
|
| 934 |
+
* pfnopen
|
| 935 |
+
* pfnread
|
| 936 |
+
* pfnwrite
|
| 937 |
+
* pfnclose
|
| 938 |
+
* pfnlseek
|
| 939 |
+
* cpuType - Select CPU type (auto-detect, 286, or 386+)
|
| 940 |
+
* WARNING: Don't use auto-detect from a 16-bit Windows
|
| 941 |
+
* application! Use GetWinFlags()!
|
| 942 |
+
* NOTE: For the 32-bit FDI.LIB, this parameter is ignored!
|
| 943 |
+
* perf
|
| 944 |
+
*
|
| 945 |
+
* Exit-Success:
|
| 946 |
+
* Returns non-NULL FDI context handle.
|
| 947 |
+
*
|
| 948 |
+
* Exit-Failure:
|
| 949 |
+
* Returns NULL; perf filled in with error code
|
| 950 |
+
*
|
| 951 |
+
* Special notes for Quantum Decompression:
|
| 952 |
+
* If you have used a high setting for CompressionMemory in creating
|
| 953 |
+
* the cabinet file(s), then FDI will attempt to allocate a lot of
|
| 954 |
+
* memory (as much as 2Mb, if you specified 21 for CompressionMemory).
|
| 955 |
+
* Therefore, if you plan to allocate additional memory *after* the
|
| 956 |
+
* FDICreate() call, you should reserve some memory *prior* to calling
|
| 957 |
+
* FDICreate(), and then free it up afterwards (or do all your allocation
|
| 958 |
+
* before calling FDICreate().
|
| 959 |
+
*/
|
| 960 |
+
HFDI FAR DIAMONDAPI FDICreate(__callback PFNALLOC pfnalloc,
|
| 961 |
+
__callback PFNFREE pfnfree,
|
| 962 |
+
__callback PFNOPEN pfnopen,
|
| 963 |
+
__callback PFNREAD pfnread,
|
| 964 |
+
__callback PFNWRITE pfnwrite,
|
| 965 |
+
__callback PFNCLOSE pfnclose,
|
| 966 |
+
__callback PFNSEEK pfnseek,
|
| 967 |
+
int cpuType,
|
| 968 |
+
_Inout_ PERF perf);
|
| 969 |
+
|
| 970 |
+
|
| 971 |
+
/*** FDIIsCabinet - Determines if file is a cabinet, returns info if it is
|
| 972 |
+
*
|
| 973 |
+
* Entry:
|
| 974 |
+
* hfdi - Handle to FDI context (created by FDICreate())
|
| 975 |
+
* hf - File handle suitable for PFNREAD/PFNSEEK, positioned
|
| 976 |
+
* at offset 0 in the file to test.
|
| 977 |
+
* pfdici - Buffer to receive info about cabinet if it is one.
|
| 978 |
+
*
|
| 979 |
+
* Exit-Success:
|
| 980 |
+
* Returns TRUE; file is a cabinet, pfdici filled in.
|
| 981 |
+
*
|
| 982 |
+
* Exit-Failure:
|
| 983 |
+
* Returns FALSE, file is not a cabinet; If an error occurred,
|
| 984 |
+
* perf (passed on FDICreate call!) filled in with error.
|
| 985 |
+
*/
|
| 986 |
+
BOOL FAR DIAMONDAPI FDIIsCabinet(_In_ HFDI hfdi,
|
| 987 |
+
_In_ INT_PTR hf,
|
| 988 |
+
_Out_opt_ PFDICABINETINFO pfdici);
|
| 989 |
+
|
| 990 |
+
|
| 991 |
+
/*** FDICopy - extracts files from a cabinet
|
| 992 |
+
*
|
| 993 |
+
* Entry:
|
| 994 |
+
* hfdi - handle to FDI context (created by FDICreate())
|
| 995 |
+
* pszCabinet - main name of cabinet file
|
| 996 |
+
* pszCabPath - Path to cabinet file(s)
|
| 997 |
+
* flags - Flags to modify behavior
|
| 998 |
+
* pfnfdin - Notification function
|
| 999 |
+
* pfnfdid - Decryption function (pass NULL if not used)
|
| 1000 |
+
* pvUser - User specified value to pass to notification function
|
| 1001 |
+
*
|
| 1002 |
+
* Exit-Success:
|
| 1003 |
+
* Returns TRUE;
|
| 1004 |
+
*
|
| 1005 |
+
* Exit-Failure:
|
| 1006 |
+
* Returns FALSE, perf (passed on FDICreate call!) filled in with
|
| 1007 |
+
* error.
|
| 1008 |
+
*
|
| 1009 |
+
* Notes:
|
| 1010 |
+
* (1) If FDICopy() fails while a target file is being written out, then
|
| 1011 |
+
* FDI will use the PFNCLOSE function to close the file handle for that
|
| 1012 |
+
* target file that was returned from the fdintCOPY_FILE notification.
|
| 1013 |
+
* The client application is then free to delete the target file, since
|
| 1014 |
+
* it will not be in a valid state (since there was an error while
|
| 1015 |
+
* writing it out).
|
| 1016 |
+
*/
|
| 1017 |
+
BOOL FAR DIAMONDAPI FDICopy(_In_ HFDI hfdi,
|
| 1018 |
+
_In_ LPSTR pszCabinet,
|
| 1019 |
+
_In_ LPSTR pszCabPath,
|
| 1020 |
+
int flags,
|
| 1021 |
+
__callback PFNFDINOTIFY pfnfdin,
|
| 1022 |
+
__callback PFNFDIDECRYPT pfnfdid,
|
| 1023 |
+
_In_opt_ void FAR *pvUser);
|
| 1024 |
+
|
| 1025 |
+
|
| 1026 |
+
/*** FDIDestroy - Destroy an FDI context
|
| 1027 |
+
*
|
| 1028 |
+
* Entry:
|
| 1029 |
+
* hfdi - handle to FDI context (created by FDICreate())
|
| 1030 |
+
*
|
| 1031 |
+
* Exit-Success:
|
| 1032 |
+
* Returns TRUE;
|
| 1033 |
+
*
|
| 1034 |
+
* Exit-Failure:
|
| 1035 |
+
* Returns FALSE;
|
| 1036 |
+
*/
|
| 1037 |
+
BOOL FAR DIAMONDAPI FDIDestroy(_In_ HFDI hfdi);
|
| 1038 |
+
|
| 1039 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 1040 |
+
#pragma endregion
|
| 1041 |
+
|
| 1042 |
+
#pragma region Desktop Family or OneCore Family
|
| 1043 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 1044 |
+
|
| 1045 |
+
/*** FDITruncateCabinet - truncate a cabinet, starting at folder #
|
| 1046 |
+
*
|
| 1047 |
+
* Entry:
|
| 1048 |
+
* hfdi - handle to FDI context (created by FDICreate())
|
| 1049 |
+
* pszCabinet - full pathname of cabinet file
|
| 1050 |
+
* iFolderToDelete - first folder # to delete
|
| 1051 |
+
*
|
| 1052 |
+
* Exit-Success:
|
| 1053 |
+
* Returns TRUE;
|
| 1054 |
+
*
|
| 1055 |
+
* Exit-Failure:
|
| 1056 |
+
* Returns FALSE;
|
| 1057 |
+
*
|
| 1058 |
+
* Most likely failure is unable to open cabinet for writing.
|
| 1059 |
+
*
|
| 1060 |
+
* NOTE: This function relies on additional feature in the
|
| 1061 |
+
* supplied PFNWRITE function, that a write of 0 bytes
|
| 1062 |
+
* will truncate the file at the current position.
|
| 1063 |
+
*/
|
| 1064 |
+
|
| 1065 |
+
BOOL FAR DIAMONDAPI FDITruncateCabinet(_In_ HFDI hfdi,
|
| 1066 |
+
_In_ LPSTR pszCabinetName,
|
| 1067 |
+
USHORT iFolderToDelete);
|
| 1068 |
+
|
| 1069 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 1070 |
+
#pragma endregion
|
| 1071 |
+
|
| 1072 |
+
//** Revert to default structure packing
|
| 1073 |
+
#ifndef _WIN64
|
| 1074 |
+
#include <poppack.h>
|
| 1075 |
+
#endif
|
| 1076 |
+
|
| 1077 |
+
#ifdef __cplusplus
|
| 1078 |
+
}
|
| 1079 |
+
#endif /* __cplusplus */
|
| 1080 |
+
|
| 1081 |
+
|
| 1082 |
+
#endif //!INCLUDED_FDI
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fdi_fci_types.h
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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common defines for FCI/FDI stuff -- goes into FCI/FDI.H
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation
|
| 4 |
+
* All Rights Reserved.
|
| 5 |
+
*
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef INCLUDED_TYPES_FCI_FDI
|
| 9 |
+
#define INCLUDED_TYPES_FCI_FDI 1
|
| 10 |
+
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C" { /* Assume C declarations for C++ */
|
| 15 |
+
#endif /* __cplusplus */
|
| 16 |
+
|
| 17 |
+
//** Define away for 32-bit build
|
| 18 |
+
#ifndef HUGE
|
| 19 |
+
#define HUGE
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
#ifndef FAR
|
| 23 |
+
#define FAR
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
#ifndef DIAMONDAPI
|
| 28 |
+
#define DIAMONDAPI __cdecl
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
//** Specify structure packing explicitly for clients of FDI
|
| 33 |
+
|
| 34 |
+
#ifndef _WIN64
|
| 35 |
+
#include <pshpack4.h>
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
//** Don't redefine types defined in Win16 WINDOWS.H (_INC_WINDOWS)
|
| 40 |
+
// or Win32 WINDOWS.H (_WINDOWS_)
|
| 41 |
+
//
|
| 42 |
+
#if !defined(_INC_WINDOWS) && !defined(_WINDOWS_)
|
| 43 |
+
typedef int BOOL; /* f */
|
| 44 |
+
typedef unsigned char BYTE; /* b */
|
| 45 |
+
typedef unsigned int UINT; /* ui */
|
| 46 |
+
typedef unsigned short USHORT; /* us */
|
| 47 |
+
typedef unsigned long ULONG; /* ul */
|
| 48 |
+
#endif // _INC_WINDOWS
|
| 49 |
+
|
| 50 |
+
typedef unsigned long CHECKSUM; /* csum */
|
| 51 |
+
|
| 52 |
+
typedef unsigned long UOFF; /* uoff - uncompressed offset */
|
| 53 |
+
typedef unsigned long COFF; /* coff - cabinet file offset */
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
#ifndef TRUE
|
| 57 |
+
#define TRUE 1
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#ifndef FALSE
|
| 61 |
+
#define FALSE 0
|
| 62 |
+
#endif
|
| 63 |
+
|
| 64 |
+
#ifndef NULL
|
| 65 |
+
#define NULL 0
|
| 66 |
+
#endif
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
/*** ERF - Error structure
|
| 70 |
+
*
|
| 71 |
+
* This structure returns error information from FCI/FDI. The caller should
|
| 72 |
+
* not modify this structure.
|
| 73 |
+
*/
|
| 74 |
+
typedef struct {
|
| 75 |
+
int erfOper; // FCI/FDI error code -- see FDIERROR_XXX
|
| 76 |
+
// and FCIERR_XXX equates for details.
|
| 77 |
+
|
| 78 |
+
int erfType; // Optional error value filled in by FCI/FDI.
|
| 79 |
+
// For FCI, this is usually the C run-time
|
| 80 |
+
// *errno* value.
|
| 81 |
+
|
| 82 |
+
BOOL fError; // TRUE => error present
|
| 83 |
+
} ERF; /* erf */
|
| 84 |
+
typedef ERF FAR *PERF; /* perf */
|
| 85 |
+
|
| 86 |
+
#ifdef _DEBUG
|
| 87 |
+
// don't hide statics from map during debugging
|
| 88 |
+
#define STATIC
|
| 89 |
+
#else // !DEBUG
|
| 90 |
+
#define STATIC static
|
| 91 |
+
#endif // !DEBUG
|
| 92 |
+
|
| 93 |
+
#define CB_MAX_CHUNK 32768U
|
| 94 |
+
#define CB_MAX_DISK 0x7fffffffL
|
| 95 |
+
#define CB_MAX_FILENAME 256
|
| 96 |
+
#define CB_MAX_CABINET_NAME 256
|
| 97 |
+
#define CB_MAX_CAB_PATH 256
|
| 98 |
+
#define CB_MAX_DISK_NAME 256
|
| 99 |
+
|
| 100 |
+
/*** tcompXXX - Diamond compression types
|
| 101 |
+
*
|
| 102 |
+
* These are passed to FCIAddFile(), and are also stored in the CFFOLDER
|
| 103 |
+
* structures in cabinet files.
|
| 104 |
+
*
|
| 105 |
+
* NOTE: We reserve bits for the TYPE, QUANTUM_LEVEL, and QUANTUM_MEM
|
| 106 |
+
* to provide room for future expansion. Since this value is stored
|
| 107 |
+
* in the CFDATA records in the cabinet file, we don't want to
|
| 108 |
+
* have to change the format for existing compression configurations
|
| 109 |
+
* if we add new ones in the future. This will allows us to read
|
| 110 |
+
* old cabinet files in the future.
|
| 111 |
+
*/
|
| 112 |
+
|
| 113 |
+
typedef unsigned short TCOMP; /* tcomp */
|
| 114 |
+
|
| 115 |
+
#define tcompMASK_TYPE 0x000F // Mask for compression type
|
| 116 |
+
#define tcompTYPE_NONE 0x0000 // No compression
|
| 117 |
+
#define tcompTYPE_MSZIP 0x0001 // MSZIP
|
| 118 |
+
#define tcompTYPE_QUANTUM 0x0002 // Quantum
|
| 119 |
+
#define tcompTYPE_LZX 0x0003 // LZX
|
| 120 |
+
#define tcompBAD 0x000F // Unspecified compression type
|
| 121 |
+
|
| 122 |
+
#define tcompMASK_LZX_WINDOW 0x1F00 // Mask for LZX Compression Memory
|
| 123 |
+
#define tcompLZX_WINDOW_LO 0x0F00 // Lowest LZX Memory (15)
|
| 124 |
+
#define tcompLZX_WINDOW_HI 0x1500 // Highest LZX Memory (21)
|
| 125 |
+
#define tcompSHIFT_LZX_WINDOW 8 // Amount to shift over to get int
|
| 126 |
+
|
| 127 |
+
#define tcompMASK_QUANTUM_LEVEL 0x00F0 // Mask for Quantum Compression Level
|
| 128 |
+
#define tcompQUANTUM_LEVEL_LO 0x0010 // Lowest Quantum Level (1)
|
| 129 |
+
#define tcompQUANTUM_LEVEL_HI 0x0070 // Highest Quantum Level (7)
|
| 130 |
+
#define tcompSHIFT_QUANTUM_LEVEL 4 // Amount to shift over to get int
|
| 131 |
+
|
| 132 |
+
#define tcompMASK_QUANTUM_MEM 0x1F00 // Mask for Quantum Compression Memory
|
| 133 |
+
#define tcompQUANTUM_MEM_LO 0x0A00 // Lowest Quantum Memory (10)
|
| 134 |
+
#define tcompQUANTUM_MEM_HI 0x1500 // Highest Quantum Memory (21)
|
| 135 |
+
#define tcompSHIFT_QUANTUM_MEM 8 // Amount to shift over to get int
|
| 136 |
+
|
| 137 |
+
#define tcompMASK_RESERVED 0xE000 // Reserved bits (high 3 bits)
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
#define CompressionTypeFromTCOMP(tc) \
|
| 142 |
+
((tc) & tcompMASK_TYPE)
|
| 143 |
+
|
| 144 |
+
#define CompressionLevelFromTCOMP(tc) \
|
| 145 |
+
(((tc) & tcompMASK_QUANTUM_LEVEL) >> tcompSHIFT_QUANTUM_LEVEL)
|
| 146 |
+
|
| 147 |
+
#define CompressionMemoryFromTCOMP(tc) \
|
| 148 |
+
(((tc) & tcompMASK_QUANTUM_MEM) >> tcompSHIFT_QUANTUM_MEM)
|
| 149 |
+
|
| 150 |
+
#define TCOMPfromTypeLevelMemory(t,l,m) \
|
| 151 |
+
(((m) << tcompSHIFT_QUANTUM_MEM ) | \
|
| 152 |
+
((l) << tcompSHIFT_QUANTUM_LEVEL) | \
|
| 153 |
+
( t ))
|
| 154 |
+
|
| 155 |
+
#define LZXCompressionWindowFromTCOMP(tc) \
|
| 156 |
+
(((tc) & tcompMASK_LZX_WINDOW) >> tcompSHIFT_LZX_WINDOW)
|
| 157 |
+
|
| 158 |
+
#define TCOMPfromLZXWindow(w) \
|
| 159 |
+
(((w) << tcompSHIFT_LZX_WINDOW ) | \
|
| 160 |
+
( tcompTYPE_LZX ))
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
//** Revert to default structure packing
|
| 164 |
+
|
| 165 |
+
#ifndef _WIN64
|
| 166 |
+
#include <poppack.h>
|
| 167 |
+
#endif
|
| 168 |
+
|
| 169 |
+
#ifdef __cplusplus
|
| 170 |
+
}
|
| 171 |
+
#endif /* __cplusplus */
|
| 172 |
+
|
| 173 |
+
#endif // !INCLUDED_TYPES_FCI_FDI
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/featurestagingapi.h
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*********************************************************************************
|
| 2 |
+
* *
|
| 3 |
+
* featurestagingapi.h -- ApiSet Contract for api-ms-win-core-featurestaging-l1 *
|
| 4 |
+
* *
|
| 5 |
+
* Copyright (c) Microsoft Corporation. All rights reserved. *
|
| 6 |
+
* *
|
| 7 |
+
**********************************************************************************/
|
| 8 |
+
|
| 9 |
+
#ifndef _APISET_WIL_FEATURESTAGING_
|
| 10 |
+
#define _APISET_WIL_FEATURESTAGING_
|
| 11 |
+
|
| 12 |
+
#include <apiset.h>
|
| 13 |
+
#include <apisetcconv.h>
|
| 14 |
+
#ifdef _CONTRACT_GEN
|
| 15 |
+
#include <nt.h>
|
| 16 |
+
#include <ntrtl.h>
|
| 17 |
+
#include <nturtl.h>
|
| 18 |
+
#include <windows.h>
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
typedef enum FEATURE_CHANGE_TIME
|
| 22 |
+
{
|
| 23 |
+
FEATURE_CHANGE_TIME_READ = 0,
|
| 24 |
+
FEATURE_CHANGE_TIME_MODULE_RELOAD = 1,
|
| 25 |
+
FEATURE_CHANGE_TIME_SESSION = 2,
|
| 26 |
+
FEATURE_CHANGE_TIME_REBOOT = 3
|
| 27 |
+
} FEATURE_CHANGE_TIME;
|
| 28 |
+
|
| 29 |
+
typedef enum FEATURE_ENABLED_STATE
|
| 30 |
+
{
|
| 31 |
+
FEATURE_ENABLED_STATE_DEFAULT = 0,
|
| 32 |
+
FEATURE_ENABLED_STATE_DISABLED = 1,
|
| 33 |
+
FEATURE_ENABLED_STATE_ENABLED = 2
|
| 34 |
+
} FEATURE_ENABLED_STATE;
|
| 35 |
+
|
| 36 |
+
typedef struct FEATURE_ERROR
|
| 37 |
+
{
|
| 38 |
+
HRESULT hr;
|
| 39 |
+
UINT16 lineNumber;
|
| 40 |
+
PCSTR file;
|
| 41 |
+
PCSTR process;
|
| 42 |
+
PCSTR module;
|
| 43 |
+
UINT32 callerReturnAddressOffset;
|
| 44 |
+
PCSTR callerModule;
|
| 45 |
+
PCSTR message;
|
| 46 |
+
UINT16 originLineNumber;
|
| 47 |
+
PCSTR originFile;
|
| 48 |
+
PCSTR originModule;
|
| 49 |
+
UINT32 originCallerReturnAddressOffset;
|
| 50 |
+
PCSTR originCallerModule;
|
| 51 |
+
PCSTR originName;
|
| 52 |
+
} FEATURE_ERROR;
|
| 53 |
+
|
| 54 |
+
DECLARE_HANDLE(FEATURE_STATE_CHANGE_SUBSCRIPTION);
|
| 55 |
+
typedef void WINAPI FEATURE_STATE_CHANGE_CALLBACK(_In_opt_ void* context);
|
| 56 |
+
typedef FEATURE_STATE_CHANGE_CALLBACK *PFEATURE_STATE_CHANGE_CALLBACK;
|
| 57 |
+
|
| 58 |
+
EXTERN_C
|
| 59 |
+
|
| 60 |
+
FEATURE_ENABLED_STATE
|
| 61 |
+
GetFeatureEnabledState(
|
| 62 |
+
UINT32 featureId,
|
| 63 |
+
FEATURE_CHANGE_TIME changeTime
|
| 64 |
+
);
|
| 65 |
+
|
| 66 |
+
EXTERN_C
|
| 67 |
+
|
| 68 |
+
void
|
| 69 |
+
RecordFeatureUsage(
|
| 70 |
+
UINT32 featureId,
|
| 71 |
+
UINT32 kind,
|
| 72 |
+
UINT32 addend,
|
| 73 |
+
_In_ PCSTR originName
|
| 74 |
+
);
|
| 75 |
+
|
| 76 |
+
EXTERN_C
|
| 77 |
+
|
| 78 |
+
void
|
| 79 |
+
RecordFeatureError(
|
| 80 |
+
UINT32 featureId,
|
| 81 |
+
_In_ const FEATURE_ERROR* error
|
| 82 |
+
);
|
| 83 |
+
|
| 84 |
+
EXTERN_C
|
| 85 |
+
|
| 86 |
+
void
|
| 87 |
+
SubscribeFeatureStateChangeNotification(
|
| 88 |
+
_Outptr_ FEATURE_STATE_CHANGE_SUBSCRIPTION* subscription,
|
| 89 |
+
_In_ PFEATURE_STATE_CHANGE_CALLBACK callback,
|
| 90 |
+
_In_opt_ void* context
|
| 91 |
+
);
|
| 92 |
+
|
| 93 |
+
EXTERN_C
|
| 94 |
+
|
| 95 |
+
void
|
| 96 |
+
UnsubscribeFeatureStateChangeNotification(
|
| 97 |
+
_In_ _Post_invalid_ FEATURE_STATE_CHANGE_SUBSCRIPTION subscription
|
| 98 |
+
);
|
| 99 |
+
|
| 100 |
+
EXTERN_C
|
| 101 |
+
|
| 102 |
+
UINT32
|
| 103 |
+
GetFeatureVariant(
|
| 104 |
+
UINT32 featureId,
|
| 105 |
+
FEATURE_CHANGE_TIME changeTime,
|
| 106 |
+
_Out_ UINT32* payloadId,
|
| 107 |
+
_Out_ BOOL* hasNotification
|
| 108 |
+
);
|
| 109 |
+
#endif // _APISET_WIL_FEATURESTAGING_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fibersapi.h
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/********************************************************************************
|
| 2 |
+
* *
|
| 3 |
+
* fibersapi.h - ApiSet Contract for api-ms-win-core-fibers-l1 *
|
| 4 |
+
* *
|
| 5 |
+
* Copyright (c) Microsoft Corporation. All rights reserved. *
|
| 6 |
+
* *
|
| 7 |
+
********************************************************************************/
|
| 8 |
+
|
| 9 |
+
#ifdef _MSC_VER
|
| 10 |
+
#pragma once
|
| 11 |
+
#endif // _MSC_VER
|
| 12 |
+
|
| 13 |
+
#ifndef _FIBERS_H_
|
| 14 |
+
#define _FIBERS_H_
|
| 15 |
+
|
| 16 |
+
#include <apiset.h>
|
| 17 |
+
#include <apisetcconv.h>
|
| 18 |
+
#include <minwindef.h>
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 25 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 26 |
+
|
| 27 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 28 |
+
|
| 29 |
+
#ifndef FLS_OUT_OF_INDEXES
|
| 30 |
+
#define FLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
|
| 31 |
+
#endif
|
| 32 |
+
|
| 33 |
+
WINBASEAPI
|
| 34 |
+
DWORD
|
| 35 |
+
WINAPI
|
| 36 |
+
FlsAlloc(
|
| 37 |
+
_In_opt_ PFLS_CALLBACK_FUNCTION lpCallback
|
| 38 |
+
);
|
| 39 |
+
|
| 40 |
+
WINBASEAPI
|
| 41 |
+
PVOID
|
| 42 |
+
WINAPI
|
| 43 |
+
FlsGetValue(
|
| 44 |
+
_In_ DWORD dwFlsIndex
|
| 45 |
+
);
|
| 46 |
+
|
| 47 |
+
WINBASEAPI
|
| 48 |
+
BOOL
|
| 49 |
+
WINAPI
|
| 50 |
+
FlsSetValue(
|
| 51 |
+
_In_ DWORD dwFlsIndex,
|
| 52 |
+
_In_opt_ PVOID lpFlsData
|
| 53 |
+
);
|
| 54 |
+
|
| 55 |
+
WINBASEAPI
|
| 56 |
+
BOOL
|
| 57 |
+
WINAPI
|
| 58 |
+
FlsFree(
|
| 59 |
+
_In_ DWORD dwFlsIndex
|
| 60 |
+
);
|
| 61 |
+
|
| 62 |
+
#endif // (_WIN32_WINNT >= 0x0600)
|
| 63 |
+
|
| 64 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 65 |
+
#pragma endregion
|
| 66 |
+
|
| 67 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 68 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 69 |
+
|
| 70 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 71 |
+
|
| 72 |
+
WINBASEAPI
|
| 73 |
+
BOOL
|
| 74 |
+
WINAPI
|
| 75 |
+
IsThreadAFiber(
|
| 76 |
+
VOID
|
| 77 |
+
);
|
| 78 |
+
|
| 79 |
+
#endif // (_WIN32_WINNT >= 0x0600)
|
| 80 |
+
|
| 81 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 82 |
+
#pragma endregion
|
| 83 |
+
|
| 84 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 85 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 86 |
+
|
| 87 |
+
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
|
| 88 |
+
|
| 89 |
+
WINBASEAPI
|
| 90 |
+
PVOID
|
| 91 |
+
WINAPI
|
| 92 |
+
FlsGetValue2(
|
| 93 |
+
_In_ DWORD dwTlsIndex
|
| 94 |
+
);
|
| 95 |
+
|
| 96 |
+
#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
|
| 97 |
+
|
| 98 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 99 |
+
#pragma endregion
|
| 100 |
+
|
| 101 |
+
#ifdef __cplusplus
|
| 102 |
+
}
|
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copyright (c) Microsoft Corporation. All rights reserved. *
|
| 6 |
+
* *
|
| 7 |
+
********************************************************************************/
|
| 8 |
+
|
| 9 |
+
#ifdef _MSC_VER
|
| 10 |
+
#pragma once
|
| 11 |
+
#endif // _MSC_VER
|
| 12 |
+
|
| 13 |
+
#ifndef _APISETFILE_
|
| 14 |
+
#define _APISETFILE_
|
| 15 |
+
|
| 16 |
+
#include <apiset.h>
|
| 17 |
+
#include <apisetcconv.h>
|
| 18 |
+
#include <minwindef.h>
|
| 19 |
+
#include <minwinbase.h>
|
| 20 |
+
|
| 21 |
+
#ifdef __cplusplus
|
| 22 |
+
extern "C" {
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 26 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 27 |
+
|
| 28 |
+
//
|
| 29 |
+
// Constants
|
| 30 |
+
//
|
| 31 |
+
#define CREATE_NEW 1
|
| 32 |
+
#define CREATE_ALWAYS 2
|
| 33 |
+
#define OPEN_EXISTING 3
|
| 34 |
+
#define OPEN_ALWAYS 4
|
| 35 |
+
#define TRUNCATE_EXISTING 5
|
| 36 |
+
|
| 37 |
+
#define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF)
|
| 38 |
+
#define INVALID_SET_FILE_POINTER ((DWORD)-1)
|
| 39 |
+
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
|
| 40 |
+
|
| 41 |
+
WINBASEAPI
|
| 42 |
+
LONG
|
| 43 |
+
WINAPI
|
| 44 |
+
CompareFileTime(
|
| 45 |
+
_In_ CONST FILETIME* lpFileTime1,
|
| 46 |
+
_In_ CONST FILETIME* lpFileTime2
|
| 47 |
+
);
|
| 48 |
+
|
| 49 |
+
WINBASEAPI
|
| 50 |
+
BOOL
|
| 51 |
+
WINAPI
|
| 52 |
+
CreateDirectoryA(
|
| 53 |
+
_In_ LPCSTR lpPathName,
|
| 54 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes
|
| 55 |
+
);
|
| 56 |
+
|
| 57 |
+
WINBASEAPI
|
| 58 |
+
BOOL
|
| 59 |
+
WINAPI
|
| 60 |
+
CreateDirectoryW(
|
| 61 |
+
_In_ LPCWSTR lpPathName,
|
| 62 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes
|
| 63 |
+
);
|
| 64 |
+
#ifdef UNICODE
|
| 65 |
+
#define CreateDirectory CreateDirectoryW
|
| 66 |
+
#else
|
| 67 |
+
#define CreateDirectory CreateDirectoryA
|
| 68 |
+
#endif // !UNICODE
|
| 69 |
+
|
| 70 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 71 |
+
#pragma endregion
|
| 72 |
+
|
| 73 |
+
#pragma region Desktop Family or OneCore Family or Games Family
|
| 74 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 75 |
+
|
| 76 |
+
WINBASEAPI
|
| 77 |
+
HANDLE
|
| 78 |
+
WINAPI
|
| 79 |
+
CreateFileA(
|
| 80 |
+
_In_ LPCSTR lpFileName,
|
| 81 |
+
_In_ DWORD dwDesiredAccess,
|
| 82 |
+
_In_ DWORD dwShareMode,
|
| 83 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
| 84 |
+
_In_ DWORD dwCreationDisposition,
|
| 85 |
+
_In_ DWORD dwFlagsAndAttributes,
|
| 86 |
+
_In_opt_ HANDLE hTemplateFile
|
| 87 |
+
);
|
| 88 |
+
|
| 89 |
+
WINBASEAPI
|
| 90 |
+
HANDLE
|
| 91 |
+
WINAPI
|
| 92 |
+
CreateFileW(
|
| 93 |
+
_In_ LPCWSTR lpFileName,
|
| 94 |
+
_In_ DWORD dwDesiredAccess,
|
| 95 |
+
_In_ DWORD dwShareMode,
|
| 96 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
| 97 |
+
_In_ DWORD dwCreationDisposition,
|
| 98 |
+
_In_ DWORD dwFlagsAndAttributes,
|
| 99 |
+
_In_opt_ HANDLE hTemplateFile
|
| 100 |
+
);
|
| 101 |
+
#ifdef UNICODE
|
| 102 |
+
#define CreateFile CreateFileW
|
| 103 |
+
#else
|
| 104 |
+
#define CreateFile CreateFileA
|
| 105 |
+
#endif // !UNICODE
|
| 106 |
+
|
| 107 |
+
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 108 |
+
#pragma endregion
|
| 109 |
+
|
| 110 |
+
#pragma region Desktop Family or OneCore Family
|
| 111 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 112 |
+
|
| 113 |
+
WINBASEAPI
|
| 114 |
+
BOOL
|
| 115 |
+
WINAPI
|
| 116 |
+
DefineDosDeviceW(
|
| 117 |
+
_In_ DWORD dwFlags,
|
| 118 |
+
_In_ LPCWSTR lpDeviceName,
|
| 119 |
+
_In_opt_ LPCWSTR lpTargetPath
|
| 120 |
+
);
|
| 121 |
+
|
| 122 |
+
#ifdef UNICODE
|
| 123 |
+
#define DefineDosDevice DefineDosDeviceW
|
| 124 |
+
#endif
|
| 125 |
+
|
| 126 |
+
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 127 |
+
#pragma endregion
|
| 128 |
+
|
| 129 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 130 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 131 |
+
|
| 132 |
+
WINBASEAPI
|
| 133 |
+
BOOL
|
| 134 |
+
WINAPI
|
| 135 |
+
DeleteFileA(
|
| 136 |
+
_In_ LPCSTR lpFileName
|
| 137 |
+
);
|
| 138 |
+
|
| 139 |
+
WINBASEAPI
|
| 140 |
+
BOOL
|
| 141 |
+
WINAPI
|
| 142 |
+
DeleteFileW(
|
| 143 |
+
_In_ LPCWSTR lpFileName
|
| 144 |
+
);
|
| 145 |
+
#ifdef UNICODE
|
| 146 |
+
#define DeleteFile DeleteFileW
|
| 147 |
+
#else
|
| 148 |
+
#define DeleteFile DeleteFileA
|
| 149 |
+
#endif // !UNICODE
|
| 150 |
+
|
| 151 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 152 |
+
#pragma endregion
|
| 153 |
+
|
| 154 |
+
#pragma region Application Family or OneCore Family
|
| 155 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 156 |
+
|
| 157 |
+
WINBASEAPI
|
| 158 |
+
BOOL
|
| 159 |
+
WINAPI
|
| 160 |
+
DeleteVolumeMountPointW(
|
| 161 |
+
_In_ LPCWSTR lpszVolumeMountPoint
|
| 162 |
+
);
|
| 163 |
+
|
| 164 |
+
#ifdef UNICODE
|
| 165 |
+
#define DeleteVolumeMountPoint DeleteVolumeMountPointW
|
| 166 |
+
#endif
|
| 167 |
+
|
| 168 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 169 |
+
#pragma endregion
|
| 170 |
+
|
| 171 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 172 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 173 |
+
|
| 174 |
+
WINBASEAPI
|
| 175 |
+
BOOL
|
| 176 |
+
WINAPI
|
| 177 |
+
FileTimeToLocalFileTime(
|
| 178 |
+
_In_ CONST FILETIME* lpFileTime,
|
| 179 |
+
_Out_ LPFILETIME lpLocalFileTime
|
| 180 |
+
);
|
| 181 |
+
|
| 182 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 183 |
+
#pragma endregion
|
| 184 |
+
|
| 185 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 186 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 187 |
+
|
| 188 |
+
WINBASEAPI
|
| 189 |
+
BOOL
|
| 190 |
+
WINAPI
|
| 191 |
+
FindClose(
|
| 192 |
+
_Inout_ HANDLE hFindFile
|
| 193 |
+
);
|
| 194 |
+
|
| 195 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 196 |
+
#pragma endregion
|
| 197 |
+
|
| 198 |
+
#pragma region Application Family or OneCore Family
|
| 199 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 200 |
+
|
| 201 |
+
WINBASEAPI
|
| 202 |
+
BOOL
|
| 203 |
+
WINAPI
|
| 204 |
+
FindCloseChangeNotification(
|
| 205 |
+
_In_ HANDLE hChangeHandle
|
| 206 |
+
);
|
| 207 |
+
|
| 208 |
+
WINBASEAPI
|
| 209 |
+
HANDLE
|
| 210 |
+
WINAPI
|
| 211 |
+
FindFirstChangeNotificationA(
|
| 212 |
+
_In_ LPCSTR lpPathName,
|
| 213 |
+
_In_ BOOL bWatchSubtree,
|
| 214 |
+
_In_ DWORD dwNotifyFilter
|
| 215 |
+
);
|
| 216 |
+
|
| 217 |
+
WINBASEAPI
|
| 218 |
+
HANDLE
|
| 219 |
+
WINAPI
|
| 220 |
+
FindFirstChangeNotificationW(
|
| 221 |
+
_In_ LPCWSTR lpPathName,
|
| 222 |
+
_In_ BOOL bWatchSubtree,
|
| 223 |
+
_In_ DWORD dwNotifyFilter
|
| 224 |
+
);
|
| 225 |
+
#ifdef UNICODE
|
| 226 |
+
#define FindFirstChangeNotification FindFirstChangeNotificationW
|
| 227 |
+
#else
|
| 228 |
+
#define FindFirstChangeNotification FindFirstChangeNotificationA
|
| 229 |
+
#endif // !UNICODE
|
| 230 |
+
|
| 231 |
+
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 232 |
+
#pragma endregion
|
| 233 |
+
|
| 234 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 235 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 236 |
+
|
| 237 |
+
WINBASEAPI
|
| 238 |
+
HANDLE
|
| 239 |
+
WINAPI
|
| 240 |
+
FindFirstFileA(
|
| 241 |
+
_In_ LPCSTR lpFileName,
|
| 242 |
+
_Out_ LPWIN32_FIND_DATAA lpFindFileData
|
| 243 |
+
);
|
| 244 |
+
|
| 245 |
+
WINBASEAPI
|
| 246 |
+
HANDLE
|
| 247 |
+
WINAPI
|
| 248 |
+
FindFirstFileW(
|
| 249 |
+
_In_ LPCWSTR lpFileName,
|
| 250 |
+
_Out_ LPWIN32_FIND_DATAW lpFindFileData
|
| 251 |
+
);
|
| 252 |
+
#ifdef UNICODE
|
| 253 |
+
#define FindFirstFile FindFirstFileW
|
| 254 |
+
#else
|
| 255 |
+
#define FindFirstFile FindFirstFileA
|
| 256 |
+
#endif // !UNICODE
|
| 257 |
+
|
| 258 |
+
#if (_WIN32_WINNT >= 0x0400)
|
| 259 |
+
|
| 260 |
+
WINBASEAPI
|
| 261 |
+
HANDLE
|
| 262 |
+
WINAPI
|
| 263 |
+
FindFirstFileExA(
|
| 264 |
+
_In_ LPCSTR lpFileName,
|
| 265 |
+
_In_ FINDEX_INFO_LEVELS fInfoLevelId,
|
| 266 |
+
_Out_writes_bytes_(sizeof(WIN32_FIND_DATAA)) LPVOID lpFindFileData,
|
| 267 |
+
_In_ FINDEX_SEARCH_OPS fSearchOp,
|
| 268 |
+
_Reserved_ LPVOID lpSearchFilter,
|
| 269 |
+
_In_ DWORD dwAdditionalFlags
|
| 270 |
+
);
|
| 271 |
+
|
| 272 |
+
WINBASEAPI
|
| 273 |
+
HANDLE
|
| 274 |
+
WINAPI
|
| 275 |
+
FindFirstFileExW(
|
| 276 |
+
_In_ LPCWSTR lpFileName,
|
| 277 |
+
_In_ FINDEX_INFO_LEVELS fInfoLevelId,
|
| 278 |
+
_Out_writes_bytes_(sizeof(WIN32_FIND_DATAW)) LPVOID lpFindFileData,
|
| 279 |
+
_In_ FINDEX_SEARCH_OPS fSearchOp,
|
| 280 |
+
_Reserved_ LPVOID lpSearchFilter,
|
| 281 |
+
_In_ DWORD dwAdditionalFlags
|
| 282 |
+
);
|
| 283 |
+
#ifdef UNICODE
|
| 284 |
+
#define FindFirstFileEx FindFirstFileExW
|
| 285 |
+
#else
|
| 286 |
+
#define FindFirstFileEx FindFirstFileExA
|
| 287 |
+
#endif // !UNICODE
|
| 288 |
+
|
| 289 |
+
#endif /* _WIN32_WINNT >= 0x0400 */
|
| 290 |
+
|
| 291 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 292 |
+
#pragma endregion
|
| 293 |
+
|
| 294 |
+
#pragma region Application Family or OneCore Family
|
| 295 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 296 |
+
|
| 297 |
+
WINBASEAPI
|
| 298 |
+
HANDLE
|
| 299 |
+
WINAPI
|
| 300 |
+
FindFirstVolumeW(
|
| 301 |
+
_Out_writes_(cchBufferLength) LPWSTR lpszVolumeName,
|
| 302 |
+
_In_ DWORD cchBufferLength
|
| 303 |
+
);
|
| 304 |
+
|
| 305 |
+
#ifdef UNICODE
|
| 306 |
+
#define FindFirstVolume FindFirstVolumeW
|
| 307 |
+
#endif // !UNICODE
|
| 308 |
+
|
| 309 |
+
WINBASEAPI
|
| 310 |
+
BOOL
|
| 311 |
+
WINAPI
|
| 312 |
+
FindNextChangeNotification(
|
| 313 |
+
_In_ HANDLE hChangeHandle
|
| 314 |
+
);
|
| 315 |
+
|
| 316 |
+
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 317 |
+
#pragma endregion
|
| 318 |
+
|
| 319 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 320 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 321 |
+
|
| 322 |
+
WINBASEAPI
|
| 323 |
+
BOOL
|
| 324 |
+
WINAPI
|
| 325 |
+
FindNextFileA(
|
| 326 |
+
_In_ HANDLE hFindFile,
|
| 327 |
+
_Out_ LPWIN32_FIND_DATAA lpFindFileData
|
| 328 |
+
);
|
| 329 |
+
|
| 330 |
+
WINBASEAPI
|
| 331 |
+
BOOL
|
| 332 |
+
WINAPI
|
| 333 |
+
FindNextFileW(
|
| 334 |
+
_In_ HANDLE hFindFile,
|
| 335 |
+
_Out_ LPWIN32_FIND_DATAW lpFindFileData
|
| 336 |
+
);
|
| 337 |
+
#ifdef UNICODE
|
| 338 |
+
#define FindNextFile FindNextFileW
|
| 339 |
+
#else
|
| 340 |
+
#define FindNextFile FindNextFileA
|
| 341 |
+
#endif // !UNICODE
|
| 342 |
+
|
| 343 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 344 |
+
#pragma endregion
|
| 345 |
+
|
| 346 |
+
#pragma region Application Family or OneCore Family
|
| 347 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 348 |
+
|
| 349 |
+
WINBASEAPI
|
| 350 |
+
BOOL
|
| 351 |
+
WINAPI
|
| 352 |
+
FindNextVolumeW(
|
| 353 |
+
_Inout_ HANDLE hFindVolume,
|
| 354 |
+
_Out_writes_(cchBufferLength) LPWSTR lpszVolumeName,
|
| 355 |
+
_In_ DWORD cchBufferLength
|
| 356 |
+
);
|
| 357 |
+
|
| 358 |
+
#ifdef UNICODE
|
| 359 |
+
#define FindNextVolume FindNextVolumeW
|
| 360 |
+
#endif
|
| 361 |
+
|
| 362 |
+
WINBASEAPI
|
| 363 |
+
BOOL
|
| 364 |
+
WINAPI
|
| 365 |
+
FindVolumeClose(
|
| 366 |
+
_In_ HANDLE hFindVolume
|
| 367 |
+
);
|
| 368 |
+
|
| 369 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 370 |
+
#pragma endregion
|
| 371 |
+
|
| 372 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 373 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 374 |
+
|
| 375 |
+
WINBASEAPI
|
| 376 |
+
BOOL
|
| 377 |
+
WINAPI
|
| 378 |
+
FlushFileBuffers(
|
| 379 |
+
_In_ HANDLE hFile
|
| 380 |
+
);
|
| 381 |
+
|
| 382 |
+
WINBASEAPI
|
| 383 |
+
BOOL
|
| 384 |
+
WINAPI
|
| 385 |
+
GetDiskFreeSpaceA(
|
| 386 |
+
_In_opt_ LPCSTR lpRootPathName,
|
| 387 |
+
_Out_opt_ LPDWORD lpSectorsPerCluster,
|
| 388 |
+
_Out_opt_ LPDWORD lpBytesPerSector,
|
| 389 |
+
_Out_opt_ LPDWORD lpNumberOfFreeClusters,
|
| 390 |
+
_Out_opt_ LPDWORD lpTotalNumberOfClusters
|
| 391 |
+
);
|
| 392 |
+
|
| 393 |
+
WINBASEAPI
|
| 394 |
+
BOOL
|
| 395 |
+
WINAPI
|
| 396 |
+
GetDiskFreeSpaceW(
|
| 397 |
+
_In_opt_ LPCWSTR lpRootPathName,
|
| 398 |
+
_Out_opt_ LPDWORD lpSectorsPerCluster,
|
| 399 |
+
_Out_opt_ LPDWORD lpBytesPerSector,
|
| 400 |
+
_Out_opt_ LPDWORD lpNumberOfFreeClusters,
|
| 401 |
+
_Out_opt_ LPDWORD lpTotalNumberOfClusters
|
| 402 |
+
);
|
| 403 |
+
#ifdef UNICODE
|
| 404 |
+
#define GetDiskFreeSpace GetDiskFreeSpaceW
|
| 405 |
+
#else
|
| 406 |
+
#define GetDiskFreeSpace GetDiskFreeSpaceA
|
| 407 |
+
#endif // !UNICODE
|
| 408 |
+
|
| 409 |
+
WINBASEAPI
|
| 410 |
+
BOOL
|
| 411 |
+
WINAPI
|
| 412 |
+
GetDiskFreeSpaceExA(
|
| 413 |
+
_In_opt_ LPCSTR lpDirectoryName,
|
| 414 |
+
_Out_opt_ PULARGE_INTEGER lpFreeBytesAvailableToCaller,
|
| 415 |
+
_Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes,
|
| 416 |
+
_Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes
|
| 417 |
+
);
|
| 418 |
+
|
| 419 |
+
WINBASEAPI
|
| 420 |
+
BOOL
|
| 421 |
+
WINAPI
|
| 422 |
+
GetDiskFreeSpaceExW(
|
| 423 |
+
_In_opt_ LPCWSTR lpDirectoryName,
|
| 424 |
+
_Out_opt_ PULARGE_INTEGER lpFreeBytesAvailableToCaller,
|
| 425 |
+
_Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes,
|
| 426 |
+
_Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes
|
| 427 |
+
);
|
| 428 |
+
#ifdef UNICODE
|
| 429 |
+
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExW
|
| 430 |
+
#else
|
| 431 |
+
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExA
|
| 432 |
+
#endif // !UNICODE
|
| 433 |
+
|
| 434 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 435 |
+
#pragma endregion
|
| 436 |
+
|
| 437 |
+
#pragma region Application Family or OneCore Family
|
| 438 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 439 |
+
|
| 440 |
+
//
|
| 441 |
+
// The structure definition must be same as the one
|
| 442 |
+
// (FILE_FS_FULL_SIZE_INFORMATION_EX) defined in ntioapi_x.w
|
| 443 |
+
//
|
| 444 |
+
|
| 445 |
+
typedef struct DISK_SPACE_INFORMATION {
|
| 446 |
+
|
| 447 |
+
//
|
| 448 |
+
// AllocationUnits are actually file system clusters.
|
| 449 |
+
// AllocationUnits * SectorsPerAllocationUnit * BytesPerSector
|
| 450 |
+
// will get you the sizes in bytes.
|
| 451 |
+
//
|
| 452 |
+
|
| 453 |
+
//
|
| 454 |
+
// The Actual*AllocationUnits are volume sizes without considering Quota
|
| 455 |
+
// setting.
|
| 456 |
+
// ActualPoolUnavailableAllocationUnits is the unavailable space for the
|
| 457 |
+
// volume due to insufficient free pool space (PoolAvailableAllocationUnits).
|
| 458 |
+
// Be aware AllocationUnits are mesured in clusters, see comments at the beginning.
|
| 459 |
+
//
|
| 460 |
+
// ActualTotalAllocationUnits = ActualAvailableAllocationUnits +
|
| 461 |
+
// ActualPoolUnavailableAllocationUnits +
|
| 462 |
+
// UsedAllocationUnits +
|
| 463 |
+
// TotalReservedAllocationUnits
|
| 464 |
+
//
|
| 465 |
+
|
| 466 |
+
ULONGLONG ActualTotalAllocationUnits;
|
| 467 |
+
ULONGLONG ActualAvailableAllocationUnits;
|
| 468 |
+
ULONGLONG ActualPoolUnavailableAllocationUnits;
|
| 469 |
+
|
| 470 |
+
//
|
| 471 |
+
// The Caller*AllocationUnits are limited by Quota setting.
|
| 472 |
+
// CallerPoolUnavailableAllocationUnits is the unavailable space for the
|
| 473 |
+
// volume due to insufficient free pool space (PoolAvailableAllocationUnits).
|
| 474 |
+
// Be aware AllocationUnits are mesured in clusters, see comments at the beginning.
|
| 475 |
+
//
|
| 476 |
+
// CallerTotalAllocationUnits = CallerAvailableAllocationUnits +
|
| 477 |
+
// CallerPoolUnavailableAllocationUnits +
|
| 478 |
+
// UsedAllocationUnits +
|
| 479 |
+
// TotalReservedAllocationUnits
|
| 480 |
+
//
|
| 481 |
+
|
| 482 |
+
ULONGLONG CallerTotalAllocationUnits;
|
| 483 |
+
ULONGLONG CallerAvailableAllocationUnits;
|
| 484 |
+
ULONGLONG CallerPoolUnavailableAllocationUnits;
|
| 485 |
+
|
| 486 |
+
//
|
| 487 |
+
// The used space (in clusters) of the volume.
|
| 488 |
+
//
|
| 489 |
+
|
| 490 |
+
ULONGLONG UsedAllocationUnits;
|
| 491 |
+
|
| 492 |
+
//
|
| 493 |
+
// Total reserved space (in clusters).
|
| 494 |
+
//
|
| 495 |
+
|
| 496 |
+
ULONGLONG TotalReservedAllocationUnits;
|
| 497 |
+
|
| 498 |
+
//
|
| 499 |
+
// A special type of reserved space (in clusters) for per-volume storage
|
| 500 |
+
// reserve and this is included in the above TotalReservedAllocationUnits.
|
| 501 |
+
//
|
| 502 |
+
|
| 503 |
+
ULONGLONG VolumeStorageReserveAllocationUnits;
|
| 504 |
+
|
| 505 |
+
//
|
| 506 |
+
// This refers to the space (in clusters) that has been committed by
|
| 507 |
+
// storage pool but has not been allocated by file system.
|
| 508 |
+
//
|
| 509 |
+
// s1 = (ActualTotalAllocationUnits - UsedAllocationUnits - TotalReservedAllocationUnits)
|
| 510 |
+
// s2 = (AvailableCommittedAllocationUnits + PoolAvailableAllocationUnits)
|
| 511 |
+
// ActualAvailableAllocationUnits = min( s1, s2 )
|
| 512 |
+
//
|
| 513 |
+
// When s1 >= s2, ActualPoolUnavailableAllocationUnits = 0
|
| 514 |
+
// When s1 < s2, ActualPoolUnavailableAllocationUnits = s2 - s1.
|
| 515 |
+
//
|
| 516 |
+
|
| 517 |
+
ULONGLONG AvailableCommittedAllocationUnits;
|
| 518 |
+
|
| 519 |
+
//
|
| 520 |
+
// Available space (in clusters) in corresponding storage pool. If the volume
|
| 521 |
+
// is not a spaces volume, the PoolAvailableAllocationUnits is set to zero.
|
| 522 |
+
//
|
| 523 |
+
|
| 524 |
+
ULONGLONG PoolAvailableAllocationUnits;
|
| 525 |
+
|
| 526 |
+
DWORD SectorsPerAllocationUnit;
|
| 527 |
+
DWORD BytesPerSector;
|
| 528 |
+
|
| 529 |
+
} DISK_SPACE_INFORMATION;
|
| 530 |
+
|
| 531 |
+
WINBASEAPI
|
| 532 |
+
HRESULT
|
| 533 |
+
WINAPI
|
| 534 |
+
GetDiskSpaceInformationA(
|
| 535 |
+
_In_opt_ LPCSTR rootPath,
|
| 536 |
+
_Out_ DISK_SPACE_INFORMATION* diskSpaceInfo
|
| 537 |
+
);
|
| 538 |
+
|
| 539 |
+
WINBASEAPI
|
| 540 |
+
HRESULT
|
| 541 |
+
WINAPI
|
| 542 |
+
GetDiskSpaceInformationW(
|
| 543 |
+
_In_opt_ LPCWSTR rootPath,
|
| 544 |
+
_Out_ DISK_SPACE_INFORMATION* diskSpaceInfo
|
| 545 |
+
);
|
| 546 |
+
#ifdef UNICODE
|
| 547 |
+
#define GetDiskSpaceInformation GetDiskSpaceInformationW
|
| 548 |
+
#else
|
| 549 |
+
#define GetDiskSpaceInformation GetDiskSpaceInformationA
|
| 550 |
+
#endif // !UNICODE
|
| 551 |
+
|
| 552 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 553 |
+
#pragma endregion
|
| 554 |
+
|
| 555 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 556 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 557 |
+
|
| 558 |
+
WINBASEAPI
|
| 559 |
+
UINT
|
| 560 |
+
WINAPI
|
| 561 |
+
GetDriveTypeA(
|
| 562 |
+
_In_opt_ LPCSTR lpRootPathName
|
| 563 |
+
);
|
| 564 |
+
|
| 565 |
+
WINBASEAPI
|
| 566 |
+
UINT
|
| 567 |
+
WINAPI
|
| 568 |
+
GetDriveTypeW(
|
| 569 |
+
_In_opt_ LPCWSTR lpRootPathName
|
| 570 |
+
);
|
| 571 |
+
#ifdef UNICODE
|
| 572 |
+
#define GetDriveType GetDriveTypeW
|
| 573 |
+
#else
|
| 574 |
+
#define GetDriveType GetDriveTypeA
|
| 575 |
+
#endif // !UNICODE
|
| 576 |
+
|
| 577 |
+
typedef struct _WIN32_FILE_ATTRIBUTE_DATA {
|
| 578 |
+
DWORD dwFileAttributes;
|
| 579 |
+
FILETIME ftCreationTime;
|
| 580 |
+
FILETIME ftLastAccessTime;
|
| 581 |
+
FILETIME ftLastWriteTime;
|
| 582 |
+
DWORD nFileSizeHigh;
|
| 583 |
+
DWORD nFileSizeLow;
|
| 584 |
+
} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
|
| 585 |
+
|
| 586 |
+
WINBASEAPI
|
| 587 |
+
DWORD
|
| 588 |
+
WINAPI
|
| 589 |
+
GetFileAttributesA(
|
| 590 |
+
_In_ LPCSTR lpFileName
|
| 591 |
+
);
|
| 592 |
+
|
| 593 |
+
WINBASEAPI
|
| 594 |
+
DWORD
|
| 595 |
+
WINAPI
|
| 596 |
+
GetFileAttributesW(
|
| 597 |
+
_In_ LPCWSTR lpFileName
|
| 598 |
+
);
|
| 599 |
+
#ifdef UNICODE
|
| 600 |
+
#define GetFileAttributes GetFileAttributesW
|
| 601 |
+
#else
|
| 602 |
+
#define GetFileAttributes GetFileAttributesA
|
| 603 |
+
#endif // !UNICODE
|
| 604 |
+
|
| 605 |
+
WINBASEAPI
|
| 606 |
+
BOOL
|
| 607 |
+
WINAPI
|
| 608 |
+
GetFileAttributesExA(
|
| 609 |
+
_In_ LPCSTR lpFileName,
|
| 610 |
+
_In_ GET_FILEEX_INFO_LEVELS fInfoLevelId,
|
| 611 |
+
_Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation
|
| 612 |
+
);
|
| 613 |
+
|
| 614 |
+
WINBASEAPI
|
| 615 |
+
BOOL
|
| 616 |
+
WINAPI
|
| 617 |
+
GetFileAttributesExW(
|
| 618 |
+
_In_ LPCWSTR lpFileName,
|
| 619 |
+
_In_ GET_FILEEX_INFO_LEVELS fInfoLevelId,
|
| 620 |
+
_Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation
|
| 621 |
+
);
|
| 622 |
+
#ifdef UNICODE
|
| 623 |
+
#define GetFileAttributesEx GetFileAttributesExW
|
| 624 |
+
#else
|
| 625 |
+
#define GetFileAttributesEx GetFileAttributesExA
|
| 626 |
+
#endif // !UNICODE
|
| 627 |
+
|
| 628 |
+
typedef struct _BY_HANDLE_FILE_INFORMATION {
|
| 629 |
+
DWORD dwFileAttributes;
|
| 630 |
+
FILETIME ftCreationTime;
|
| 631 |
+
FILETIME ftLastAccessTime;
|
| 632 |
+
FILETIME ftLastWriteTime;
|
| 633 |
+
DWORD dwVolumeSerialNumber;
|
| 634 |
+
DWORD nFileSizeHigh;
|
| 635 |
+
DWORD nFileSizeLow;
|
| 636 |
+
DWORD nNumberOfLinks;
|
| 637 |
+
DWORD nFileIndexHigh;
|
| 638 |
+
DWORD nFileIndexLow;
|
| 639 |
+
} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION;
|
| 640 |
+
|
| 641 |
+
WINBASEAPI
|
| 642 |
+
BOOL
|
| 643 |
+
WINAPI
|
| 644 |
+
GetFileInformationByHandle(
|
| 645 |
+
_In_ HANDLE hFile,
|
| 646 |
+
_Out_ LPBY_HANDLE_FILE_INFORMATION lpFileInformation
|
| 647 |
+
);
|
| 648 |
+
|
| 649 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 650 |
+
#pragma endregion
|
| 651 |
+
|
| 652 |
+
#pragma region Desktop Family or OneCore Family or Games Family
|
| 653 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 654 |
+
|
| 655 |
+
WINBASEAPI
|
| 656 |
+
DWORD
|
| 657 |
+
WINAPI
|
| 658 |
+
GetFileSize(
|
| 659 |
+
_In_ HANDLE hFile,
|
| 660 |
+
_Out_opt_ LPDWORD lpFileSizeHigh
|
| 661 |
+
);
|
| 662 |
+
|
| 663 |
+
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 664 |
+
#pragma endregion
|
| 665 |
+
|
| 666 |
+
#pragma region Application Family or Games Family
|
| 667 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 668 |
+
|
| 669 |
+
WINBASEAPI
|
| 670 |
+
BOOL
|
| 671 |
+
WINAPI
|
| 672 |
+
GetFileSizeEx(
|
| 673 |
+
_In_ HANDLE hFile,
|
| 674 |
+
_Out_ PLARGE_INTEGER lpFileSize
|
| 675 |
+
);
|
| 676 |
+
|
| 677 |
+
WINBASEAPI
|
| 678 |
+
DWORD
|
| 679 |
+
WINAPI
|
| 680 |
+
GetFileType(
|
| 681 |
+
_In_ HANDLE hFile
|
| 682 |
+
);
|
| 683 |
+
|
| 684 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 685 |
+
|
| 686 |
+
WINBASEAPI
|
| 687 |
+
DWORD
|
| 688 |
+
WINAPI
|
| 689 |
+
GetFinalPathNameByHandleA(
|
| 690 |
+
_In_ HANDLE hFile,
|
| 691 |
+
_Out_writes_(cchFilePath) LPSTR lpszFilePath,
|
| 692 |
+
_In_ DWORD cchFilePath,
|
| 693 |
+
_In_ DWORD dwFlags
|
| 694 |
+
);
|
| 695 |
+
|
| 696 |
+
WINBASEAPI
|
| 697 |
+
DWORD
|
| 698 |
+
WINAPI
|
| 699 |
+
GetFinalPathNameByHandleW(
|
| 700 |
+
_In_ HANDLE hFile,
|
| 701 |
+
_Out_writes_(cchFilePath) LPWSTR lpszFilePath,
|
| 702 |
+
_In_ DWORD cchFilePath,
|
| 703 |
+
_In_ DWORD dwFlags
|
| 704 |
+
);
|
| 705 |
+
#ifdef UNICODE
|
| 706 |
+
#define GetFinalPathNameByHandle GetFinalPathNameByHandleW
|
| 707 |
+
#else
|
| 708 |
+
#define GetFinalPathNameByHandle GetFinalPathNameByHandleA
|
| 709 |
+
#endif // !UNICODE
|
| 710 |
+
|
| 711 |
+
#endif // (_WIN32_WINNT >= 0x0600)
|
| 712 |
+
|
| 713 |
+
WINBASEAPI
|
| 714 |
+
BOOL
|
| 715 |
+
WINAPI
|
| 716 |
+
GetFileTime(
|
| 717 |
+
_In_ HANDLE hFile,
|
| 718 |
+
_Out_opt_ LPFILETIME lpCreationTime,
|
| 719 |
+
_Out_opt_ LPFILETIME lpLastAccessTime,
|
| 720 |
+
_Out_opt_ LPFILETIME lpLastWriteTime
|
| 721 |
+
);
|
| 722 |
+
|
| 723 |
+
WINBASEAPI
|
| 724 |
+
_Success_(return != 0 && return < nBufferLength)
|
| 725 |
+
DWORD
|
| 726 |
+
WINAPI
|
| 727 |
+
GetFullPathNameW(
|
| 728 |
+
_In_ LPCWSTR lpFileName,
|
| 729 |
+
_In_ DWORD nBufferLength,
|
| 730 |
+
_Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer,
|
| 731 |
+
_Outptr_opt_ LPWSTR* lpFilePart
|
| 732 |
+
);
|
| 733 |
+
|
| 734 |
+
#ifdef UNICODE
|
| 735 |
+
#define GetFullPathName GetFullPathNameW
|
| 736 |
+
#endif
|
| 737 |
+
|
| 738 |
+
WINBASEAPI
|
| 739 |
+
_Success_(return != 0 && return < nBufferLength)
|
| 740 |
+
DWORD
|
| 741 |
+
WINAPI
|
| 742 |
+
GetFullPathNameA(
|
| 743 |
+
_In_ LPCSTR lpFileName,
|
| 744 |
+
_In_ DWORD nBufferLength,
|
| 745 |
+
_Out_writes_to_opt_(nBufferLength,return + 1) LPSTR lpBuffer,
|
| 746 |
+
_Outptr_opt_ LPSTR* lpFilePart
|
| 747 |
+
);
|
| 748 |
+
|
| 749 |
+
#ifndef UNICODE
|
| 750 |
+
#define GetFullPathName GetFullPathNameA
|
| 751 |
+
#endif
|
| 752 |
+
|
| 753 |
+
WINBASEAPI
|
| 754 |
+
DWORD
|
| 755 |
+
WINAPI
|
| 756 |
+
GetLogicalDrives(
|
| 757 |
+
VOID
|
| 758 |
+
);
|
| 759 |
+
|
| 760 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 761 |
+
#pragma endregion
|
| 762 |
+
|
| 763 |
+
#pragma region Desktop Family or OneCore Family
|
| 764 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 765 |
+
|
| 766 |
+
WINBASEAPI
|
| 767 |
+
DWORD
|
| 768 |
+
WINAPI
|
| 769 |
+
GetLogicalDriveStringsW(
|
| 770 |
+
_In_ DWORD nBufferLength,
|
| 771 |
+
_Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer
|
| 772 |
+
);
|
| 773 |
+
|
| 774 |
+
#ifdef UNICODE
|
| 775 |
+
#define GetLogicalDriveStrings GetLogicalDriveStringsW
|
| 776 |
+
#endif
|
| 777 |
+
|
| 778 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 779 |
+
#pragma endregion
|
| 780 |
+
|
| 781 |
+
#pragma region Application Family or OneCore Family
|
| 782 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 783 |
+
|
| 784 |
+
WINBASEAPI
|
| 785 |
+
_Success_(return != 0 && return < cchBuffer)
|
| 786 |
+
DWORD
|
| 787 |
+
WINAPI
|
| 788 |
+
GetLongPathNameA(
|
| 789 |
+
_In_ LPCSTR lpszShortPath,
|
| 790 |
+
_Out_writes_to_opt_(cchBuffer,return + 1) LPSTR lpszLongPath,
|
| 791 |
+
_In_ DWORD cchBuffer
|
| 792 |
+
);
|
| 793 |
+
|
| 794 |
+
#ifndef UNICODE
|
| 795 |
+
#define GetLongPathName GetLongPathNameA
|
| 796 |
+
#endif
|
| 797 |
+
|
| 798 |
+
WINBASEAPI
|
| 799 |
+
_Success_(return != 0 && return < cchBuffer)
|
| 800 |
+
DWORD
|
| 801 |
+
WINAPI
|
| 802 |
+
GetLongPathNameW(
|
| 803 |
+
_In_ LPCWSTR lpszShortPath,
|
| 804 |
+
_Out_writes_to_opt_(cchBuffer,return + 1) LPWSTR lpszLongPath,
|
| 805 |
+
_In_ DWORD cchBuffer
|
| 806 |
+
);
|
| 807 |
+
|
| 808 |
+
#ifdef UNICODE
|
| 809 |
+
#define GetLongPathName GetLongPathNameW
|
| 810 |
+
#endif
|
| 811 |
+
|
| 812 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 813 |
+
#pragma endregion
|
| 814 |
+
|
| 815 |
+
#pragma region Desktop Family or OneCore Family
|
| 816 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 817 |
+
|
| 818 |
+
#if (NTDDI_VERSION >= NTDDI_WIN10_FE)
|
| 819 |
+
|
| 820 |
+
WINBASEAPI
|
| 821 |
+
BOOL
|
| 822 |
+
WINAPI
|
| 823 |
+
AreShortNamesEnabled(
|
| 824 |
+
_In_ HANDLE Handle,
|
| 825 |
+
_Out_ BOOL* Enabled
|
| 826 |
+
);
|
| 827 |
+
|
| 828 |
+
#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE)
|
| 829 |
+
|
| 830 |
+
WINBASEAPI
|
| 831 |
+
_Success_(return != 0 && return < cchBuffer)
|
| 832 |
+
DWORD
|
| 833 |
+
WINAPI
|
| 834 |
+
GetShortPathNameW(
|
| 835 |
+
_In_ LPCWSTR lpszLongPath,
|
| 836 |
+
_Out_writes_to_opt_(cchBuffer,return + 1) LPWSTR lpszShortPath,
|
| 837 |
+
_In_ DWORD cchBuffer
|
| 838 |
+
);
|
| 839 |
+
|
| 840 |
+
#ifdef UNICODE
|
| 841 |
+
#define GetShortPathName GetShortPathNameW
|
| 842 |
+
#endif
|
| 843 |
+
|
| 844 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 845 |
+
#pragma endregion
|
| 846 |
+
|
| 847 |
+
#pragma region Application Family or OneCore Family
|
| 848 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 849 |
+
|
| 850 |
+
WINBASEAPI
|
| 851 |
+
UINT
|
| 852 |
+
WINAPI
|
| 853 |
+
GetTempFileNameW(
|
| 854 |
+
_In_ LPCWSTR lpPathName,
|
| 855 |
+
_In_ LPCWSTR lpPrefixString,
|
| 856 |
+
_In_ UINT uUnique,
|
| 857 |
+
_Out_writes_(MAX_PATH) LPWSTR lpTempFileName
|
| 858 |
+
);
|
| 859 |
+
|
| 860 |
+
#ifdef UNICODE
|
| 861 |
+
#define GetTempFileName GetTempFileNameW
|
| 862 |
+
#endif
|
| 863 |
+
|
| 864 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 865 |
+
#pragma endregion
|
| 866 |
+
|
| 867 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 868 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 869 |
+
|
| 870 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 871 |
+
|
| 872 |
+
WINBASEAPI
|
| 873 |
+
BOOL
|
| 874 |
+
WINAPI
|
| 875 |
+
GetVolumeInformationByHandleW(
|
| 876 |
+
_In_ HANDLE hFile,
|
| 877 |
+
_Out_writes_opt_(nVolumeNameSize) LPWSTR lpVolumeNameBuffer,
|
| 878 |
+
_In_ DWORD nVolumeNameSize,
|
| 879 |
+
_Out_opt_ LPDWORD lpVolumeSerialNumber,
|
| 880 |
+
_Out_opt_ LPDWORD lpMaximumComponentLength,
|
| 881 |
+
_Out_opt_ LPDWORD lpFileSystemFlags,
|
| 882 |
+
_Out_writes_opt_(nFileSystemNameSize) LPWSTR lpFileSystemNameBuffer,
|
| 883 |
+
_In_ DWORD nFileSystemNameSize
|
| 884 |
+
);
|
| 885 |
+
|
| 886 |
+
#endif /* _WIN32_WINNT >= 0x0600 */
|
| 887 |
+
|
| 888 |
+
WINBASEAPI
|
| 889 |
+
BOOL
|
| 890 |
+
WINAPI
|
| 891 |
+
GetVolumeInformationW(
|
| 892 |
+
_In_opt_ LPCWSTR lpRootPathName,
|
| 893 |
+
_Out_writes_opt_(nVolumeNameSize) LPWSTR lpVolumeNameBuffer,
|
| 894 |
+
_In_ DWORD nVolumeNameSize,
|
| 895 |
+
_Out_opt_ LPDWORD lpVolumeSerialNumber,
|
| 896 |
+
_Out_opt_ LPDWORD lpMaximumComponentLength,
|
| 897 |
+
_Out_opt_ LPDWORD lpFileSystemFlags,
|
| 898 |
+
_Out_writes_opt_(nFileSystemNameSize) LPWSTR lpFileSystemNameBuffer,
|
| 899 |
+
_In_ DWORD nFileSystemNameSize
|
| 900 |
+
);
|
| 901 |
+
|
| 902 |
+
#ifdef UNICODE
|
| 903 |
+
#define GetVolumeInformation GetVolumeInformationW
|
| 904 |
+
#endif
|
| 905 |
+
|
| 906 |
+
WINBASEAPI
|
| 907 |
+
BOOL
|
| 908 |
+
WINAPI
|
| 909 |
+
GetVolumePathNameW(
|
| 910 |
+
_In_ LPCWSTR lpszFileName,
|
| 911 |
+
_Out_writes_(cchBufferLength) LPWSTR lpszVolumePathName,
|
| 912 |
+
_In_ DWORD cchBufferLength
|
| 913 |
+
);
|
| 914 |
+
|
| 915 |
+
#ifdef UNICODE
|
| 916 |
+
#define GetVolumePathName GetVolumePathNameW
|
| 917 |
+
#endif
|
| 918 |
+
|
| 919 |
+
WINBASEAPI
|
| 920 |
+
BOOL
|
| 921 |
+
WINAPI
|
| 922 |
+
LocalFileTimeToFileTime(
|
| 923 |
+
_In_ CONST FILETIME* lpLocalFileTime,
|
| 924 |
+
_Out_ LPFILETIME lpFileTime
|
| 925 |
+
);
|
| 926 |
+
|
| 927 |
+
WINBASEAPI
|
| 928 |
+
BOOL
|
| 929 |
+
WINAPI
|
| 930 |
+
LockFile(
|
| 931 |
+
_In_ HANDLE hFile,
|
| 932 |
+
_In_ DWORD dwFileOffsetLow,
|
| 933 |
+
_In_ DWORD dwFileOffsetHigh,
|
| 934 |
+
_In_ DWORD nNumberOfBytesToLockLow,
|
| 935 |
+
_In_ DWORD nNumberOfBytesToLockHigh
|
| 936 |
+
);
|
| 937 |
+
|
| 938 |
+
WINBASEAPI
|
| 939 |
+
BOOL
|
| 940 |
+
WINAPI
|
| 941 |
+
LockFileEx(
|
| 942 |
+
_In_ HANDLE hFile,
|
| 943 |
+
_In_ DWORD dwFlags,
|
| 944 |
+
_Reserved_ DWORD dwReserved,
|
| 945 |
+
_In_ DWORD nNumberOfBytesToLockLow,
|
| 946 |
+
_In_ DWORD nNumberOfBytesToLockHigh,
|
| 947 |
+
_Inout_ LPOVERLAPPED lpOverlapped
|
| 948 |
+
);
|
| 949 |
+
|
| 950 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 951 |
+
#pragma endregion
|
| 952 |
+
|
| 953 |
+
#pragma region Desktop Family or OneCore Family
|
| 954 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 955 |
+
|
| 956 |
+
WINBASEAPI
|
| 957 |
+
DWORD
|
| 958 |
+
WINAPI
|
| 959 |
+
QueryDosDeviceW(
|
| 960 |
+
_In_opt_ LPCWSTR lpDeviceName,
|
| 961 |
+
_Out_writes_to_opt_(ucchMax,return) LPWSTR lpTargetPath,
|
| 962 |
+
_In_ DWORD ucchMax
|
| 963 |
+
);
|
| 964 |
+
|
| 965 |
+
#ifdef UNICODE
|
| 966 |
+
#define QueryDosDevice QueryDosDeviceW
|
| 967 |
+
#endif
|
| 968 |
+
|
| 969 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 970 |
+
#pragma endregion
|
| 971 |
+
|
| 972 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 973 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 974 |
+
|
| 975 |
+
WINBASEAPI
|
| 976 |
+
_Must_inspect_result_
|
| 977 |
+
BOOL
|
| 978 |
+
WINAPI
|
| 979 |
+
ReadFile(
|
| 980 |
+
_In_ HANDLE hFile,
|
| 981 |
+
_Out_writes_bytes_to_opt_(nNumberOfBytesToRead, *lpNumberOfBytesRead) __out_data_source(FILE) LPVOID lpBuffer,
|
| 982 |
+
_In_ DWORD nNumberOfBytesToRead,
|
| 983 |
+
_Out_opt_ LPDWORD lpNumberOfBytesRead,
|
| 984 |
+
_Inout_opt_ LPOVERLAPPED lpOverlapped
|
| 985 |
+
);
|
| 986 |
+
|
| 987 |
+
WINBASEAPI
|
| 988 |
+
_Must_inspect_result_
|
| 989 |
+
BOOL
|
| 990 |
+
WINAPI
|
| 991 |
+
ReadFileEx(
|
| 992 |
+
_In_ HANDLE hFile,
|
| 993 |
+
_Out_writes_bytes_opt_(nNumberOfBytesToRead) __out_data_source(FILE) LPVOID lpBuffer,
|
| 994 |
+
_In_ DWORD nNumberOfBytesToRead,
|
| 995 |
+
_Inout_ LPOVERLAPPED lpOverlapped,
|
| 996 |
+
_In_ LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
|
| 997 |
+
);
|
| 998 |
+
|
| 999 |
+
WINBASEAPI
|
| 1000 |
+
_Must_inspect_result_
|
| 1001 |
+
BOOL
|
| 1002 |
+
WINAPI
|
| 1003 |
+
ReadFileScatter(
|
| 1004 |
+
_In_ HANDLE hFile,
|
| 1005 |
+
_In_ FILE_SEGMENT_ELEMENT aSegmentArray[],
|
| 1006 |
+
_In_ DWORD nNumberOfBytesToRead,
|
| 1007 |
+
_Reserved_ LPDWORD lpReserved,
|
| 1008 |
+
_Inout_ LPOVERLAPPED lpOverlapped
|
| 1009 |
+
);
|
| 1010 |
+
|
| 1011 |
+
WINBASEAPI
|
| 1012 |
+
BOOL
|
| 1013 |
+
WINAPI
|
| 1014 |
+
RemoveDirectoryA(
|
| 1015 |
+
_In_ LPCSTR lpPathName
|
| 1016 |
+
);
|
| 1017 |
+
|
| 1018 |
+
WINBASEAPI
|
| 1019 |
+
BOOL
|
| 1020 |
+
WINAPI
|
| 1021 |
+
RemoveDirectoryW(
|
| 1022 |
+
_In_ LPCWSTR lpPathName
|
| 1023 |
+
);
|
| 1024 |
+
#ifdef UNICODE
|
| 1025 |
+
#define RemoveDirectory RemoveDirectoryW
|
| 1026 |
+
#else
|
| 1027 |
+
#define RemoveDirectory RemoveDirectoryA
|
| 1028 |
+
#endif // !UNICODE
|
| 1029 |
+
|
| 1030 |
+
WINBASEAPI
|
| 1031 |
+
BOOL
|
| 1032 |
+
WINAPI
|
| 1033 |
+
SetEndOfFile(
|
| 1034 |
+
_In_ HANDLE hFile
|
| 1035 |
+
);
|
| 1036 |
+
|
| 1037 |
+
WINBASEAPI
|
| 1038 |
+
BOOL
|
| 1039 |
+
WINAPI
|
| 1040 |
+
SetFileAttributesA(
|
| 1041 |
+
_In_ LPCSTR lpFileName,
|
| 1042 |
+
_In_ DWORD dwFileAttributes
|
| 1043 |
+
);
|
| 1044 |
+
|
| 1045 |
+
WINBASEAPI
|
| 1046 |
+
BOOL
|
| 1047 |
+
WINAPI
|
| 1048 |
+
SetFileAttributesW(
|
| 1049 |
+
_In_ LPCWSTR lpFileName,
|
| 1050 |
+
_In_ DWORD dwFileAttributes
|
| 1051 |
+
);
|
| 1052 |
+
#ifdef UNICODE
|
| 1053 |
+
#define SetFileAttributes SetFileAttributesW
|
| 1054 |
+
#else
|
| 1055 |
+
#define SetFileAttributes SetFileAttributesA
|
| 1056 |
+
#endif // !UNICODE
|
| 1057 |
+
|
| 1058 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 1059 |
+
|
| 1060 |
+
WINBASEAPI
|
| 1061 |
+
BOOL
|
| 1062 |
+
WINAPI
|
| 1063 |
+
SetFileInformationByHandle(
|
| 1064 |
+
_In_ HANDLE hFile,
|
| 1065 |
+
_In_ FILE_INFO_BY_HANDLE_CLASS FileInformationClass,
|
| 1066 |
+
_In_reads_bytes_(dwBufferSize) LPVOID lpFileInformation,
|
| 1067 |
+
_In_ DWORD dwBufferSize
|
| 1068 |
+
);
|
| 1069 |
+
|
| 1070 |
+
#endif
|
| 1071 |
+
|
| 1072 |
+
WINBASEAPI
|
| 1073 |
+
DWORD
|
| 1074 |
+
WINAPI
|
| 1075 |
+
SetFilePointer(
|
| 1076 |
+
_In_ HANDLE hFile,
|
| 1077 |
+
_In_ LONG lDistanceToMove,
|
| 1078 |
+
_Inout_opt_ PLONG lpDistanceToMoveHigh,
|
| 1079 |
+
_In_ DWORD dwMoveMethod
|
| 1080 |
+
);
|
| 1081 |
+
|
| 1082 |
+
WINBASEAPI
|
| 1083 |
+
BOOL
|
| 1084 |
+
WINAPI
|
| 1085 |
+
SetFilePointerEx(
|
| 1086 |
+
_In_ HANDLE hFile,
|
| 1087 |
+
_In_ LARGE_INTEGER liDistanceToMove,
|
| 1088 |
+
_Out_opt_ PLARGE_INTEGER lpNewFilePointer,
|
| 1089 |
+
_In_ DWORD dwMoveMethod
|
| 1090 |
+
);
|
| 1091 |
+
|
| 1092 |
+
WINBASEAPI
|
| 1093 |
+
BOOL
|
| 1094 |
+
WINAPI
|
| 1095 |
+
SetFileTime(
|
| 1096 |
+
_In_ HANDLE hFile,
|
| 1097 |
+
_In_opt_ CONST FILETIME* lpCreationTime,
|
| 1098 |
+
_In_opt_ CONST FILETIME* lpLastAccessTime,
|
| 1099 |
+
_In_opt_ CONST FILETIME* lpLastWriteTime
|
| 1100 |
+
);
|
| 1101 |
+
|
| 1102 |
+
#if _WIN32_WINNT >= 0x0501
|
| 1103 |
+
|
| 1104 |
+
WINBASEAPI
|
| 1105 |
+
BOOL
|
| 1106 |
+
WINAPI
|
| 1107 |
+
SetFileValidData(
|
| 1108 |
+
_In_ HANDLE hFile,
|
| 1109 |
+
_In_ LONGLONG ValidDataLength
|
| 1110 |
+
);
|
| 1111 |
+
|
| 1112 |
+
#endif // (_WIN32_WINNT >= 0x0501)
|
| 1113 |
+
|
| 1114 |
+
WINBASEAPI
|
| 1115 |
+
BOOL
|
| 1116 |
+
WINAPI
|
| 1117 |
+
UnlockFile(
|
| 1118 |
+
_In_ HANDLE hFile,
|
| 1119 |
+
_In_ DWORD dwFileOffsetLow,
|
| 1120 |
+
_In_ DWORD dwFileOffsetHigh,
|
| 1121 |
+
_In_ DWORD nNumberOfBytesToUnlockLow,
|
| 1122 |
+
_In_ DWORD nNumberOfBytesToUnlockHigh
|
| 1123 |
+
);
|
| 1124 |
+
|
| 1125 |
+
WINBASEAPI
|
| 1126 |
+
BOOL
|
| 1127 |
+
WINAPI
|
| 1128 |
+
UnlockFileEx(
|
| 1129 |
+
_In_ HANDLE hFile,
|
| 1130 |
+
_Reserved_ DWORD dwReserved,
|
| 1131 |
+
_In_ DWORD nNumberOfBytesToUnlockLow,
|
| 1132 |
+
_In_ DWORD nNumberOfBytesToUnlockHigh,
|
| 1133 |
+
_Inout_ LPOVERLAPPED lpOverlapped
|
| 1134 |
+
);
|
| 1135 |
+
|
| 1136 |
+
WINBASEAPI
|
| 1137 |
+
BOOL
|
| 1138 |
+
WINAPI
|
| 1139 |
+
WriteFile(
|
| 1140 |
+
_In_ HANDLE hFile,
|
| 1141 |
+
_In_reads_bytes_opt_(nNumberOfBytesToWrite) LPCVOID lpBuffer,
|
| 1142 |
+
_In_ DWORD nNumberOfBytesToWrite,
|
| 1143 |
+
_Out_opt_ LPDWORD lpNumberOfBytesWritten,
|
| 1144 |
+
_Inout_opt_ LPOVERLAPPED lpOverlapped
|
| 1145 |
+
);
|
| 1146 |
+
|
| 1147 |
+
WINBASEAPI
|
| 1148 |
+
BOOL
|
| 1149 |
+
WINAPI
|
| 1150 |
+
WriteFileEx(
|
| 1151 |
+
_In_ HANDLE hFile,
|
| 1152 |
+
_In_reads_bytes_opt_(nNumberOfBytesToWrite) LPCVOID lpBuffer,
|
| 1153 |
+
_In_ DWORD nNumberOfBytesToWrite,
|
| 1154 |
+
_Inout_ LPOVERLAPPED lpOverlapped,
|
| 1155 |
+
_In_ LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
|
| 1156 |
+
);
|
| 1157 |
+
|
| 1158 |
+
WINBASEAPI
|
| 1159 |
+
BOOL
|
| 1160 |
+
WINAPI
|
| 1161 |
+
WriteFileGather(
|
| 1162 |
+
_In_ HANDLE hFile,
|
| 1163 |
+
_In_ FILE_SEGMENT_ELEMENT aSegmentArray[],
|
| 1164 |
+
_In_ DWORD nNumberOfBytesToWrite,
|
| 1165 |
+
_Reserved_ LPDWORD lpReserved,
|
| 1166 |
+
_Inout_ LPOVERLAPPED lpOverlapped
|
| 1167 |
+
);
|
| 1168 |
+
|
| 1169 |
+
WINBASEAPI
|
| 1170 |
+
DWORD
|
| 1171 |
+
WINAPI
|
| 1172 |
+
GetTempPathW(
|
| 1173 |
+
_In_ DWORD nBufferLength,
|
| 1174 |
+
_Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer
|
| 1175 |
+
);
|
| 1176 |
+
|
| 1177 |
+
#ifdef UNICODE
|
| 1178 |
+
#define GetTempPath GetTempPathW
|
| 1179 |
+
#endif
|
| 1180 |
+
|
| 1181 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1182 |
+
#pragma endregion
|
| 1183 |
+
|
| 1184 |
+
#pragma region Application Family or OneCore Family
|
| 1185 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 1186 |
+
|
| 1187 |
+
WINBASEAPI
|
| 1188 |
+
BOOL
|
| 1189 |
+
WINAPI
|
| 1190 |
+
GetVolumeNameForVolumeMountPointW(
|
| 1191 |
+
_In_ LPCWSTR lpszVolumeMountPoint,
|
| 1192 |
+
_Out_writes_(cchBufferLength) LPWSTR lpszVolumeName,
|
| 1193 |
+
_In_ DWORD cchBufferLength
|
| 1194 |
+
);
|
| 1195 |
+
|
| 1196 |
+
#ifdef UNICODE
|
| 1197 |
+
#define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointW
|
| 1198 |
+
#endif
|
| 1199 |
+
|
| 1200 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 1201 |
+
#pragma endregion
|
| 1202 |
+
|
| 1203 |
+
#pragma region Desktop Family or OneCore Family
|
| 1204 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 1205 |
+
|
| 1206 |
+
#if (_WIN32_WINNT >= 0x0501)
|
| 1207 |
+
|
| 1208 |
+
WINBASEAPI
|
| 1209 |
+
BOOL
|
| 1210 |
+
WINAPI
|
| 1211 |
+
GetVolumePathNamesForVolumeNameW(
|
| 1212 |
+
_In_ LPCWSTR lpszVolumeName,
|
| 1213 |
+
_Out_writes_to_opt_(cchBufferLength,*lpcchReturnLength) _Post_ _NullNull_terminated_ LPWCH lpszVolumePathNames,
|
| 1214 |
+
_In_ DWORD cchBufferLength,
|
| 1215 |
+
_Out_ PDWORD lpcchReturnLength
|
| 1216 |
+
);
|
| 1217 |
+
|
| 1218 |
+
#ifdef UNICODE
|
| 1219 |
+
#define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameW
|
| 1220 |
+
#endif
|
| 1221 |
+
|
| 1222 |
+
#endif // _WIN32_WINNT >= 0x0501
|
| 1223 |
+
|
| 1224 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 1225 |
+
#pragma endregion
|
| 1226 |
+
|
| 1227 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 1228 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 1229 |
+
|
| 1230 |
+
#if (_WIN32_WINNT >= 0x0602)
|
| 1231 |
+
|
| 1232 |
+
typedef struct _CREATEFILE2_EXTENDED_PARAMETERS {
|
| 1233 |
+
DWORD dwSize;
|
| 1234 |
+
DWORD dwFileAttributes;
|
| 1235 |
+
DWORD dwFileFlags;
|
| 1236 |
+
DWORD dwSecurityQosFlags;
|
| 1237 |
+
LPSECURITY_ATTRIBUTES lpSecurityAttributes;
|
| 1238 |
+
HANDLE hTemplateFile;
|
| 1239 |
+
} CREATEFILE2_EXTENDED_PARAMETERS, *PCREATEFILE2_EXTENDED_PARAMETERS, *LPCREATEFILE2_EXTENDED_PARAMETERS;
|
| 1240 |
+
|
| 1241 |
+
WINBASEAPI
|
| 1242 |
+
HANDLE
|
| 1243 |
+
WINAPI
|
| 1244 |
+
CreateFile2(
|
| 1245 |
+
_In_ LPCWSTR lpFileName,
|
| 1246 |
+
_In_ DWORD dwDesiredAccess,
|
| 1247 |
+
_In_ DWORD dwShareMode,
|
| 1248 |
+
_In_ DWORD dwCreationDisposition,
|
| 1249 |
+
_In_opt_ LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams
|
| 1250 |
+
);
|
| 1251 |
+
|
| 1252 |
+
#endif // _WIN32_WINNT >= 0x0602
|
| 1253 |
+
|
| 1254 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1255 |
+
#pragma endregion
|
| 1256 |
+
|
| 1257 |
+
#pragma region Desktop Family or OneCore Family
|
| 1258 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 1259 |
+
|
| 1260 |
+
#if (_WIN32_WINNT >= 0x0600)
|
| 1261 |
+
|
| 1262 |
+
WINBASEAPI
|
| 1263 |
+
BOOL
|
| 1264 |
+
WINAPI
|
| 1265 |
+
SetFileIoOverlappedRange(
|
| 1266 |
+
_In_ HANDLE FileHandle,
|
| 1267 |
+
_In_ PUCHAR OverlappedRangeStart,
|
| 1268 |
+
_In_ ULONG Length
|
| 1269 |
+
);
|
| 1270 |
+
|
| 1271 |
+
#endif // _WIN32_WINNT >= 0x0600
|
| 1272 |
+
|
| 1273 |
+
#if _WIN32_WINNT >= 0x0501
|
| 1274 |
+
|
| 1275 |
+
WINBASEAPI
|
| 1276 |
+
DWORD
|
| 1277 |
+
WINAPI
|
| 1278 |
+
GetCompressedFileSizeA(
|
| 1279 |
+
_In_ LPCSTR lpFileName,
|
| 1280 |
+
_Out_opt_ LPDWORD lpFileSizeHigh
|
| 1281 |
+
);
|
| 1282 |
+
|
| 1283 |
+
WINBASEAPI
|
| 1284 |
+
DWORD
|
| 1285 |
+
WINAPI
|
| 1286 |
+
GetCompressedFileSizeW(
|
| 1287 |
+
_In_ LPCWSTR lpFileName,
|
| 1288 |
+
_Out_opt_ LPDWORD lpFileSizeHigh
|
| 1289 |
+
);
|
| 1290 |
+
#ifdef UNICODE
|
| 1291 |
+
#define GetCompressedFileSize GetCompressedFileSizeW
|
| 1292 |
+
#else
|
| 1293 |
+
#define GetCompressedFileSize GetCompressedFileSizeA
|
| 1294 |
+
#endif // !UNICODE
|
| 1295 |
+
|
| 1296 |
+
#endif // _WIN32_WINNT >= 0x0501
|
| 1297 |
+
|
| 1298 |
+
#if (_WIN32_WINNT >= 0x0501)
|
| 1299 |
+
|
| 1300 |
+
typedef enum _STREAM_INFO_LEVELS {
|
| 1301 |
+
|
| 1302 |
+
FindStreamInfoStandard,
|
| 1303 |
+
FindStreamInfoMaxInfoLevel
|
| 1304 |
+
|
| 1305 |
+
} STREAM_INFO_LEVELS;
|
| 1306 |
+
|
| 1307 |
+
typedef struct _WIN32_FIND_STREAM_DATA {
|
| 1308 |
+
|
| 1309 |
+
LARGE_INTEGER StreamSize;
|
| 1310 |
+
WCHAR cStreamName[ MAX_PATH + 36 ];
|
| 1311 |
+
|
| 1312 |
+
} WIN32_FIND_STREAM_DATA, *PWIN32_FIND_STREAM_DATA;
|
| 1313 |
+
|
| 1314 |
+
WINBASEAPI
|
| 1315 |
+
HANDLE
|
| 1316 |
+
WINAPI
|
| 1317 |
+
FindFirstStreamW(
|
| 1318 |
+
_In_ LPCWSTR lpFileName,
|
| 1319 |
+
_In_ STREAM_INFO_LEVELS InfoLevel,
|
| 1320 |
+
_Out_writes_bytes_(sizeof(WIN32_FIND_STREAM_DATA)) LPVOID lpFindStreamData,
|
| 1321 |
+
_Reserved_ DWORD dwFlags
|
| 1322 |
+
);
|
| 1323 |
+
|
| 1324 |
+
WINBASEAPI
|
| 1325 |
+
BOOL
|
| 1326 |
+
APIENTRY
|
| 1327 |
+
FindNextStreamW(
|
| 1328 |
+
_In_ HANDLE hFindStream,
|
| 1329 |
+
_Out_writes_bytes_(sizeof(WIN32_FIND_STREAM_DATA)) LPVOID lpFindStreamData
|
| 1330 |
+
);
|
| 1331 |
+
|
| 1332 |
+
#endif // (_WIN32_WINNT >= 0x0501)
|
| 1333 |
+
|
| 1334 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 1335 |
+
#pragma endregion
|
| 1336 |
+
|
| 1337 |
+
#pragma region Desktop Family or OneCore Family or Games Family
|
| 1338 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 1339 |
+
|
| 1340 |
+
WINBASEAPI
|
| 1341 |
+
BOOL
|
| 1342 |
+
WINAPI
|
| 1343 |
+
AreFileApisANSI(
|
| 1344 |
+
VOID
|
| 1345 |
+
);
|
| 1346 |
+
|
| 1347 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1348 |
+
#pragma endregion
|
| 1349 |
+
|
| 1350 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 1351 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 1352 |
+
|
| 1353 |
+
WINBASEAPI
|
| 1354 |
+
DWORD
|
| 1355 |
+
WINAPI
|
| 1356 |
+
GetTempPathA(
|
| 1357 |
+
_In_ DWORD nBufferLength,
|
| 1358 |
+
_Out_writes_to_opt_(nBufferLength,return + 1) LPSTR lpBuffer
|
| 1359 |
+
);
|
| 1360 |
+
|
| 1361 |
+
#ifndef UNICODE
|
| 1362 |
+
#define GetTempPath GetTempPathA
|
| 1363 |
+
#endif
|
| 1364 |
+
|
| 1365 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1366 |
+
#pragma endregion
|
| 1367 |
+
|
| 1368 |
+
#pragma region Desktop Family or OneCore Family
|
| 1369 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 1370 |
+
|
| 1371 |
+
#if _WIN32_WINNT >= 0x0600
|
| 1372 |
+
|
| 1373 |
+
WINBASEAPI
|
| 1374 |
+
HANDLE
|
| 1375 |
+
WINAPI
|
| 1376 |
+
FindFirstFileNameW(
|
| 1377 |
+
_In_ LPCWSTR lpFileName,
|
| 1378 |
+
_In_ DWORD dwFlags,
|
| 1379 |
+
_Inout_ LPDWORD StringLength,
|
| 1380 |
+
_Out_writes_(*StringLength) PWSTR LinkName
|
| 1381 |
+
);
|
| 1382 |
+
|
| 1383 |
+
WINBASEAPI
|
| 1384 |
+
BOOL
|
| 1385 |
+
APIENTRY
|
| 1386 |
+
FindNextFileNameW(
|
| 1387 |
+
_In_ HANDLE hFindStream,
|
| 1388 |
+
_Inout_ LPDWORD StringLength,
|
| 1389 |
+
_Out_writes_(*StringLength) PWSTR LinkName
|
| 1390 |
+
);
|
| 1391 |
+
|
| 1392 |
+
#endif // (_WIN32_WINNT >= 0x0600)
|
| 1393 |
+
|
| 1394 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 1395 |
+
#pragma endregion
|
| 1396 |
+
|
| 1397 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 1398 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 1399 |
+
|
| 1400 |
+
WINBASEAPI
|
| 1401 |
+
BOOL
|
| 1402 |
+
WINAPI
|
| 1403 |
+
GetVolumeInformationA(
|
| 1404 |
+
_In_opt_ LPCSTR lpRootPathName,
|
| 1405 |
+
_Out_writes_opt_(nVolumeNameSize) LPSTR lpVolumeNameBuffer,
|
| 1406 |
+
_In_ DWORD nVolumeNameSize,
|
| 1407 |
+
_Out_opt_ LPDWORD lpVolumeSerialNumber,
|
| 1408 |
+
_Out_opt_ LPDWORD lpMaximumComponentLength,
|
| 1409 |
+
_Out_opt_ LPDWORD lpFileSystemFlags,
|
| 1410 |
+
_Out_writes_opt_(nFileSystemNameSize) LPSTR lpFileSystemNameBuffer,
|
| 1411 |
+
_In_ DWORD nFileSystemNameSize
|
| 1412 |
+
);
|
| 1413 |
+
|
| 1414 |
+
#ifndef UNICODE
|
| 1415 |
+
#define GetVolumeInformation GetVolumeInformationA
|
| 1416 |
+
#endif
|
| 1417 |
+
|
| 1418 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1419 |
+
#pragma endregion
|
| 1420 |
+
|
| 1421 |
+
#pragma region Application Family or OneCore Family
|
| 1422 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 1423 |
+
|
| 1424 |
+
WINBASEAPI
|
| 1425 |
+
UINT
|
| 1426 |
+
WINAPI
|
| 1427 |
+
GetTempFileNameA(
|
| 1428 |
+
_In_ LPCSTR lpPathName,
|
| 1429 |
+
_In_ LPCSTR lpPrefixString,
|
| 1430 |
+
_In_ UINT uUnique,
|
| 1431 |
+
_Out_writes_(MAX_PATH) LPSTR lpTempFileName
|
| 1432 |
+
);
|
| 1433 |
+
|
| 1434 |
+
#ifndef UNICODE
|
| 1435 |
+
#define GetTempFileName GetTempFileNameA
|
| 1436 |
+
#endif
|
| 1437 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 1438 |
+
#pragma endregion
|
| 1439 |
+
|
| 1440 |
+
#pragma region Desktop Family or OneCore Family
|
| 1441 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
| 1442 |
+
|
| 1443 |
+
WINBASEAPI
|
| 1444 |
+
VOID
|
| 1445 |
+
WINAPI
|
| 1446 |
+
SetFileApisToOEM(
|
| 1447 |
+
VOID
|
| 1448 |
+
);
|
| 1449 |
+
|
| 1450 |
+
WINBASEAPI
|
| 1451 |
+
VOID
|
| 1452 |
+
WINAPI
|
| 1453 |
+
SetFileApisToANSI(
|
| 1454 |
+
VOID
|
| 1455 |
+
);
|
| 1456 |
+
|
| 1457 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
|
| 1458 |
+
#pragma endregion
|
| 1459 |
+
|
| 1460 |
+
#pragma region Application Family or OneCore Family or Games Family
|
| 1461 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
| 1462 |
+
|
| 1463 |
+
#if (NTDDI_VERSION >= NTDDI_WIN10_FE)
|
| 1464 |
+
|
| 1465 |
+
WINBASEAPI
|
| 1466 |
+
_Success_(return > 0 && return < BufferLength)
|
| 1467 |
+
DWORD
|
| 1468 |
+
WINAPI
|
| 1469 |
+
GetTempPath2W(
|
| 1470 |
+
_In_ DWORD BufferLength,
|
| 1471 |
+
_Out_writes_to_opt_(BufferLength,return + 1) LPWSTR Buffer
|
| 1472 |
+
);
|
| 1473 |
+
|
| 1474 |
+
#ifdef UNICODE
|
| 1475 |
+
#define GetTempPath2 GetTempPath2W
|
| 1476 |
+
#endif
|
| 1477 |
+
|
| 1478 |
+
WINBASEAPI
|
| 1479 |
+
_Success_(return > 0 && return < BufferLength)
|
| 1480 |
+
DWORD
|
| 1481 |
+
WINAPI
|
| 1482 |
+
GetTempPath2A(
|
| 1483 |
+
_In_ DWORD BufferLength,
|
| 1484 |
+
_Out_writes_to_opt_(BufferLength,return + 1) LPSTR Buffer
|
| 1485 |
+
);
|
| 1486 |
+
|
| 1487 |
+
#ifndef UNICODE
|
| 1488 |
+
#define GetTempPath2 GetTempPath2A
|
| 1489 |
+
#endif
|
| 1490 |
+
|
| 1491 |
+
#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE)
|
| 1492 |
+
|
| 1493 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */
|
| 1494 |
+
#pragma endregion
|
| 1495 |
+
|
| 1496 |
+
#ifdef __cplusplus
|
| 1497 |
+
}
|
| 1498 |
+
#endif
|
| 1499 |
+
|
| 1500 |
+
#endif // _APISETFILE_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/fileapifromapp.h
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*********************************************************************************
|
| 2 |
+
* *
|
| 3 |
+
* fileapifromapp.h - ApiSet Contract for api-ms-win-core-file-fromapp-l1 *
|
| 4 |
+
* *
|
| 5 |
+
* Copyright (c) Microsoft Corporation. All rights reserved. *
|
| 6 |
+
* *
|
| 7 |
+
*********************************************************************************/
|
| 8 |
+
|
| 9 |
+
#ifndef _FILEAPIFROMAPP_H_
|
| 10 |
+
#define _FILEAPIFROMAPP_H_
|
| 11 |
+
|
| 12 |
+
#ifdef _MSC_VER
|
| 13 |
+
#pragma once
|
| 14 |
+
#endif // _MSC_VER
|
| 15 |
+
|
| 16 |
+
#include <apiset.h>
|
| 17 |
+
#include <apisetcconv.h>
|
| 18 |
+
#include <minwindef.h>
|
| 19 |
+
#include <minwinbase.h>
|
| 20 |
+
#include <fileapi.h>
|
| 21 |
+
|
| 22 |
+
#ifdef __cplusplus
|
| 23 |
+
extern "C" {
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
#pragma region Application Family
|
| 27 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 28 |
+
#if ((_WIN32_WINNT >= _WIN32_WINNT_WIN10) && (NTDDI_VERSION >= NTDDI_WIN10_RS3))
|
| 29 |
+
|
| 30 |
+
WINSTORAGEAPI
|
| 31 |
+
BOOL
|
| 32 |
+
WINAPI
|
| 33 |
+
CopyFileFromAppW(
|
| 34 |
+
_In_ LPCWSTR lpExistingFileName,
|
| 35 |
+
_In_ LPCWSTR lpNewFileName,
|
| 36 |
+
_In_ BOOL bFailIfExists
|
| 37 |
+
)
|
| 38 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 39 |
+
noexcept
|
| 40 |
+
#endif
|
| 41 |
+
;
|
| 42 |
+
|
| 43 |
+
WINSTORAGEAPI
|
| 44 |
+
BOOL
|
| 45 |
+
WINAPI
|
| 46 |
+
CreateDirectoryFromAppW(
|
| 47 |
+
_In_ LPCWSTR lpPathName,
|
| 48 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes
|
| 49 |
+
)
|
| 50 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 51 |
+
noexcept
|
| 52 |
+
#endif
|
| 53 |
+
;
|
| 54 |
+
|
| 55 |
+
WINSTORAGEAPI
|
| 56 |
+
HANDLE
|
| 57 |
+
WINAPI
|
| 58 |
+
CreateFileFromAppW(
|
| 59 |
+
_In_ LPCWSTR lpFileName,
|
| 60 |
+
_In_ DWORD dwDesiredAccess,
|
| 61 |
+
_In_ DWORD dwShareMode,
|
| 62 |
+
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
| 63 |
+
_In_ DWORD dwCreationDisposition,
|
| 64 |
+
_In_ DWORD dwFlagsAndAttributes,
|
| 65 |
+
_In_opt_ HANDLE hTemplateFile
|
| 66 |
+
)
|
| 67 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 68 |
+
noexcept
|
| 69 |
+
#endif
|
| 70 |
+
;
|
| 71 |
+
|
| 72 |
+
WINSTORAGEAPI
|
| 73 |
+
HANDLE
|
| 74 |
+
WINAPI
|
| 75 |
+
CreateFile2FromAppW(
|
| 76 |
+
_In_ LPCWSTR lpFileName,
|
| 77 |
+
_In_ DWORD dwDesiredAccess,
|
| 78 |
+
_In_ DWORD dwShareMode,
|
| 79 |
+
_In_ DWORD dwCreationDisposition,
|
| 80 |
+
_In_opt_ LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams
|
| 81 |
+
)
|
| 82 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 83 |
+
noexcept
|
| 84 |
+
#endif
|
| 85 |
+
;
|
| 86 |
+
|
| 87 |
+
WINSTORAGEAPI
|
| 88 |
+
BOOL
|
| 89 |
+
WINAPI
|
| 90 |
+
DeleteFileFromAppW(
|
| 91 |
+
_In_ LPCWSTR lpFileName
|
| 92 |
+
)
|
| 93 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 94 |
+
noexcept
|
| 95 |
+
#endif
|
| 96 |
+
;
|
| 97 |
+
|
| 98 |
+
WINSTORAGEAPI
|
| 99 |
+
HANDLE
|
| 100 |
+
WINAPI
|
| 101 |
+
FindFirstFileExFromAppW(
|
| 102 |
+
_In_ LPCWSTR lpFileName,
|
| 103 |
+
_In_ FINDEX_INFO_LEVELS fInfoLevelId,
|
| 104 |
+
_Out_writes_bytes_(sizeof(WIN32_FIND_DATAW)) LPVOID lpFindFileData,
|
| 105 |
+
_In_ FINDEX_SEARCH_OPS fSearchOp,
|
| 106 |
+
_Reserved_ LPVOID lpSearchFilter,
|
| 107 |
+
_In_ DWORD dwAdditionalFlags
|
| 108 |
+
)
|
| 109 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 110 |
+
noexcept
|
| 111 |
+
#endif
|
| 112 |
+
;
|
| 113 |
+
|
| 114 |
+
WINSTORAGEAPI
|
| 115 |
+
BOOL
|
| 116 |
+
WINAPI
|
| 117 |
+
GetFileAttributesExFromAppW(
|
| 118 |
+
_In_ LPCWSTR lpFileName,
|
| 119 |
+
_In_ GET_FILEEX_INFO_LEVELS fInfoLevelId,
|
| 120 |
+
_Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation
|
| 121 |
+
)
|
| 122 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 123 |
+
noexcept
|
| 124 |
+
#endif
|
| 125 |
+
;
|
| 126 |
+
|
| 127 |
+
WINSTORAGEAPI
|
| 128 |
+
BOOL
|
| 129 |
+
WINAPI
|
| 130 |
+
MoveFileFromAppW(
|
| 131 |
+
_In_ LPCWSTR lpExistingFileName,
|
| 132 |
+
_In_ LPCWSTR lpNewFileName
|
| 133 |
+
)
|
| 134 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 135 |
+
noexcept
|
| 136 |
+
#endif
|
| 137 |
+
;
|
| 138 |
+
|
| 139 |
+
WINSTORAGEAPI
|
| 140 |
+
BOOL
|
| 141 |
+
WINAPI
|
| 142 |
+
RemoveDirectoryFromAppW(
|
| 143 |
+
_In_ LPCWSTR lpPathName
|
| 144 |
+
)
|
| 145 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 146 |
+
noexcept
|
| 147 |
+
#endif
|
| 148 |
+
;
|
| 149 |
+
|
| 150 |
+
WINSTORAGEAPI
|
| 151 |
+
BOOL
|
| 152 |
+
WINAPI
|
| 153 |
+
ReplaceFileFromAppW(
|
| 154 |
+
_In_ LPCWSTR lpReplacedFileName,
|
| 155 |
+
_In_ LPCWSTR lpReplacementFileName,
|
| 156 |
+
_In_opt_ LPCWSTR lpBackupFileName,
|
| 157 |
+
_In_ DWORD dwReplaceFlags,
|
| 158 |
+
_Reserved_ LPVOID lpExclude,
|
| 159 |
+
_Reserved_ LPVOID lpReserved
|
| 160 |
+
)
|
| 161 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 162 |
+
noexcept
|
| 163 |
+
#endif
|
| 164 |
+
;
|
| 165 |
+
|
| 166 |
+
WINSTORAGEAPI
|
| 167 |
+
BOOL
|
| 168 |
+
WINAPI
|
| 169 |
+
SetFileAttributesFromAppW(
|
| 170 |
+
_In_ LPCWSTR lpFileName,
|
| 171 |
+
_In_ DWORD dwFileAttributes
|
| 172 |
+
)
|
| 173 |
+
#if defined(__cplusplus) && _MSC_VER >= 1900
|
| 174 |
+
noexcept
|
| 175 |
+
#endif
|
| 176 |
+
;
|
| 177 |
+
|
| 178 |
+
#endif // Version check
|
| 179 |
+
#endif/* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 180 |
+
#pragma endregion
|
| 181 |
+
|
| 182 |
+
#ifdef __cplusplus
|
| 183 |
+
} // extern "C"
|
| 184 |
+
#endif
|
| 185 |
+
|
| 186 |
+
#endif // _FILEAPIFROMAPP_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filtereg.h
ADDED
|
@@ -0,0 +1,400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __filtereg_h__
|
| 34 |
+
#define __filtereg_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __ILoadFilter_FWD_DEFINED__
|
| 51 |
+
#define __ILoadFilter_FWD_DEFINED__
|
| 52 |
+
typedef interface ILoadFilter ILoadFilter;
|
| 53 |
+
|
| 54 |
+
#endif /* __ILoadFilter_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __ILoadFilterWithPrivateComActivation_FWD_DEFINED__
|
| 58 |
+
#define __ILoadFilterWithPrivateComActivation_FWD_DEFINED__
|
| 59 |
+
typedef interface ILoadFilterWithPrivateComActivation ILoadFilterWithPrivateComActivation;
|
| 60 |
+
|
| 61 |
+
#endif /* __ILoadFilterWithPrivateComActivation_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
/* header files for imported files */
|
| 65 |
+
#include "oaidl.h"
|
| 66 |
+
#include "ocidl.h"
|
| 67 |
+
#include "filter.h"
|
| 68 |
+
|
| 69 |
+
#ifdef __cplusplus
|
| 70 |
+
extern "C"{
|
| 71 |
+
#endif
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
/* interface __MIDL_itf_filtereg_0000_0000 */
|
| 75 |
+
/* [local] */
|
| 76 |
+
|
| 77 |
+
#include <winapifamily.h>
|
| 78 |
+
#pragma region Desktop Family
|
| 79 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 80 |
+
EXTERN_C const CLSID CLSID_FilterRegistration;
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0000_v0_0_c_ifspec;
|
| 84 |
+
extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0000_v0_0_s_ifspec;
|
| 85 |
+
|
| 86 |
+
#ifndef __ILoadFilter_INTERFACE_DEFINED__
|
| 87 |
+
#define __ILoadFilter_INTERFACE_DEFINED__
|
| 88 |
+
|
| 89 |
+
/* interface ILoadFilter */
|
| 90 |
+
/* [unique][helpstring][uuid][object] */
|
| 91 |
+
|
| 92 |
+
typedef struct _FILTERED_DATA_SOURCES
|
| 93 |
+
{
|
| 94 |
+
const WCHAR *pwcsExtension;
|
| 95 |
+
const WCHAR *pwcsMime;
|
| 96 |
+
const CLSID *pClsid;
|
| 97 |
+
const WCHAR *pwcsOverride;
|
| 98 |
+
} FILTERED_DATA_SOURCES;
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
EXTERN_C const IID IID_ILoadFilter;
|
| 102 |
+
|
| 103 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 104 |
+
|
| 105 |
+
MIDL_INTERFACE("c7310722-ac80-11d1-8df3-00c04fb6ef4f")
|
| 106 |
+
ILoadFilter : public IUnknown
|
| 107 |
+
{
|
| 108 |
+
public:
|
| 109 |
+
virtual HRESULT STDMETHODCALLTYPE LoadIFilter(
|
| 110 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath,
|
| 111 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 112 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 113 |
+
/* [in] */ BOOL fUseDefault,
|
| 114 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 115 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 116 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 117 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0;
|
| 118 |
+
|
| 119 |
+
virtual HRESULT STDMETHODCALLTYPE LoadIFilterFromStorage(
|
| 120 |
+
/* [in] */ __RPC__in_opt IStorage *pStg,
|
| 121 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 122 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride,
|
| 123 |
+
/* [in] */ BOOL fUseDefault,
|
| 124 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 125 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 126 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 127 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0;
|
| 128 |
+
|
| 129 |
+
virtual HRESULT STDMETHODCALLTYPE LoadIFilterFromStream(
|
| 130 |
+
/* [in] */ __RPC__in_opt IStream *pStm,
|
| 131 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 132 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 133 |
+
/* [in] */ BOOL fUseDefault,
|
| 134 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 135 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 136 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 137 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0;
|
| 138 |
+
|
| 139 |
+
};
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
#else /* C style interface */
|
| 143 |
+
|
| 144 |
+
typedef struct ILoadFilterVtbl
|
| 145 |
+
{
|
| 146 |
+
BEGIN_INTERFACE
|
| 147 |
+
|
| 148 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 149 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 150 |
+
__RPC__in ILoadFilter * This,
|
| 151 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 152 |
+
/* [annotation][iid_is][out] */
|
| 153 |
+
_COM_Outptr_ void **ppvObject);
|
| 154 |
+
|
| 155 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 156 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 157 |
+
__RPC__in ILoadFilter * This);
|
| 158 |
+
|
| 159 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 160 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 161 |
+
__RPC__in ILoadFilter * This);
|
| 162 |
+
|
| 163 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilter)
|
| 164 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilter )(
|
| 165 |
+
__RPC__in ILoadFilter * This,
|
| 166 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath,
|
| 167 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 168 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 169 |
+
/* [in] */ BOOL fUseDefault,
|
| 170 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 171 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 172 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 173 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 174 |
+
|
| 175 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStorage)
|
| 176 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStorage )(
|
| 177 |
+
__RPC__in ILoadFilter * This,
|
| 178 |
+
/* [in] */ __RPC__in_opt IStorage *pStg,
|
| 179 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 180 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride,
|
| 181 |
+
/* [in] */ BOOL fUseDefault,
|
| 182 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 183 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 184 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 185 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 186 |
+
|
| 187 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStream)
|
| 188 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStream )(
|
| 189 |
+
__RPC__in ILoadFilter * This,
|
| 190 |
+
/* [in] */ __RPC__in_opt IStream *pStm,
|
| 191 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 192 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 193 |
+
/* [in] */ BOOL fUseDefault,
|
| 194 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 195 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 196 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 197 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 198 |
+
|
| 199 |
+
END_INTERFACE
|
| 200 |
+
} ILoadFilterVtbl;
|
| 201 |
+
|
| 202 |
+
interface ILoadFilter
|
| 203 |
+
{
|
| 204 |
+
CONST_VTBL struct ILoadFilterVtbl *lpVtbl;
|
| 205 |
+
};
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
#ifdef COBJMACROS
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
#define ILoadFilter_QueryInterface(This,riid,ppvObject) \
|
| 213 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 214 |
+
|
| 215 |
+
#define ILoadFilter_AddRef(This) \
|
| 216 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 217 |
+
|
| 218 |
+
#define ILoadFilter_Release(This) \
|
| 219 |
+
( (This)->lpVtbl -> Release(This) )
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
#define ILoadFilter_LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 223 |
+
( (This)->lpVtbl -> LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 224 |
+
|
| 225 |
+
#define ILoadFilter_LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 226 |
+
( (This)->lpVtbl -> LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 227 |
+
|
| 228 |
+
#define ILoadFilter_LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 229 |
+
( (This)->lpVtbl -> LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 230 |
+
|
| 231 |
+
#endif /* COBJMACROS */
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
#endif /* C style interface */
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
#endif /* __ILoadFilter_INTERFACE_DEFINED__ */
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
#ifndef __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__
|
| 243 |
+
#define __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__
|
| 244 |
+
|
| 245 |
+
/* interface ILoadFilterWithPrivateComActivation */
|
| 246 |
+
/* [unique][helpstring][uuid][object] */
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
EXTERN_C const IID IID_ILoadFilterWithPrivateComActivation;
|
| 250 |
+
|
| 251 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 252 |
+
|
| 253 |
+
MIDL_INTERFACE("40BDBD34-780B-48D3-9BB6-12EBD4AD2E75")
|
| 254 |
+
ILoadFilterWithPrivateComActivation : public ILoadFilter
|
| 255 |
+
{
|
| 256 |
+
public:
|
| 257 |
+
virtual HRESULT STDMETHODCALLTYPE LoadIFilterWithPrivateComActivation(
|
| 258 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *filteredSources,
|
| 259 |
+
/* [in] */ BOOL useDefault,
|
| 260 |
+
/* [out] */ __RPC__out CLSID *filterClsid,
|
| 261 |
+
/* [out] */ __RPC__out BOOL *isFilterPrivateComActivated,
|
| 262 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **filterObj) = 0;
|
| 263 |
+
|
| 264 |
+
};
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
#else /* C style interface */
|
| 268 |
+
|
| 269 |
+
typedef struct ILoadFilterWithPrivateComActivationVtbl
|
| 270 |
+
{
|
| 271 |
+
BEGIN_INTERFACE
|
| 272 |
+
|
| 273 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 274 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 275 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This,
|
| 276 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 277 |
+
/* [annotation][iid_is][out] */
|
| 278 |
+
_COM_Outptr_ void **ppvObject);
|
| 279 |
+
|
| 280 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 281 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 282 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This);
|
| 283 |
+
|
| 284 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 285 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 286 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This);
|
| 287 |
+
|
| 288 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilter)
|
| 289 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilter )(
|
| 290 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This,
|
| 291 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath,
|
| 292 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 293 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 294 |
+
/* [in] */ BOOL fUseDefault,
|
| 295 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 296 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 297 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 298 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 299 |
+
|
| 300 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStorage)
|
| 301 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStorage )(
|
| 302 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This,
|
| 303 |
+
/* [in] */ __RPC__in_opt IStorage *pStg,
|
| 304 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 305 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride,
|
| 306 |
+
/* [in] */ BOOL fUseDefault,
|
| 307 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 308 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 309 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 310 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 311 |
+
|
| 312 |
+
DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStream)
|
| 313 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStream )(
|
| 314 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This,
|
| 315 |
+
/* [in] */ __RPC__in_opt IStream *pStm,
|
| 316 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources,
|
| 317 |
+
/* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter,
|
| 318 |
+
/* [in] */ BOOL fUseDefault,
|
| 319 |
+
/* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid,
|
| 320 |
+
/* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize,
|
| 321 |
+
/* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc,
|
| 322 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt);
|
| 323 |
+
|
| 324 |
+
DECLSPEC_XFGVIRT(ILoadFilterWithPrivateComActivation, LoadIFilterWithPrivateComActivation)
|
| 325 |
+
HRESULT ( STDMETHODCALLTYPE *LoadIFilterWithPrivateComActivation )(
|
| 326 |
+
__RPC__in ILoadFilterWithPrivateComActivation * This,
|
| 327 |
+
/* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *filteredSources,
|
| 328 |
+
/* [in] */ BOOL useDefault,
|
| 329 |
+
/* [out] */ __RPC__out CLSID *filterClsid,
|
| 330 |
+
/* [out] */ __RPC__out BOOL *isFilterPrivateComActivated,
|
| 331 |
+
/* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **filterObj);
|
| 332 |
+
|
| 333 |
+
END_INTERFACE
|
| 334 |
+
} ILoadFilterWithPrivateComActivationVtbl;
|
| 335 |
+
|
| 336 |
+
interface ILoadFilterWithPrivateComActivation
|
| 337 |
+
{
|
| 338 |
+
CONST_VTBL struct ILoadFilterWithPrivateComActivationVtbl *lpVtbl;
|
| 339 |
+
};
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
#ifdef COBJMACROS
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
#define ILoadFilterWithPrivateComActivation_QueryInterface(This,riid,ppvObject) \
|
| 347 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 348 |
+
|
| 349 |
+
#define ILoadFilterWithPrivateComActivation_AddRef(This) \
|
| 350 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 351 |
+
|
| 352 |
+
#define ILoadFilterWithPrivateComActivation_Release(This) \
|
| 353 |
+
( (This)->lpVtbl -> Release(This) )
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
#define ILoadFilterWithPrivateComActivation_LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 357 |
+
( (This)->lpVtbl -> LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 358 |
+
|
| 359 |
+
#define ILoadFilterWithPrivateComActivation_LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 360 |
+
( (This)->lpVtbl -> LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 361 |
+
|
| 362 |
+
#define ILoadFilterWithPrivateComActivation_LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \
|
| 363 |
+
( (This)->lpVtbl -> LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) )
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
#define ILoadFilterWithPrivateComActivation_LoadIFilterWithPrivateComActivation(This,filteredSources,useDefault,filterClsid,isFilterPrivateComActivated,filterObj) \
|
| 367 |
+
( (This)->lpVtbl -> LoadIFilterWithPrivateComActivation(This,filteredSources,useDefault,filterClsid,isFilterPrivateComActivated,filterObj) )
|
| 368 |
+
|
| 369 |
+
#endif /* COBJMACROS */
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
#endif /* C style interface */
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
#endif /* __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__ */
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
/* interface __MIDL_itf_filtereg_0000_0002 */
|
| 381 |
+
/* [local] */
|
| 382 |
+
|
| 383 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 384 |
+
#pragma endregion
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0002_v0_0_c_ifspec;
|
| 388 |
+
extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0002_v0_0_s_ifspec;
|
| 389 |
+
|
| 390 |
+
/* Additional Prototypes for ALL interfaces */
|
| 391 |
+
|
| 392 |
+
/* end of Additional Prototypes */
|
| 393 |
+
|
| 394 |
+
#ifdef __cplusplus
|
| 395 |
+
}
|
| 396 |
+
#endif
|
| 397 |
+
|
| 398 |
+
#endif
|
| 399 |
+
|
| 400 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filtereg.idl
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+-------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Microsoft Windows
|
| 4 |
+
// Copyright (C) Microsoft Corporation, 1999-2000.
|
| 5 |
+
//
|
| 6 |
+
// File: filtereg.idl
|
| 7 |
+
//
|
| 8 |
+
// Contents: Filter registration interface
|
| 9 |
+
//
|
| 10 |
+
// History: Jun-30-1999 cobir Created
|
| 11 |
+
// Jul-09-2000 cobir Added IFilterControl
|
| 12 |
+
//
|
| 13 |
+
//--------------------------------------------------------------------------
|
| 14 |
+
|
| 15 |
+
cpp_quote("#include <winapifamily.h>")
|
| 16 |
+
|
| 17 |
+
#pragma region Desktop Family
|
| 18 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 19 |
+
|
| 20 |
+
import "oaidl.idl";
|
| 21 |
+
import "ocidl.idl";
|
| 22 |
+
import "filter.idl";
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// 9E175B8D-F52A-11D8-B9A5-505054503030
|
| 26 |
+
cpp_quote("EXTERN_C const CLSID CLSID_FilterRegistration;")
|
| 27 |
+
|
| 28 |
+
[
|
| 29 |
+
object,
|
| 30 |
+
uuid(c7310722-ac80-11d1-8df3-00c04fb6ef4f),
|
| 31 |
+
helpstring("ILoadFilter Interface"),
|
| 32 |
+
pointer_default(unique)
|
| 33 |
+
]
|
| 34 |
+
interface ILoadFilter : IUnknown
|
| 35 |
+
{
|
| 36 |
+
typedef struct _FILTERED_DATA_SOURCES
|
| 37 |
+
{
|
| 38 |
+
WCHAR const * pwcsExtension; // file extension
|
| 39 |
+
WCHAR const * pwcsMime; // mime type string
|
| 40 |
+
CLSID const * pClsid;
|
| 41 |
+
WCHAR const * pwcsOverride;
|
| 42 |
+
|
| 43 |
+
} FILTERED_DATA_SOURCES;
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
HRESULT LoadIFilter( [in, unique] LPCWSTR pwcsPath,
|
| 47 |
+
[in, unique] FILTERED_DATA_SOURCES * pFilteredSources,
|
| 48 |
+
[in, unique] IUnknown * pUnkOuter,
|
| 49 |
+
[in] BOOL fUseDefault, // use default filter when no filter is found
|
| 50 |
+
[in, out, unique] CLSID * pFilterClsid,
|
| 51 |
+
[in, out, unique] int * SearchDecSize,
|
| 52 |
+
[in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc,
|
| 53 |
+
[in, out, unique] IFilter ** ppIFilt );
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
HRESULT LoadIFilterFromStorage( [in] IStorage * pStg,
|
| 58 |
+
[in, unique] IUnknown * pUnkOuter,
|
| 59 |
+
[in, unique] LPCWSTR pwcsOverride,
|
| 60 |
+
[in] BOOL fUseDefault,
|
| 61 |
+
[in, out, unique] CLSID * pFilterClsid,
|
| 62 |
+
[in, out, unique] int * SearchDecSize,
|
| 63 |
+
[in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc,
|
| 64 |
+
[in, out, unique] IFilter ** ppIFilt );
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
HRESULT LoadIFilterFromStream( [in] IStream * pStm,
|
| 68 |
+
[in, unique] FILTERED_DATA_SOURCES *pFilteredSources,
|
| 69 |
+
[in, unique] IUnknown * pUnkOuter,
|
| 70 |
+
[in] BOOL fUseDefault,
|
| 71 |
+
[in, out, unique] CLSID * pFilterClsid,
|
| 72 |
+
[in, out, unique] int * SearchDecSize,
|
| 73 |
+
[in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc,
|
| 74 |
+
[in, out, unique] IFilter ** ppIFilt );
|
| 75 |
+
};
|
| 76 |
+
|
| 77 |
+
[
|
| 78 |
+
object,
|
| 79 |
+
uuid(40BDBD34-780B-48D3-9BB6-12EBD4AD2E75),
|
| 80 |
+
helpstring("ILoadFilterWithPrivateComActivation Interface"),
|
| 81 |
+
pointer_default(unique)
|
| 82 |
+
]
|
| 83 |
+
interface ILoadFilterWithPrivateComActivation : ILoadFilter
|
| 84 |
+
{
|
| 85 |
+
HRESULT LoadIFilterWithPrivateComActivation(
|
| 86 |
+
[in, unique] FILTERED_DATA_SOURCES * filteredSources,
|
| 87 |
+
[in] BOOL useDefault, // use default filter when no filter is found
|
| 88 |
+
[out] CLSID * filterClsid,
|
| 89 |
+
[out] BOOL *isFilterPrivateComActivated,
|
| 90 |
+
[in, out, unique] IFilter ** filterObj);
|
| 91 |
+
};
|
| 92 |
+
|
| 93 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 94 |
+
#pragma endregion
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/filterpipeline.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|