aboutsummaryrefslogtreecommitdiff
path: root/contrib/DirectX-Headers-1.618.2/include/directx/d3dshadercacheregistration.h
blob: 671866a18c2c030a190b62338a6e33dd568fe3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
/*-------------------------------------------------------------------------------------
 *
 * Copyright (c) Microsoft Corporation
 * Licensed under the MIT license
 *
 *-------------------------------------------------------------------------------------*/


/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 8.01.0628 */



/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif

/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __d3dshadercacheregistration_h__
#define __d3dshadercacheregistration_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#ifndef DECLSPEC_XFGVIRT
#if defined(_CONTROL_FLOW_GUARD_XFG)
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
#else
#define DECLSPEC_XFGVIRT(base, func)
#endif
#endif

/* Forward Declarations */ 

#ifndef __ID3DShaderCacheInstallerClient_FWD_DEFINED__
#define __ID3DShaderCacheInstallerClient_FWD_DEFINED__
typedef interface ID3DShaderCacheInstallerClient ID3DShaderCacheInstallerClient;

#endif 	/* __ID3DShaderCacheInstallerClient_FWD_DEFINED__ */


#ifndef __ID3DShaderCacheComponent_FWD_DEFINED__
#define __ID3DShaderCacheComponent_FWD_DEFINED__
typedef interface ID3DShaderCacheComponent ID3DShaderCacheComponent;

#endif 	/* __ID3DShaderCacheComponent_FWD_DEFINED__ */


#ifndef __ID3DShaderCacheApplication_FWD_DEFINED__
#define __ID3DShaderCacheApplication_FWD_DEFINED__
typedef interface ID3DShaderCacheApplication ID3DShaderCacheApplication;

#endif 	/* __ID3DShaderCacheApplication_FWD_DEFINED__ */


#ifndef __ID3DShaderCacheInstaller_FWD_DEFINED__
#define __ID3DShaderCacheInstaller_FWD_DEFINED__
typedef interface ID3DShaderCacheInstaller ID3DShaderCacheInstaller;

#endif 	/* __ID3DShaderCacheInstaller_FWD_DEFINED__ */


#ifndef __ID3DShaderCacheExplorer_FWD_DEFINED__
#define __ID3DShaderCacheExplorer_FWD_DEFINED__
typedef interface ID3DShaderCacheExplorer ID3DShaderCacheExplorer;

#endif 	/* __ID3DShaderCacheExplorer_FWD_DEFINED__ */


#ifndef __ID3DShaderCacheInstallerFactory_FWD_DEFINED__
#define __ID3DShaderCacheInstallerFactory_FWD_DEFINED__
typedef interface ID3DShaderCacheInstallerFactory ID3DShaderCacheInstallerFactory;

#endif 	/* __ID3DShaderCacheInstallerFactory_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


/* interface __MIDL_itf_d3dshadercacheregistration_0000_0000 */
/* [local] */ 

#pragma once
DEFINE_GUID(CLSID_D3DShaderCacheInstallerFactory,    0x16195a0b, 0x607c, 0x41f1, 0xbf, 0x03, 0xc7, 0x69, 0x4d, 0x60, 0xa8, 0xd4);
typedef 
enum D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE
    {
        D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_USER	= 0,
        D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_SYSTEM	= ( D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_USER + 1 ) 
    } 	D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE;




extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0000_v0_0_s_ifspec;

#ifndef __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__
#define __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__

