internal static UInt32 WrapAndReturnError(UInt32 error, Interop.PARTY_XBL_HANDLE interopHandle, out PARTY_XBL_HANDLE handle) { if (PartyError.SUCCEEDED(error)) { handle = new PARTY_XBL_HANDLE(interopHandle); } else { handle = default(PARTY_XBL_HANDLE); } return(error); }
unsafe internal static extern UInt32 PartyXblGetChatUsers( PARTY_XBL_HANDLE handle, out UInt32 chatUserCount, out IntPtr chatUsers);
internal static extern UInt32 PartyXblCleanup( PARTY_XBL_HANDLE handle);
internal static extern UInt32 PartyXblCompleteGetTokenAndSignatureRequest( PARTY_XBL_HANDLE handle, UInt32 correlationId, Byte succeeded, Byte[] token, Byte[] signature);
internal static extern UInt32 PartyXblInitialize( IntPtr partyHandle, Byte[] titleId, out PARTY_XBL_HANDLE handle);
internal static extern UInt32 PartyXblDestroyChatUser( PARTY_XBL_HANDLE handle, PARTY_XBL_CHAT_USER_HANDLE chatUser);
internal static extern UInt32 PartyXblGetEntityIdsFromXboxLiveUserIds( PARTY_XBL_HANDLE handle, UInt32 xboxLiveUserIdCount, UInt64[] xboxLiveUserIds, PARTY_XBL_CHAT_USER_HANDLE localChatUser, IntPtr asyncIdentifier);
internal static extern UInt32 PartyXblCreateLocalChatUser( PARTY_XBL_HANDLE handle, UInt64 xboxUserId, IntPtr asyncIdentifier, out PARTY_XBL_CHAT_USER_HANDLE localXboxLiveUser);
unsafe internal static extern UInt32 PartyXblStartProcessingStateChanges( PARTY_XBL_HANDLE handle, out UInt32 stateChangeCount, out IntPtr stateChanges);
unsafe internal static extern UInt32 PartyXblFinishProcessingStateChanges( PARTY_XBL_HANDLE handle, UInt32 stateChangeCount, IntPtr stateChanges);
internal static extern UInt32 PartyXblCreateRemoteChatUser( PARTY_XBL_HANDLE handle, UInt64 xboxUserId, out PARTY_XBL_CHAT_USER_HANDLE chatUser);
internal PARTY_XBL_HANDLE(Interop.PARTY_XBL_HANDLE interopHandle) { this.InteropHandle = interopHandle; }