NTSTATUS
RXactpOpenTargetKey(
  IN  HANDLE RootRegistryKey,
  IN  RTL_RXACT_OPERATION Operation,
  IN  PUNICODE_STRING SubKeyName,
  OUT PHANDLE TargetKey
  );

Routine Description:

    This routine opens the target registry key of an operation.

Arguments:

    RootRegistryKey - A handle to the registry key within whose sub-tree
        a transaction is to be initialized.

    Operation - Indicates what operation is to be performed on the target.
        This will effect how the target is opened.

    OperationNameKey - A handle to the operation log sub-key
        containing the name of the target registry key.

    TargetKey - Receives a handle to the target registry key.

Return Value:

    STATUS_SUCCESS - Indicates the operation log entry was opened.

    STATUS_NO_MEMORY - Ran out of heap.