diff options
Diffstat (limited to 'src/balutil/inc/IBootstrapperApplication.h')
-rw-r--r-- | src/balutil/inc/IBootstrapperApplication.h | 87 |
1 files changed, 69 insertions, 18 deletions
diff --git a/src/balutil/inc/IBootstrapperApplication.h b/src/balutil/inc/IBootstrapperApplication.h index 8fcdd318..7d6a7164 100644 --- a/src/balutil/inc/IBootstrapperApplication.h +++ b/src/balutil/inc/IBootstrapperApplication.h | |||
@@ -4,6 +4,26 @@ | |||
4 | 4 | ||
5 | DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") | 5 | DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") |
6 | { | 6 | { |
7 | // BAProc - The PFN_BOOTSTRAPPER_APPLICATION_PROC can call this method to give the BA raw access to the callback from the engine. | ||
8 | // This might be used to help the BA support more than one version of the engine. | ||
9 | STDMETHOD(BAProc)( | ||
10 | __in BOOTSTRAPPER_APPLICATION_MESSAGE message, | ||
11 | __in const LPVOID pvArgs, | ||
12 | __inout LPVOID pvResults, | ||
13 | __in_opt LPVOID pvContext | ||
14 | ) = 0; | ||
15 | |||
16 | // BAProcFallback - The PFN_BOOTSTRAPPER_APPLICATION_PROC can call this method | ||
17 | // to give the BA the ability to use default behavior | ||
18 | // and then forward the message to extensions. | ||
19 | STDMETHOD_(void, BAProcFallback)( | ||
20 | __in BOOTSTRAPPER_APPLICATION_MESSAGE message, | ||
21 | __in const LPVOID pvArgs, | ||
22 | __inout LPVOID pvResults, | ||
23 | __inout HRESULT* phr, | ||
24 | __in_opt LPVOID pvContext | ||
25 | ) = 0; | ||
26 | |||
7 | // OnStartup - called when the engine is ready for the bootstrapper application to start. | 27 | // OnStartup - called when the engine is ready for the bootstrapper application to start. |
8 | // | 28 | // |
9 | STDMETHOD(OnStartup)() = 0; | 29 | STDMETHOD(OnStartup)() = 0; |
@@ -297,8 +317,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A | |||
297 | __inout BOOL* pfCancel | 317 | __inout BOOL* pfCancel |
298 | ) = 0; | 318 | ) = 0; |
299 | 319 | ||
300 | // OnCacheAcquireProgress - called when the engine makes progresss copying | 320 | // OnCacheAcquireProgress - called when the engine makes progress acquiring the payload or container. |
301 | // or downloading a payload to the working folder. | ||
302 | // | 321 | // |
303 | STDMETHOD(OnCacheAcquireProgress)( | 322 | STDMETHOD(OnCacheAcquireProgress)( |
304 | __in_z_opt LPCWSTR wzPackageOrContainerId, | 323 | __in_z_opt LPCWSTR wzPackageOrContainerId, |
@@ -359,6 +378,16 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A | |||
359 | __inout BOOL* pfCancel | 378 | __inout BOOL* pfCancel |
360 | ) = 0; | 379 | ) = 0; |
361 | 380 | ||
381 | STDMETHOD(OnCacheVerifyProgress)( | ||
382 | __in_z_opt LPCWSTR wzPackageOrContainerId, | ||
383 | __in_z_opt LPCWSTR wzPayloadId, | ||
384 | __in DWORD64 dw64Progress, | ||
385 | __in DWORD64 dw64Total, | ||
386 | __in DWORD dwOverallPercentage, | ||
387 | __in BOOTSTRAPPER_CACHE_VERIFY_STEP verifyStep, | ||
388 | __inout BOOL* pfCancel | ||
389 | ) = 0; | ||
390 | |||
362 | // OnCacheVerifyComplete - called after the engine verifies and copies | 391 | // OnCacheVerifyComplete - called after the engine verifies and copies |
363 | // a payload or container to the package cache folder. | 392 | // a payload or container to the package cache folder. |
364 | // | 393 | // |
@@ -570,23 +599,45 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A | |||
570 | __inout BOOL* pfIgnoreBundle | 599 | __inout BOOL* pfIgnoreBundle |
571 | ) = 0; | 600 | ) = 0; |
572 | 601 | ||
573 | // BAProc - The PFN_BOOTSTRAPPER_APPLICATION_PROC can call this method to give the BA raw access to the callback from the engine. | 602 | STDMETHOD(OnCacheContainerOrPayloadVerifyBegin)( |
574 | // This might be used to help the BA support more than one version of the engine. | 603 | __in_z_opt LPCWSTR wzPackageOrContainerId, |
575 | STDMETHOD(BAProc)( | 604 | __in_z_opt LPCWSTR wzPayloadId, |
576 | __in BOOTSTRAPPER_APPLICATION_MESSAGE message, | 605 | __inout BOOL* pfCancel |
577 | __in const LPVOID pvArgs, | ||
578 | __inout LPVOID pvResults, | ||
579 | __in_opt LPVOID pvContext | ||
580 | ) = 0; | 606 | ) = 0; |
581 | 607 | ||
582 | // BAProcFallback - The PFN_BOOTSTRAPPER_APPLICATION_PROC can call this method | 608 | STDMETHOD(OnCacheContainerOrPayloadVerifyProgress)( |
583 | // to give the BA the ability to use default behavior | 609 | __in_z_opt LPCWSTR wzPackageOrContainerId, |
584 | // and then forward the message to extensions. | 610 | __in_z_opt LPCWSTR wzPayloadId, |
585 | STDMETHOD_(void, BAProcFallback)( | 611 | __in DWORD64 dw64Progress, |
586 | __in BOOTSTRAPPER_APPLICATION_MESSAGE message, | 612 | __in DWORD64 dw64Total, |
587 | __in const LPVOID pvArgs, | 613 | __in DWORD dwOverallPercentage, |
588 | __inout LPVOID pvResults, | 614 | __inout BOOL* pfCancel |
589 | __inout HRESULT* phr, | 615 | ) = 0; |
590 | __in_opt LPVOID pvContext | 616 | |
617 | STDMETHOD(OnCacheContainerOrPayloadVerifyComplete)( | ||
618 | __in_z_opt LPCWSTR wzPackageOrContainerId, | ||
619 | __in_z_opt LPCWSTR wzPayloadId, | ||
620 | __in HRESULT hrStatus | ||
621 | ) = 0; | ||
622 | |||
623 | STDMETHOD(OnCachePayloadExtractBegin)( | ||
624 | __in_z_opt LPCWSTR wzContainerId, | ||
625 | __in_z_opt LPCWSTR wzPayloadId, | ||
626 | __inout BOOL* pfCancel | ||
627 | ) = 0; | ||
628 | |||
629 | STDMETHOD(OnCachePayloadExtractProgress)( | ||
630 | __in_z_opt LPCWSTR wzContainerId, | ||
631 | __in_z_opt LPCWSTR wzPayloadId, | ||
632 | __in DWORD64 dw64Progress, | ||
633 | __in DWORD64 dw64Total, | ||
634 | __in DWORD dwOverallPercentage, | ||
635 | __inout BOOL* pfCancel | ||
636 | ) = 0; | ||
637 | |||
638 | STDMETHOD(OnCachePayloadExtractComplete)( | ||
639 | __in_z_opt LPCWSTR wzContainerId, | ||
640 | __in_z_opt LPCWSTR wzPayloadId, | ||
641 | __in HRESULT hrStatus | ||
591 | ) = 0; | 642 | ) = 0; |
592 | }; | 643 | }; |