Types, results, and limits
PAPER/Abi.h holds the shared vocabulary: PAPER_CALL (__cdecl), kRecordVersion (1), Status, OwnerToken (std::uint64_t) and InterfaceId. Each interface header carries its own kMajor and kMinor. Every header uses #pragma pack(push, 8) and needs a 64-bit consumer.
Results
| Status | Value | Meaning |
|---|---|---|
Ok | 0 | Request completed. |
InvalidArgument | 1 | Missing/invalid pointer, enum, flags, lease or count. |
UnsupportedVersion | 2 | Record version is not kRecordVersion. |
NotReady | 3 | Provider/family/snapshot is not ready. |
CapacityReached | 4 | Bounded owner/callback capacity is full. |
UnknownOwner | 5 | Owner token is absent or stale. |
PermissionDenied | 6 | Capability/policy does not authorize the call. |
NotFound | 7 | Requested record is absent. |
WrongThread | 8 | Call was not made on the PAPER game thread. |
OwnerConflict | 9 | Name or authority conflicts with another owner. |
InvalidSize | 10 | Public input/output is undersized. |
StaleSnapshot | 11 | The item or frame changed; re-read before acting. |
OutOfRange | 12 | Index/identifier is outside that snapshot. |
UnknownInterface | 100 | Discovery: unknown interface ID. |
UnsupportedMajor | 101 | Discovery: major not served. Like every version refusal, PAPER logs the calling DLL once in PAPER.log; the game keeps running. |
UnsupportedMinor | 102 | Discovery: installed PAPER is older than your headers. |
TableTooSmall | 103 | Discovery: installed table is smaller than your headers. |
InternalError | 104 | Discovery failed inside PAPER. |
Important bounds
- 16 consumers (
kMaxConsumers) and 16 callbacks (kMaxCallbacks). - 192 captured transforms and 15 finger transforms per hand.
- 64-character transform names (
kTransformNameCapacity). - 1200 maximum authority lease frames (
kMaxAuthorityLeaseFrames); 120 for a physical-reload lease (physical_reload::kMaxLeaseFrames).
Exports
PAPER.dll exports PAPERAPI_QueryInterfaceV1 (kQueryExportName) for discovery. The pre-2.0 exports PAPERAPI_GetProviderApi, PAPERAPI_GetProviderDescriptorV1 and PAPERAPI_QueryPhysicalReloadV1/V2/V3 remain only to refuse outdated consumers: each returns null and logs once. Their names, interface IDs, enum values and flag bits are never reused.