GetNamedPipeTransactionSpecific

The GetNamedPipeTransactionSpecific function retrieves the transaction identifier associated with a named pipe.

Syntax

BOOL GetNamedPipeTransactionSpecific(
  HANDLE                hNamedPipe,
  LPGUID                lpvTransaction,
  LPDWORD               lpdwTransactionState
);

Parameters

Return value

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

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.

Requirements

Support
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Header file Namedpipeapi.h
Library Kernel32.lib
DLL Kernel32.dll

See also