xbtp.dll: session open + connection dispatcher (17 exports) #1
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@omonkeyz on GitHub · 2026-11-21 16:52 UTC · original
Crate:
crates/compat/xbtpMissing exports: XbtpOpenSession / XbtpOpenSession2 / XbtpOpenSessionEx / XbtpOpenSessionEx2, XbtpOpenPipeSession (both C++ overloads), XbtpOpenSessionInternal, XbtpCompleteSessionSetupInternal, XbtpStartDispatcher / XbtpStartDispatcherEx, XbtpWrapDispatcher and the XbtpConnectionDispatcher class (ctor/dtor, Initialize, AddPipeEndpoint, Run, Shutdown).
Notes: Transport must stay in-process:
src/link_dev.rsalready emulates the\??\xbtplinkdevice (no TCP). Dispatcher contract the xtf* handlers rely on (console xbtp.dll 0x207bc): Invoke(handler, session, received, reply); session vtable +0x18 SendMoreMessage, +0x28 ReceiveMoreMessage (E_PENDING = success), +0x30 GetMessageReceivedEvent. Unblocks the xtfpix client rows.The export rows are marked
missingin each crate'sexports.txt. Read CONTRIBUTING.md first: console behaviour, tests, no fake success, no game files or binaries in the PR. Comment here to claim it so work isn't duplicated.@BaggyALPHA on GitHub · 2026-11-23 16:43 UTC · original
I found a COM error-handling defect in the XBTP client session on main
f89e4106fe: unsupported interface queries returned E_NOINTERFACE without clearing the output pointer.The attached patch clears rejected outputs and returns E_POINTER for a null output address. Three regression tests cover failure behavior and successful reference counting.
120 unit tests and five transport integration tests passed. Cargo check and the PR gate passed. No console-oracle or title validation was performed.
issue-1-session-queryinterface.patch
issue-1-regression-before.txt
issue-1-regression-after.txt
issue-1-test-results.txt
issue-1-validation-notes.txt