| xolehlp.h (2001.12.8530.16385-Windows_7.0) | | xolehlp.h (2001.12.10530.17415-Windows_8.1) |
| | |
| skipping to change at line 14 | | skipping to change at line 14 |
| | |
| (c) 1995 Microsoft Corporation. All Rights Reserved | | (c) 1995 Microsoft Corporation. All Rights Reserved |
| | |
| Filename : xolehlp.h | | Filename : xolehlp.h |
| contains DTC helper APIs used by RM's and application clients | | contains DTC helper APIs used by RM's and application clients |
| to obtain the transaction manager | | to obtain the transaction manager |
| ----------------------------------------------------------------------------- */ | | ----------------------------------------------------------------------------- */ |
| | |
| #ifndef __XOLEHLP__H__ | | #ifndef __XOLEHLP__H__ |
| #define __XOLEHLP__H__ | | #define __XOLEHLP__H__ |
|
| | #include <winapifamily.h> |
| | |
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| /*---------------------------------------- | | /*---------------------------------------- |
| // Defines | | // Defines |
| //--------------------------------------*/ | | //--------------------------------------*/ |
| #ifdef _M_CEE_PURE | | #ifdef _M_CEE_PURE |
| #define EXPORTAPI HRESULT | | #define EXPORTAPI HRESULT |
| #else | | #else |
| #define EXPORTAPI __declspec( dllexport )HRESULT | | #define EXPORTAPI __declspec( dllexport )HRESULT |
| #endif | | #endif |
| | |
| | |
| skipping to change at line 79 | | skipping to change at line 83 |
| //--------------------------------------*/ | | //--------------------------------------*/ |
| | |
| /*---------------------------------------- | | /*---------------------------------------- |
| //This API should be used to obtain an IUnknown or a ITransactionDispenser | | //This API should be used to obtain an IUnknown or a ITransactionDispenser |
| //interface from the Microsoft Distributed Transaction Coordinator's proxy. | | //interface from the Microsoft Distributed Transaction Coordinator's proxy. |
| //Typically, a NULL is passed for the host name and the TM Name. In which | | //Typically, a NULL is passed for the host name and the TM Name. In which |
| //case the MS DTC on the same host is contacted and the interface provided | | //case the MS DTC on the same host is contacted and the interface provided |
| //for it. | | //for it. |
| //--------------------------------------*/ | | //--------------------------------------*/ |
| EXPORTAPI __cdecl DtcGetTransactionManager( | | EXPORTAPI __cdecl DtcGetTransactionManager( |
|
| /* in */ __in LPSTR i_pszHost, | | /* in */ _In_opt_ LPSTR i_pszHost, |
| /* in */ __in LPSTR i_pszTmName, | | /* in */ _In_opt_ LPSTR i_pszTmName, |
| /* in */ REFIID i_riid, | | /* in */ REFIID i_riid, |
| /* in */ DWORD i_dwReserved1, | | /* in */ DWORD i_dwReserved1, |
| /* in */ WORD i_wcbReserved2, | | /* in */ WORD i_wcbReserved2, |
|
| /* in */ __in_bcount(i_wcbReserved2) void *
i_pvReserved2, | | /* in */ _In_reads_bytes_opt_(i_wcbReserved2
) void * i_pvReserved2, |
| /* out */ void** o_ppvObject | | /* out */ void** o_ppvObject |
| ); | | ); |
| EXTERN_C HRESULT __cdecl DtcGetTransactionManagerC( | | EXTERN_C HRESULT __cdecl DtcGetTransactionManagerC( |
|
| /* in */ __in LPSTR i_pszHost, | | /* in */ _In_opt_ LPSTR i_pszHost, |
| /* in */ __in LPSTR i_pszTmName, | | /* in */ _In_opt_ LPSTR i_pszTmName, |
| /* in */ REFIID i_riid, | | /* in */ REFIID i_riid, |
| /* in */ DWORD i_dwReserved1, | | /* in */ DWORD i_dwReserved1, |
| /* in */ WORD i_wcbReserved2, | | /* in */ WORD i_wcbReserved2, |
|
| /* in */ __in_bcount(i_wcbReserved2) void *
i_pvReserved2, | | /* in */ _In_reads_bytes_opt_(i_wcbReserved2
) void * i_pvReserved2, |
| /* out */ void ** o_ppvObject | | /* out */ void ** o_ppvObject |
| ); | | ); |
| | |
| EXTERN_C EXPORTAPI __cdecl DtcGetTransactionManagerExA( | | EXTERN_C EXPORTAPI __cdecl DtcGetTransactionManagerExA( |
|
| /* in */ __in_opt LPSTR i_pszHost, | | /* in */ _In_opt_ LPSTR i_pszHost, |
| /* in */ __in_opt LPSTR i_pszTmName, | | /* in */ _In_opt_ LPSTR i_pszTmName, |
| /* in */ REFIID i_riid, | | /* in */ REFIID i_riid, |
| /* in */ DWORD i_grfOptions, | | /* in */ DWORD i_grfOptions, |
| /* in */ void * i_pvConfigParams, | | /* in */ void * i_pvConfigParams, |
| /* out */ void ** o_ppvObject | | /* out */ void ** o_ppvObject |
| ); | | ); |
| | |
| EXTERN_C EXPORTAPI __cdecl DtcGetTransactionManagerExW( | | EXTERN_C EXPORTAPI __cdecl DtcGetTransactionManagerExW( |
|
| /* in */ __in_opt LPWSTR i_pwszHost, | | /* in */ _In_opt_ LPWSTR i_pwszHost, |
| /* in */ __in_opt LPWSTR i_pwszTmName, | | /* in */ _In_opt_ LPWSTR i_pwszTmName, |
| /* in */ REFIID i_riid, | | /* in */ REFIID i_riid, |
| /* in */ DWORD i_grfOptions, | | /* in */ DWORD i_grfOptions, |
| /* in */ void * i_pvConfigParams, | | /* in */ void * i_pvConfigParams, |
| /* out */ void ** o_ppvObject | | /* out */ void ** o_ppvObject |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define DtcGetTransactionManagerEx DtcGetTransactionManagerExW | | #define DtcGetTransactionManagerEx DtcGetTransactionManagerExW |
| #else | | #else |
| #define DtcGetTransactionManagerEx DtcGetTransactionManagerExA | | #define DtcGetTransactionManagerEx DtcGetTransactionManagerExA |
| #endif | | #endif |
| | |
| skipping to change at line 142 | | skipping to change at line 146 |
| /*---------------------------------------- | | /*---------------------------------------- |
| // Define a CLSID that can be used with CoCreateInstance to instantiate a vanill
a transaction | | // Define a CLSID that can be used with CoCreateInstance to instantiate a vanill
a transaction |
| // object with the local transaction manager. It's equivalent to doing | | // object with the local transaction manager. It's equivalent to doing |
| // | | // |
| // pTransactionDispenser->BeginTransaction(NULL, ISOLATIONLEVEL_UNSPECIFIED, IS
OFLAG_RETAIN_DONTCARE, NULL, &ptx); | | // pTransactionDispenser->BeginTransaction(NULL, ISOLATIONLEVEL_UNSPECIFIED, IS
OFLAG_RETAIN_DONTCARE, NULL, &ptx); |
| // | | // |
| // CLSID_MSDtcTransaction = {39F8D76B-0928-11d1-97DF-00C04FB9618A} | | // CLSID_MSDtcTransaction = {39F8D76B-0928-11d1-97DF-00C04FB9618A} |
| //--------------------------------------*/ | | //--------------------------------------*/ |
| EXTERN_GUID(CLSID_MSDtcTransaction, 0x39f8d76b, 0x928, 0x11d1, 0x97, 0xdf, 0x0,
0xc0, 0x4f, 0xb9, 0x61, 0x8a); | | EXTERN_GUID(CLSID_MSDtcTransaction, 0x39f8d76b, 0x928, 0x11d1, 0x97, 0xdf, 0x0,
0xc0, 0x4f, 0xb9, 0x61, 0x8a); |
| | |
|
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| #endif | | #endif |
| | |
| End of changes. 8 change blocks. |
| 10 lines changed or deleted | | 17 lines changed or added |
|