The Collaboration Sample Application demonstrates how to utilize the Peer-to-Peer Collaboration API.
Platforms supported:
- Windows Vista (except Starter Edition)
- Windows 7
To Build:
- In a SDK command shell, navigate to the directory containing this sample and run "nmake"; or
- Launch the .sln file in Visual Studio .NET
To Run:
- From a non-elevated window, type collaboration.exe (located in the Vista_DEBUG or WIN7_[ARCH]_DEBUG folder in the directory containing the sample)
- Note that this sample must be executed in a non-elevated window because the Peer Collaboration Infrastructure can only be started as a non-elevated process.
- Follow the menu options. To get started, try executing the following scenarios:
1. Enumerate People Near Me
a) Launch the Collaboration application on several computers connected to same IPv6 subnet.
b) Select Option 1 on each computer to sign in to PNM.
c) If this is the first time signing in to People Near Me, a dialog will display. Enter a display name and select the default option to Allow invitations from Anyone (a user can later modify these settings from Control Panel\Network and Internet\People Near Me ).
d) From the Collaboration application select Option 7 to enumerate all the PNM contacts on your IPv6 subnet.
2. Send an Invitation to a PNM endpoint
a) Launch the Collaboration application on two computers connected to the same IPv6 subnet.
b) Select Option 1 on each computer to sign in to PNM.
c) On the first Computer, select Option 22 to register the sample application.
d) On the second computer, select Option 25 to send an invitation to the PNM endpoint on the first computer.
e) On the first computer, view the invitation and accept or decline it.
f) If the invitation is accepted the Collaboration sample will be launched with a command line option of “/invite” (as specified when this application registered itself with Option 22). The sample will print supplemental data that was sent with the invitation before displaying the Collaboration sample menu. The data sent with an invitation can be used to convey information that your application requires to connect and participate in the collaboration session that the user was invited to join.
3. Adding contacts, sharing presence, and sending Invitations with Internet scope
a) Launch the Collaboration application on two computers connected to the same IPv6 subnet.
b) Select Option 1 on each computer to sign in to PNM.
c) Select Option 8 on each computer to add the other party as a contact.
d) Open your Contacts folder (e.g. C:\Users\<username>\Contacts ) and observe the new contact.
e) Optionally, move one computer to another location (discovery will operate provided both computers have global IPv6 connectivity).
f) Select Options 14 and 15 on each computer to both watch the other party and to grant watch permissions.
g) Select option 1 on each computer to sign in with Internet scope.
h) Once the second contact signs in, notice in the events window that both contacts receive events indicating the others' presence.
i) Update a contact's presence using Option 17 and view the event window on each computer.
j) Send an invitation to the contact, as instructed in the PNM scenario.