/* interface ID3DShaderCacheInstallerClient */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheInstallerClient;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("a16ee930-d9f6-4222-a514-244473e5d266")
    ID3DShaderCacheInstallerClient
    {
    public:
        BEGIN_INTERFACE
        virtual HRESULT STDMETHODCALLTYPE GetInstallerName( 
            _Inout_  SIZE_T *pNameLength,
            _Out_writes_opt_(*pNameLength)  wchar_t *pName) = 0;
        
        virtual D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE STDMETHODCALLTYPE GetInstallerScope( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE HandleDriverUpdate( 
            _In_  ID3DShaderCacheInstaller *pInstaller) = 0;
        
        END_INTERFACE
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheInstallerClientVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, GetInstallerName)
        HRESULT ( STDMETHODCALLTYPE *GetInstallerName )( 
            ID3DShaderCacheInstallerClient * This,
            _Inout_  SIZE_T *pNameLength,
            _Out_writes_opt_(*pNameLength)  wchar_t *pName);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, GetInstallerScope)
        D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE ( STDMETHODCALLTYPE *GetInstallerScope )( 
            ID3DShaderCacheInstallerClient * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, HandleDriverUpdate)
        HRESULT ( STDMETHODCALLTYPE *HandleDriverUpdate )( 
            ID3DShaderCacheInstallerClient * This,
            _In_  ID3DShaderCacheInstaller *pInstaller);
        
        END_INTERFACE
    } ID3DShaderCacheInstallerClientVtbl;

    interface ID3DShaderCacheInstallerClient
    {
        CONST_VTBL struct ID3DShaderCacheInstallerClientVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheInstallerClient_GetInstallerName(This,pNameLength,pName)	\
    ( (This)->lpVtbl -> GetInstallerName(This,pNameLength,pName) ) 

#define ID3DShaderCacheInstallerClient_GetInstallerScope(This)	\
    ( (This)->lpVtbl -> GetInstallerScope(This) ) 

#define ID3DShaderCacheInstallerClient_HandleDriverUpdate(This,pInstaller)	\
    ( (This)->lpVtbl -> HandleDriverUpdate(This,pInstaller) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__ */


/* interface __MIDL_itf_d3dshadercacheregistration_0000_0001 */
/* [local] */ 

typedef struct D3D_SHADER_CACHE_PSDB_PROPERTIES
    {
    const wchar_t *pAdapterFamily;
    const wchar_t *pPsdbPath;
    } 	D3D_SHADER_CACHE_PSDB_PROPERTIES;



extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0001_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0001_v0_0_s_ifspec;

#ifndef __ID3DShaderCacheComponent_INTERFACE_DEFINED__
#define __ID3DShaderCacheComponent_INTERFACE_DEFINED__

/* interface ID3DShaderCacheComponent */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheComponent;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("eed1bf00-f5c7-4cf7-885c-d0f9c0cb4828")
    ID3DShaderCacheComponent : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE GetComponentName( 
            _Out_  const wchar_t **pName) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetStateObjectDatabasePath( 
            _Out_  const wchar_t **pPath) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetPrecompiledCachePath( 
            _In_  const wchar_t *pAdapterFamily,
            _Inout_  const wchar_t **pPath) = 0;
        
        virtual UINT STDMETHODCALLTYPE GetPrecompiledShaderDatabaseCount( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetPrecompiledShaderDatabases( 
            UINT ArraySize,
            _Out_writes_(ArraySize)  D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheComponentVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ID3DShaderCacheComponent * This,
            REFIID riid,
            _COM_Outptr_  void **ppvObject);
        
        DECLSPEC_XFGVIRT(IUnknown, AddRef)
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ID3DShaderCacheComponent * This);
        
        DECLSPEC_XFGVIRT(IUnknown, Release)
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ID3DShaderCacheComponent * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetComponentName)
        HRESULT ( STDMETHODCALLTYPE *GetComponentName )( 
            ID3DShaderCacheComponent * This,
            _Out_  const wchar_t **pName);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetStateObjectDatabasePath)
        HRESULT ( STDMETHODCALLTYPE *GetStateObjectDatabasePath )( 
            ID3DShaderCacheComponent * This,
            _Out_  const wchar_t **pPath);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledCachePath)
        HRESULT ( STDMETHODCALLTYPE *GetPrecompiledCachePath )( 
            ID3DShaderCacheComponent * This,
            _In_  const wchar_t *pAdapterFamily,
            _Inout_  const wchar_t **pPath);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledShaderDatabaseCount)
        UINT ( STDMETHODCALLTYPE *GetPrecompiledShaderDatabaseCount )( 
            ID3DShaderCacheComponent * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledShaderDatabases)
        HRESULT ( STDMETHODCALLTYPE *GetPrecompiledShaderDatabases )( 
            ID3DShaderCacheComponent * This,
            UINT ArraySize,
            _Out_writes_(ArraySize)  D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs);
        
        END_INTERFACE
    } ID3DShaderCacheComponentVtbl;

    interface ID3DShaderCacheComponent
    {
        CONST_VTBL struct ID3DShaderCacheComponentVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheComponent_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ID3DShaderCacheComponent_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ID3DShaderCacheComponent_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ID3DShaderCacheComponent_GetComponentName(This,pName)	\
    ( (This)->lpVtbl -> GetComponentName(This,pName) ) 

#define ID3DShaderCacheComponent_GetStateObjectDatabasePath(This,pPath)	\
    ( (This)->lpVtbl -> GetStateObjectDatabasePath(This,pPath) ) 

#define ID3DShaderCacheComponent_GetPrecompiledCachePath(This,pAdapterFamily,pPath)	\
    ( (This)->lpVtbl -> GetPrecompiledCachePath(This,pAdapterFamily,pPath) ) 

#define ID3DShaderCacheComponent_GetPrecompiledShaderDatabaseCount(This)	\
    ( (This)->lpVtbl -> GetPrecompiledShaderDatabaseCount(This) ) 

#define ID3DShaderCacheComponent_GetPrecompiledShaderDatabases(This,ArraySize,pPSDBs)	\
    ( (This)->lpVtbl -> GetPrecompiledShaderDatabases(This,ArraySize,pPSDBs) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheComponent_INTERFACE_DEFINED__ */


/* interface __MIDL_itf_d3dshadercacheregistration_0000_0002 */
/* [local] */ 

typedef 
enum D3D_SHADER_CACHE_TARGET_FLAGS
    {
        D3D_SHADER_CACHE_TARGET_FLAG_NONE	= 0
    } 	D3D_SHADER_CACHE_TARGET_FLAGS;

DEFINE_ENUM_FLAG_OPERATORS( D3D_SHADER_CACHE_TARGET_FLAGS )
typedef union D3D_VERSION_NUMBER
    {
    UINT64 Version;
    UINT16 VersionParts[ 4 ];
    } 	D3D_VERSION_NUMBER;

typedef struct D3D_SHADER_CACHE_COMPILER_PROPERTIES
    {
    wchar_t szAdapterFamily[ 128 ];
    UINT64 MinimumABISupportVersion;
    UINT64 MaximumABISupportVersion;
    D3D_VERSION_NUMBER CompilerVersion;
    D3D_VERSION_NUMBER ApplicationProfileVersion;
    } 	D3D_SHADER_CACHE_COMPILER_PROPERTIES;

typedef struct D3D_SHADER_CACHE_APPLICATION_DESC
    {
    const wchar_t *pExeFilename;
    const wchar_t *pName;
    D3D_VERSION_NUMBER Version;
    const wchar_t *pEngineName;
    D3D_VERSION_NUMBER EngineVersion;
    } 	D3D_SHADER_CACHE_APPLICATION_DESC;



extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0002_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0002_v0_0_s_ifspec;

#ifndef __ID3DShaderCacheApplication_INTERFACE_DEFINED__
#define __ID3DShaderCacheApplication_INTERFACE_DEFINED__

/* interface ID3DShaderCacheApplication */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheApplication;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("fc688ee2-1b35-4913-93be-1ca3fa7df39e")
    ID3DShaderCacheApplication : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE GetExePath( 
            _Out_  const wchar_t **pExePath) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetDesc( 
            _Out_  D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RegisterComponent( 
            _In_  const wchar_t *pName,
            _In_  const wchar_t *pStateObjectDBPath,
            _In_  UINT NumPSDB,
            _In_reads_(NumPSDB)  const D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs,
            REFIID riid,
            _COM_Outptr_  void **ppvComponent) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RemoveComponent( 
            _In_  ID3DShaderCacheComponent *pComponent) = 0;
        
        virtual UINT STDMETHODCALLTYPE GetComponentCount( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetComponent( 
            _In_  UINT index,
            REFIID riid,
            _COM_Outptr_  void **ppvComponent) = 0;
        
        virtual UINT STDMETHODCALLTYPE GetPrecompileTargetCount( 
            D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetPrecompileTargets( 
            _In_  UINT ArraySize,
            _In_reads_(ArraySize)  D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray,
            D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetInstallerName( 
            _Out_  const wchar_t **pInstallerName) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheApplicationVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ID3DShaderCacheApplication * This,
            REFIID riid,
            _COM_Outptr_  void **ppvObject);
        
        DECLSPEC_XFGVIRT(IUnknown, AddRef)
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ID3DShaderCacheApplication * This);
        
        DECLSPEC_XFGVIRT(IUnknown, Release)
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ID3DShaderCacheApplication * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetExePath)
        HRESULT ( STDMETHODCALLTYPE *GetExePath )( 
            ID3DShaderCacheApplication * This,
            _Out_  const wchar_t **pExePath);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetDesc)
        HRESULT ( STDMETHODCALLTYPE *GetDesc )( 
            ID3DShaderCacheApplication * This,
            _Out_  D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, RegisterComponent)
        HRESULT ( STDMETHODCALLTYPE *RegisterComponent )( 
            ID3DShaderCacheApplication * This,
            _In_  const wchar_t *pName,
            _In_  const wchar_t *pStateObjectDBPath,
            _In_  UINT NumPSDB,
            _In_reads_(NumPSDB)  const D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs,
            REFIID riid,
            _COM_Outptr_  void **ppvComponent);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, RemoveComponent)
        HRESULT ( STDMETHODCALLTYPE *RemoveComponent )( 
            ID3DShaderCacheApplication * This,
            _In_  ID3DShaderCacheComponent *pComponent);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetComponentCount)
        UINT ( STDMETHODCALLTYPE *GetComponentCount )( 
            ID3DShaderCacheApplication * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetComponent)
        HRESULT ( STDMETHODCALLTYPE *GetComponent )( 
            ID3DShaderCacheApplication * This,
            _In_  UINT index,
            REFIID riid,
            _COM_Outptr_  void **ppvComponent);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetPrecompileTargetCount)
        UINT ( STDMETHODCALLTYPE *GetPrecompileTargetCount )( 
            ID3DShaderCacheApplication * This,
            D3D_SHADER_CACHE_TARGET_FLAGS flags);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetPrecompileTargets)
        HRESULT ( STDMETHODCALLTYPE *GetPrecompileTargets )( 
            ID3DShaderCacheApplication * This,
            _In_  UINT ArraySize,
            _In_reads_(ArraySize)  D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray,
            D3D_SHADER_CACHE_TARGET_FLAGS flags);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetInstallerName)
        HRESULT ( STDMETHODCALLTYPE *GetInstallerName )( 
            ID3DShaderCacheApplication * This,
            _Out_  const wchar_t **pInstallerName);
        
        END_INTERFACE
    } ID3DShaderCacheApplicationVtbl;

    interface ID3DShaderCacheApplication
    {
        CONST_VTBL struct ID3DShaderCacheApplicationVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheApplication_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ID3DShaderCacheApplication_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ID3DShaderCacheApplication_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ID3DShaderCacheApplication_GetExePath(This,pExePath)	\
    ( (This)->lpVtbl -> GetExePath(This,pExePath) ) 

#define ID3DShaderCacheApplication_GetDesc(This,pApplicationDesc)	\
    ( (This)->lpVtbl -> GetDesc(This,pApplicationDesc) ) 

#define ID3DShaderCacheApplication_RegisterComponent(This,pName,pStateObjectDBPath,NumPSDB,pPSDBs,riid,ppvComponent)	\
    ( (This)->lpVtbl -> RegisterComponent(This,pName,pStateObjectDBPath,NumPSDB,pPSDBs,riid,ppvComponent) ) 

#define ID3DShaderCacheApplication_RemoveComponent(This,pComponent)	\
    ( (This)->lpVtbl -> RemoveComponent(This,pComponent) ) 

#define ID3DShaderCacheApplication_GetComponentCount(This)	\
    ( (This)->lpVtbl -> GetComponentCount(This) ) 

#define ID3DShaderCacheApplication_GetComponent(This,index,riid,ppvComponent)	\
    ( (This)->lpVtbl -> GetComponent(This,index,riid,ppvComponent) ) 

#define ID3DShaderCacheApplication_GetPrecompileTargetCount(This,flags)	\
    ( (This)->lpVtbl -> GetPrecompileTargetCount(This,flags) ) 

#define ID3DShaderCacheApplication_GetPrecompileTargets(This,ArraySize,pArray,flags)	\
    ( (This)->lpVtbl -> GetPrecompileTargets(This,ArraySize,pArray,flags) ) 

#define ID3DShaderCacheApplication_GetInstallerName(This,pInstallerName)	\
    ( (This)->lpVtbl -> GetInstallerName(This,pInstallerName) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheApplication_INTERFACE_DEFINED__ */


/* interface __MIDL_itf_d3dshadercacheregistration_0000_0003 */
/* [local] */ 

typedef struct SC_HANDLE__ *SC_HANDLE;



extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0003_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0003_v0_0_s_ifspec;

#ifndef __ID3DShaderCacheInstaller_INTERFACE_DEFINED__
#define __ID3DShaderCacheInstaller_INTERFACE_DEFINED__

/* interface ID3DShaderCacheInstaller */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheInstaller;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("bbe30de1-6318-4526-ae17-776693191bb4")
    ID3DShaderCacheInstaller : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE RegisterDriverUpdateListener( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE UnregisterDriverUpdateListener( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RegisterServiceDriverUpdateTrigger( 
            SC_HANDLE hServiceHandle) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE UnregisterServiceDriverUpdateTrigger( 
            SC_HANDLE hServiceHandle) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RegisterApplication( 
            _In_  const wchar_t *pExePath,
            _In_  const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc,
            REFIID riid,
            _COM_Outptr_  void **ppvApp) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RemoveApplication( 
            _In_  ID3DShaderCacheApplication *pApplication) = 0;
        
        virtual UINT STDMETHODCALLTYPE GetApplicationCount( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetApplication( 
            _In_  UINT index,
            REFIID riid,
            _COM_Outptr_  void **ppvApp) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE ClearAllState( void) = 0;
        
        virtual UINT STDMETHODCALLTYPE GetMaxPrecompileTargetCount( void) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetPrecompileTargets( 
            _In_opt_  const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc,
            _Inout_  UINT *pArraySize,
            _Out_writes_(*pArraySize)  D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray,
            D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheInstallerVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ID3DShaderCacheInstaller * This,
            REFIID riid,
            _COM_Outptr_  void **ppvObject);
        
        DECLSPEC_XFGVIRT(IUnknown, AddRef)
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(IUnknown, Release)
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterDriverUpdateListener)
        HRESULT ( STDMETHODCALLTYPE *RegisterDriverUpdateListener )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, UnregisterDriverUpdateListener)
        HRESULT ( STDMETHODCALLTYPE *UnregisterDriverUpdateListener )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterServiceDriverUpdateTrigger)
        HRESULT ( STDMETHODCALLTYPE *RegisterServiceDriverUpdateTrigger )( 
            ID3DShaderCacheInstaller * This,
            SC_HANDLE hServiceHandle);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, UnregisterServiceDriverUpdateTrigger)
        HRESULT ( STDMETHODCALLTYPE *UnregisterServiceDriverUpdateTrigger )( 
            ID3DShaderCacheInstaller * This,
            SC_HANDLE hServiceHandle);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterApplication)
        HRESULT ( STDMETHODCALLTYPE *RegisterApplication )( 
            ID3DShaderCacheInstaller * This,
            _In_  const wchar_t *pExePath,
            _In_  const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc,
            REFIID riid,
            _COM_Outptr_  void **ppvApp);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RemoveApplication)
        HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( 
            ID3DShaderCacheInstaller * This,
            _In_  ID3DShaderCacheApplication *pApplication);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetApplicationCount)
        UINT ( STDMETHODCALLTYPE *GetApplicationCount )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetApplication)
        HRESULT ( STDMETHODCALLTYPE *GetApplication )( 
            ID3DShaderCacheInstaller * This,
            _In_  UINT index,
            REFIID riid,
            _COM_Outptr_  void **ppvApp);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, ClearAllState)
        HRESULT ( STDMETHODCALLTYPE *ClearAllState )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetMaxPrecompileTargetCount)
        UINT ( STDMETHODCALLTYPE *GetMaxPrecompileTargetCount )( 
            ID3DShaderCacheInstaller * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetPrecompileTargets)
        HRESULT ( STDMETHODCALLTYPE *GetPrecompileTargets )( 
            ID3DShaderCacheInstaller * This,
            _In_opt_  const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc,
            _Inout_  UINT *pArraySize,
            _Out_writes_(*pArraySize)  D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray,
            D3D_SHADER_CACHE_TARGET_FLAGS flags);
        
        END_INTERFACE
    } ID3DShaderCacheInstallerVtbl;

    interface ID3DShaderCacheInstaller
    {
        CONST_VTBL struct ID3DShaderCacheInstallerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheInstaller_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ID3DShaderCacheInstaller_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ID3DShaderCacheInstaller_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ID3DShaderCacheInstaller_RegisterDriverUpdateListener(This)	\
    ( (This)->lpVtbl -> RegisterDriverUpdateListener(This) ) 

#define ID3DShaderCacheInstaller_UnregisterDriverUpdateListener(This)	\
    ( (This)->lpVtbl -> UnregisterDriverUpdateListener(This) ) 

#define ID3DShaderCacheInstaller_RegisterServiceDriverUpdateTrigger(This,hServiceHandle)	\
    ( (This)->lpVtbl -> RegisterServiceDriverUpdateTrigger(This,hServiceHandle) ) 

#define ID3DShaderCacheInstaller_UnregisterServiceDriverUpdateTrigger(This,hServiceHandle)	\
    ( (This)->lpVtbl -> UnregisterServiceDriverUpdateTrigger(This,hServiceHandle) ) 

#define ID3DShaderCacheInstaller_RegisterApplication(This,pExePath,pApplicationDesc,riid,ppvApp)	\
    ( (This)->lpVtbl -> RegisterApplication(This,pExePath,pApplicationDesc,riid,ppvApp) ) 

#define ID3DShaderCacheInstaller_RemoveApplication(This,pApplication)	\
    ( (This)->lpVtbl -> RemoveApplication(This,pApplication) ) 

#define ID3DShaderCacheInstaller_GetApplicationCount(This)	\
    ( (This)->lpVtbl -> GetApplicationCount(This) ) 

#define ID3DShaderCacheInstaller_GetApplication(This,index,riid,ppvApp)	\
    ( (This)->lpVtbl -> GetApplication(This,index,riid,ppvApp) ) 

#define ID3DShaderCacheInstaller_ClearAllState(This)	\
    ( (This)->lpVtbl -> ClearAllState(This) ) 

#define ID3DShaderCacheInstaller_GetMaxPrecompileTargetCount(This)	\
    ( (This)->lpVtbl -> GetMaxPrecompileTargetCount(This) ) 

#define ID3DShaderCacheInstaller_GetPrecompileTargets(This,pApplicationDesc,pArraySize,pArray,flags)	\
    ( (This)->lpVtbl -> GetPrecompileTargets(This,pApplicationDesc,pArraySize,pArray,flags) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheInstaller_INTERFACE_DEFINED__ */


#ifndef __ID3DShaderCacheExplorer_INTERFACE_DEFINED__
#define __ID3DShaderCacheExplorer_INTERFACE_DEFINED__

/* interface ID3DShaderCacheExplorer */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheExplorer;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("90432322-32f5-487f-9264-e9390fa58b2a")
    ID3DShaderCacheExplorer : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE GetApplicationFromExePath( 
            _In_  const wchar_t *pFullExePath,
            REFIID riid,
            _COM_Outptr_  void **ppvApp) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheExplorerVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ID3DShaderCacheExplorer * This,
            REFIID riid,
            _COM_Outptr_  void **ppvObject);
        
        DECLSPEC_XFGVIRT(IUnknown, AddRef)
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ID3DShaderCacheExplorer * This);
        
        DECLSPEC_XFGVIRT(IUnknown, Release)
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ID3DShaderCacheExplorer * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheExplorer, GetApplicationFromExePath)
        HRESULT ( STDMETHODCALLTYPE *GetApplicationFromExePath )( 
            ID3DShaderCacheExplorer * This,
            _In_  const wchar_t *pFullExePath,
            REFIID riid,
            _COM_Outptr_  void **ppvApp);
        
        END_INTERFACE
    } ID3DShaderCacheExplorerVtbl;

    interface ID3DShaderCacheExplorer
    {
        CONST_VTBL struct ID3DShaderCacheExplorerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheExplorer_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ID3DShaderCacheExplorer_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ID3DShaderCacheExplorer_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ID3DShaderCacheExplorer_GetApplicationFromExePath(This,pFullExePath,riid,ppvApp)	\
    ( (This)->lpVtbl -> GetApplicationFromExePath(This,pFullExePath,riid,ppvApp) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheExplorer_INTERFACE_DEFINED__ */


#ifndef __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__
#define __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__

/* interface ID3DShaderCacheInstallerFactory */
/* [unique][local][object][uuid] */ 


EXTERN_C const IID IID_ID3DShaderCacheInstallerFactory;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("09b2dfe4-840f-401a-804c-0dd8aadc9e9f")
    ID3DShaderCacheInstallerFactory : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE CreateInstaller( 
            _In_  ID3DShaderCacheInstallerClient *pClient,
            REFIID riid,
            _COM_Outptr_  void **ppvInstaller) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE CreateExplorer( 
            IUnknown *pUnknown,
            REFIID riid,
            _COM_Outptr_  void **ppvExplorer) = 0;
        
    };
    
    
#else 	/* C style interface */

    typedef struct ID3DShaderCacheInstallerFactoryVtbl
    {
        BEGIN_INTERFACE
        
        DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ID3DShaderCacheInstallerFactory * This,
            REFIID riid,
            _COM_Outptr_  void **ppvObject);
        
        DECLSPEC_XFGVIRT(IUnknown, AddRef)
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ID3DShaderCacheInstallerFactory * This);
        
        DECLSPEC_XFGVIRT(IUnknown, Release)
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ID3DShaderCacheInstallerFactory * This);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerFactory, CreateInstaller)
        HRESULT ( STDMETHODCALLTYPE *CreateInstaller )( 
            ID3DShaderCacheInstallerFactory * This,
            _In_  ID3DShaderCacheInstallerClient *pClient,
            REFIID riid,
            _COM_Outptr_  void **ppvInstaller);
        
        DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerFactory, CreateExplorer)
        HRESULT ( STDMETHODCALLTYPE *CreateExplorer )( 
            ID3DShaderCacheInstallerFactory * This,
            IUnknown *pUnknown,
            REFIID riid,
            _COM_Outptr_  void **ppvExplorer);
        
        END_INTERFACE
    } ID3DShaderCacheInstallerFactoryVtbl;

    interface ID3DShaderCacheInstallerFactory
    {
        CONST_VTBL struct ID3DShaderCacheInstallerFactoryVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ID3DShaderCacheInstallerFactory_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ID3DShaderCacheInstallerFactory_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ID3DShaderCacheInstallerFactory_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ID3DShaderCacheInstallerFactory_CreateInstaller(This,pClient,riid,ppvInstaller)	\
    ( (This)->lpVtbl -> CreateInstaller(This,pClient,riid,ppvInstaller) ) 

#define ID3DShaderCacheInstallerFactory_CreateExplorer(This,pUnknown,riid,ppvExplorer)	\
    ( (This)->lpVtbl -> CreateExplorer(This,pUnknown,riid,ppvExplorer) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__ */


/* interface __MIDL_itf_d3dshadercacheregistration_0000_0006 */
/* [local] */ 

DEFINE_GUID(IID_ID3DShaderCacheInstallerClient,0xa16ee930,0xd9f6,0x4222,0xa5,0x14,0x24,0x44,0x73,0xe5,0xd2,0x66);
DEFINE_GUID(IID_ID3DShaderCacheComponent,0xeed1bf00,0xf5c7,0x4cf7,0x88,0x5c,0xd0,0xf9,0xc0,0xcb,0x48,0x28);
DEFINE_GUID(IID_ID3DShaderCacheApplication,0xfc688ee2,0x1b35,0x4913,0x93,0xbe,0x1c,0xa3,0xfa,0x7d,0xf3,0x9e);
DEFINE_GUID(IID_ID3DShaderCacheInstaller,0xbbe30de1,0x6318,0x4526,0xae,0x17,0x77,0x66,0x93,0x19,0x1b,0xb4);
DEFINE_GUID(IID_ID3DShaderCacheExplorer,0x90432322,0x32f5,0x487f,0x92,0x64,0xe9,0x39,0x0f,0xa5,0x8b,0x2a);
DEFINE_GUID(IID_ID3DShaderCacheInstallerFactory,0x09b2dfe4,0x840f,0x401a,0x80,0x4c,0x0d,0xd8,0xaa,0xdc,0x9e,0x9f);


extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0006_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0006_v0_0_s_ifspec;

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif