How do you get the name of SignedInGamers on WP7 with XNA? - xna

Is it possible to get the SignedInGamers name on WP7 like you do with the XBOX? I've tried testing it with:
SignedInGamer gamer = Gamer.SignedInGamers[0];
gamer.DisplayName;
But have only received a null value for the gamer object on the phone.
Thanks
Sebastian

The GamerServices namespace (where this functionality lives) is only available to XBox-Live games. As such it's not available to everyone creating games.
You must have the elevated API access granted to MS partners allowed to create games which interact with Live to be able to use this functionality.
I'm assuming that you aren't a game studio with these extra priviliges and that is why you're not getting nulls returned for these objects.

Related

How to get a list of active PSTN calls in Teams using the Microsoft Graph API

We're looking for a way to get a list of all currently active PSTN calls being made into MS Teams. We've tried this:
https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-beta
That's almost exactly what we need except records do not seem to appear here until the call has ended. What we need for the app we're trying to build is live call records.
We've also tried it by creating subscriptions and getting the ID of specific calls then looking up call records, but this data also appears to be delayed.
Is there a method we're missing here, or equally, is this something that may be added to the API some point soon?
Currently there is no graph API to get a list of active PSTN calls in Teams.
Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice here.
They clearly mentioned in the document, we can not fetch the details directly. But you can fetch the records from your application. Using app side bearer token.

Microsoft Graph Intune: How to get the "enrolled by" user data

In Azure portal on a managed device detail page it shows two types of users,
The "Primary" user and the "Enrolled by" user. I'm trying to figure out how I can retrieve the latter
using the Microsoft Graph API. What I've tried so far is pretty much every managed device related API.
The ones I mainly use are the https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0 and https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1
I've also looked at pretty much all the beta variants of the related API documentation if and when they are available. My problem is that it seems like there is no way to retrieve this information.
You have to query the related object of the managed device
https://graph.microsoft.com/beta/devicemanagement/manageddevices/b32d84d4-50da-469f-a65d-2f1c30f8da67/users
Also you will get object id of the primary owner.
https://www.youtube.com/watch?v=CTEs_lHtZJ4&list=PL8wOlV8Hv3o9TUJxUR9T78TevVjtsRAup&ab_channel=ConceptsWork
https://www.youtube.com/watch?v=yw5Cz5rO6_Y&list=PL8wOlV8Hv3o_KgAx8JmnqM4G97U0vPR9l&ab_channel=ConceptsWork

Programmatically access Tags in Teams

I am building an application that creates Teams for my training classes and I can Create a Group, make it a team, and then add the required folks to the Members list. I want to be able to differentiate between "students" and "facilitators" for reporting and management.
I have found /api/v1/teams/{0}/memberTags/ but I don't seem to be able to call it directly or find it in the SDK documentation.
Is this API available?
Teams Tags are currently in the Graph beta
https://learn.microsoft.com/en-us/graph/api/resources/teamworktag
Tags provide a flexible way for customers to classify users or groups based on a common attribute within a team. For example, a Nurse or Manager or Designer tag will enable users to reach groups of people in Teams without having to type every single name.
Tags are scoped at the Team level.
When a tag is added, users can #mention it (#tag) in a channel in that team . Everyone who has been assigned that tag will receive a notification just as they would if they were #mentioned individually. Users can also use a tag is to start a new chat with the members of that tag.
No, there’s no API for this now .
Check here to Manage tags in Microsoft Teams app. We will keep you posted once this feature is available through API.

Unable to Tell via Graph if Tenant has Teams Enabled

Currently, Microsoft Graph does not appear to provide a way of checking whether a tenant has Microsoft Teams enabled.
Is there way to do this?
According to your descriptions, you want to check whether a tenant has Microsoft Teams.
There is a document on how to list Joined Teams. Only the beta version has this interface.
Base on my test, we can use the API like this:
GET https://graph.microsoft.com/beta/me/joinedTeams
It will list the teams that we joined.

How to take users session screen shot using C#

I want to capture all users screens which are connected to my Machine. So how can I do that?
I want to create a windows service which capture users screen.
Thanks
Laxmilal
You can do that using Windows Terminal Service (WTS) API. This is what you need to do:
1. Use Local system as your system service account. Other accounts will not work.
2. Call WTSOpenServer, then using WTSEnumerateSessions retrieve list of sessions
3. You will get list of WTS_SESSION_INFO structures. Each item there represents sessions. You are only interested in sessions where State is WTSActive.
4. In a loop call CreateProcessAsUser for each session you identified in previous step. Specify sessionId from the WTS_SESSION_INFO structure you have for the session. The name of the process to run would be your favorite screen capture utility. I did not use any of those, but quick search on internet turns up few options.

Resources