4.3 Accepting a Sharing Request
Ryan wants to send a sharing response accepting the sharing request that is described in section 4.1. The client creates a new Message object by using the RopCreateMessage ROP ([MS-OXCROPS] section 2.2.6.2). The server returns a success code and a handle to a Message object.
The client sets the properties on a sharing response by using the RopSetProperties ROP ([MS-OXCROPS] section 2.2.8.6), as shown in the following table.
Property |
Property ID |
Property type |
Value |
---|---|---|---|
PidTagMessageClass ([MS-OXCMSG] section 2.2.1.3) |
0x001A |
PtypString ([MS-OXCDATA] section 2.11.1) |
"IPM.Sharing" |
PidNameContentClass (section 2.2.5.1) |
0x806d |
PtypString |
"Sharing" |
PidTagNormalizedSubject ([MS-OXCMSG] section 2.2.1.10) |
0x0E1D |
PtypString |
"Allowed: sharing request: calendar" |
PidTagSubjectPrefix ([MS-OXCMSG] section 2.2.1.9) |
0x003D |
PtypString |
"" (a zero-length string) |
PidLidSharingProviderGuid (section 2.2.2.12) |
0x8243 |
PtypBinary |
* |
PidNameXSharingProviderGuid (section 2.2.2.13) |
0x836F |
PtypString |
"AEF0060000000000C000000000000046" |
PidLidSharingProviderName (section 2.2.2.14) |
0x8244 |
PtypString |
"Microsoft Exchange" |
PidNameXSharingProviderName (section 2.2.2.15) |
0x8370 |
PtypString |
"Microsoft Exchange" |
PidLidSharingProviderUrl (section 2.2.2.16) |
0x8245 |
PtypString |
"HTTP://www.microsoft.com/exchange" |
PidNameXSharingProviderUrl (section 2.2.2.17) |
0x8371 |
PtypString |
"HTTP://www.microsoft.com/exchange" |
PidLidSharingConfigurationUrl (section 2.2.2.3) |
0x83D0 |
PtypString |
"" (a zero-length string) |
PidNameXSharingConfigUrl (section 2.2.2.4) |
0x8377 |
PtypString |
"" (a zero-length string) |
PidLidSharingFlavor (section 2.2.2.5) |
0x823D |
PtypInteger32 ([MS-OXCDATA] section 2.11.1) |
0x00023310 |
PidNameXSharingFlavor (section 2.2.2.6) |
0x836D |
PtypString |
"23310" |
PidLidSharingCapabilities (section 2.2.2.1) |
0x823C |
PtypInteger32 |
0x00040290 |
PidNameXSharingCapabilities (section 2.2.2.2) |
0x836C |
PtypString |
"40290" |
PidLidSharingLocalType (section 2.2.2.10) |
0x824F |
PtypString |
"IPF.Appointment" |
PidNameXSharingLocalType (section 2.2.2.11) |
0x8379 |
PtypString |
"IPF.Appointment" |
PidLidSharingInitiatorEntryId (section 2.2.2.7) |
0x8249 |
PtypBinary ([MS-OXCDATA] section 2.11.1) |
** |
PidLidSharingInitiatorName (section 2.2.2.8) |
0x8029 |
PtypString |
"user10" |
PidLidSharingInitiatorSmtp (section 2.2.2.9) |
0x8248 |
PtypString |
"user10@fabrikam.com" |
PidLidSharingRemoteName (section 2.2.3.1) |
0x8026 |
PtypString |
"Calendar" |
PidNameXSharingRemoteName (section 2.2.3.2) |
0x8373 |
PtypString |
"Calendar" |
PidLidSharingRemoteType (section 2.2.3.5) |
0x8247 |
PtypString |
"IPF.Appointment" |
PidNameXSharingRemoteType (section 2.2.3.6) |
0x8376 |
PtypString |
"IPF.Appointment" |
PidLidSharingRemoteUid (section 2.2.3.7) |
0x8246 |
PtypString |
"00000000B0FCA4F63C21A642BD4B8F1BDBA04BC60100612A7BAB49F64E4B9C52DBFB5A53AA1C000000F04EEF0000" |
PidNameXSharingRemoteUid (section 2.2.3.8) |
0x8374 |
PtypString |
"00000000B0FCA4F63C21A642BD4B8F1BDBA04BC60100612A7BAB49F64E4B9C52DBFB5A53AA1C000000F04EEF0000" |
PidLidSharingRemoteStoreUid (section 2.2.3.3) |
0x83E1 |
PtypString |
"0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C0000003336353952392D413131002F6F3D4669727374204F7267616E697A6174696F6E2F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D75736572313000" |
PidNameXSharingRemoteStoreUid (section 2.2.3.4) |
0x8375 |
PtypString |
"0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C0000003336353952392D413131002F6F3D4669727374204F7267616E697A6174696F6E2F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D75736572313000" |
* The following data shows the value of the PidLidSharingProviderGuid property. The size of the value is 16 bytes.
-
0000: AE F0 06 00 00 00 00 00 C0 00 00 00 00 00 00 46 ...............F
** The following data shows the value of the PidLidSharingInitiatorEntryId property. The size of the value is 125 bytes.
-
0000: 00 00 00 00 DC A7 40 C8 C0 42 10 1A B4 B9 08 00 ......@..B...... 0010: 2B 2F E1 82 01 00 00 00 00 00 00 00 2F 6F 3D 46 +/........../o=F 0020: 69 72 73 74 20 4F 72 67 61 6E 69 7A 61 74 69 6F irst Organizatio 0030: 6E 2F 6F 75 3D 45 78 63 68 61 6E 67 65 20 41 64 n/ou=Exchange Ad 0040: 6D 69 6E 69 73 74 72 61 74 69 76 65 20 47 72 6F ministrative Gro 0050: 75 70 20 28 46 59 44 49 42 4F 48 46 32 33 53 50 up (FYDIBOHF23SP 0060: 44 4C 54 29 2F 63 6E 3D 52 65 63 69 70 69 65 6E DLT)/cn=Recipien 0070: 74 73 2F 63 6E 3D 75 73 65 72 31 30 00 ts/cn=user10.
After properly addressing the message as described in [MS-OXOMSG], the client sends the message to Kendall by using the RopSubmitMessage ROP ([MS-OXCROPS] section 2.2.7.1) and then releases the Message object by using the RopRelease ROP ([MS-OXCROPS] section 2.2.15.3).
The client then grants Kendall permission to the folder as described in [MS-OXODLGT].
Then the client opens the sharing request by using the RopOpenMessage ROP ([MS-OXCROPS] section 2.2.6.1). The server returns a success code and a handle to the Message object.
The client sets the properties on the sharing request to indicate that the client has sent a sharing response accepting the request and to specify the time at which the response was sent, as shown in the following table. The client sets these properties by using the RopSetProperties ROP ([MS-OXCROPS] section 2.2.8.6).
Property |
Property ID |
Property type |
Data |
Value |
---|---|---|---|---|
PidLidSharingResponseType (section 2.2.4.2) |
0x83E4 |
PtypInteger32 ([MS-OXCDATA] section 2.11.1) |
01 00 00 00 |
0x00000001 |
PidLidSharingResponseTime (section 2.2.4.1) |
0x83E3 |
PtypTime ([MS-OXCDATA] section 2.11.1) |
00 9A C2 CF E3 7F C8 01 |
2008/03/06 23:43:00.000 |
The client saves the changes by using the RopSaveChangesMessage ROP ([MS-OXCROPS] section 2.2.6.3) and releases the Message object by using the RopRelease ROP.