diff options
author | Nir Bar <nir.bar@panel-sw.co.il> | 2021-01-11 20:07:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 12:07:38 -0600 |
commit | c294fb860ed7710c80fc004af6c9ebb09779c70c (patch) | |
tree | 20f7a25ebd214ba77959787a97bcb579e24ee4c2 /src/dutil/inc | |
parent | 0ae3b1e7b5c0beff0fcfb82728c5bf9f25aee250 (diff) | |
download | wix-c294fb860ed7710c80fc004af6c9ebb09779c70c.tar.gz wix-c294fb860ed7710c80fc004af6c9ebb09779c70c.tar.bz2 wix-c294fb860ed7710c80fc004af6c9ebb09779c70c.zip |
Add functions to start/end MSI transactions and check whether or not it is supported on the target machine (#22)
* Add functions to start/end MSI transactions and check whether or not it is supported on the target machine
* Add log mode parameter to MSI transaction functions.
* No default log mode for WiuEndTransaction
Diffstat (limited to 'src/dutil/inc')
-rw-r--r-- | src/dutil/inc/wiutil.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/dutil/inc/wiutil.h b/src/dutil/inc/wiutil.h index 07f6b56c..10d003b0 100644 --- a/src/dutil/inc/wiutil.h +++ b/src/dutil/inc/wiutil.h | |||
@@ -226,6 +226,15 @@ typedef UINT (WINAPI *PFN_MSISOURCELISTADDSOURCEEXW)( | |||
226 | __in LPCWSTR szSource, | 226 | __in LPCWSTR szSource, |
227 | __in_opt DWORD dwIndex | 227 | __in_opt DWORD dwIndex |
228 | ); | 228 | ); |
229 | typedef UINT(WINAPI* PFN_MSIBEGINTRANSACTIONW)( | ||
230 | __in LPCWSTR szName, | ||
231 | __in DWORD dwTransactionAttributes, | ||
232 | __out MSIHANDLE* phTransactionHandle, | ||
233 | __out HANDLE* phChangeOfOwnerEvent | ||
234 | ); | ||
235 | typedef UINT(WINAPI* PFN_MSIENDTRANSACTION)( | ||
236 | __in DWORD dwTransactionState | ||
237 | ); | ||
229 | 238 | ||
230 | 239 | ||
231 | HRESULT DAPI WiuInitialize( | 240 | HRESULT DAPI WiuInitialize( |
@@ -372,6 +381,21 @@ HRESULT DAPI WiuSourceListAddSourceEx( | |||
372 | __in_z LPCWSTR wzSource, | 381 | __in_z LPCWSTR wzSource, |
373 | __in_opt DWORD dwIndex | 382 | __in_opt DWORD dwIndex |
374 | ); | 383 | ); |
384 | HRESULT DAPI WiuBeginTransaction( | ||
385 | __in_z LPCWSTR szName, | ||
386 | __in DWORD dwTransactionAttributes, | ||
387 | __out MSIHANDLE* phTransactionHandle, | ||
388 | __out HANDLE* phChangeOfOwnerEvent, | ||
389 | __in DWORD dwLogMode, | ||
390 | __in_z LPCWSTR szLogPath | ||
391 | ); | ||
392 | HRESULT DAPI WiuEndTransaction( | ||
393 | __in DWORD dwTransactionState, | ||
394 | __in DWORD dwLogMode, | ||
395 | __in_z LPCWSTR szLogPath | ||
396 | ); | ||
397 | BOOL DAPI WiuIsMsiTransactionSupported( | ||
398 | ); | ||
375 | 399 | ||
376 | #ifdef __cplusplus | 400 | #ifdef __cplusplus |
377 | } | 401 | } |