The GetNamedPipeTransactionSpecific function retrieves the transaction identifier associated with a named pipe.
BOOL GetNamedPipeTransactionSpecific(
HANDLE hNamedPipe,
LPGUID lpvTransaction,
LPDWORD lpdwTransactionState
);
GUID structure that receives the transaction identifier.DWORD that receives the state of the transaction. This can be one of the following values:
TRANSACTION_STATE_UNKNOWNTRANSACTION_STATE_ACTIVETRANSACTION_STATE_COMMITTEDTRANSACTION_STATE_ABORTEDIf the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.
This function is used to determine if a named pipe is associated with a distributed transaction and to retrieve the transaction's identifier and state.
Note: This function requires the pipe to be created with transactional support enabled.
| Support | |
|---|---|
| Minimum supported client | Windows XP |
| Minimum supported server | Windows Server 2003 |
| Header file | Namedpipeapi.h |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |