public static UInt32 PartyXblCreateRemoteChatUser(
            PARTY_XBL_HANDLE handle,
            UInt64 xboxUserId,
            out PARTY_XBL_CHAT_USER_HANDLE chatUser)
        {
            chatUser = null;
            if (handle == null)
            {
                return(PartyError.InvalidArg);
            }

            Interop.PARTY_XBL_CHAT_USER_HANDLE interopHandle;
            UInt32 err = PartyXblInterop.PartyXblCreateRemoteChatUser(
                handle.InteropHandle,
                xboxUserId,
                out interopHandle);

            return(PARTY_XBL_CHAT_USER_HANDLE.WrapAndReturnError(err, interopHandle, out chatUser));
        }
Beispiel #2
0
        public static UInt32 PartyXblCreateRemoteChatUser(
            PARTY_XBL_HANDLE handle,
            UInt64 xboxUserId,
            out PARTY_XBL_CHAT_USER_HANDLE chatUser)
        {
            chatUser = null;
            if (handle == null)
            {
                return(PartyError.InvalidArg);
            }

            Interop.PARTY_XBL_CHAT_USER_HANDLE interopHandle;
            UInt32 err = PartyXblInterop.PartyXblCreateRemoteChatUser(
                handle.InteropHandle,
                xboxUserId,
                out interopHandle);

            if (err == PartyErrorXblChatUserAlreadyExists) // if remote chat user already exists, return its handle without an error
            {
                err = PartyError.Success;
            }
            return(PARTY_XBL_CHAT_USER_HANDLE.WrapAndReturnError(err, interopHandle, out chatUser));
        }