rtccore.idl 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957
  1. //
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //
  4. cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.")
  5. //
  6. // RTCCore.idl : IDL source for RTCCore.dll
  7. //
  8. // This file will be processed by the MIDL tool to
  9. // produce the type library (RTCCore.tlb) and marshalling code.
  10. import "oaidl.idl";
  11. import "ocidl.idl";
  12. import "control.odl";
  13. // Types
  14. typedef enum RTC_AUDIO_DEVICE
  15. {
  16. RTCAD_SPEAKER,
  17. RTCAD_MICROPHONE
  18. } RTC_AUDIO_DEVICE;
  19. typedef enum RTC_VIDEO_DEVICE
  20. {
  21. RTCVD_RECEIVE,
  22. RTCVD_PREVIEW
  23. } RTC_VIDEO_DEVICE;
  24. typedef enum RTC_EVENT
  25. {
  26. RTCE_CLIENT,
  27. RTCE_REGISTRATION_STATE_CHANGE,
  28. RTCE_SESSION_STATE_CHANGE,
  29. RTCE_SESSION_OPERATION_COMPLETE,
  30. RTCE_PARTICIPANT_STATE_CHANGE,
  31. RTCE_MEDIA,
  32. RTCE_INTENSITY,
  33. RTCE_MESSAGING,
  34. RTCE_BUDDY,
  35. RTCE_WATCHER,
  36. RTCE_PROFILE,
  37. RTCE_USERSEARCH,
  38. RTCE_INFO,
  39. RTCE_GROUP,
  40. RTCE_MEDIA_REQUEST,
  41. RTCE_ROAMING,
  42. RTCE_PRESENCE_PROPERTY,
  43. RTCE_PRESENCE_DATA,
  44. RTCE_PRESENCE_STATUS,
  45. RTCE_SESSION_REFER_STATUS,
  46. RTCE_SESSION_REFERRED,
  47. RTCE_REINVITE
  48. } RTC_EVENT;
  49. typedef enum RTC_LISTEN_MODE
  50. {
  51. RTCLM_NONE,
  52. RTCLM_DYNAMIC,
  53. RTCLM_BOTH
  54. } RTC_LISTEN_MODE;
  55. typedef enum RTC_CLIENT_EVENT_TYPE
  56. {
  57. RTCCET_VOLUME_CHANGE,
  58. RTCCET_DEVICE_CHANGE,
  59. RTCCET_NETWORK_QUALITY_CHANGE,
  60. RTCCET_ASYNC_CLEANUP_DONE
  61. } RTC_CLIENT_EVENT_TYPE;
  62. typedef enum RTC_BUDDY_EVENT_TYPE
  63. {
  64. RTCBET_BUDDY_ADD,
  65. RTCBET_BUDDY_REMOVE,
  66. RTCBET_BUDDY_UPDATE,
  67. RTCBET_BUDDY_STATE_CHANGE,
  68. RTCBET_BUDDY_ROAMED,
  69. RTCBET_BUDDY_SUBSCRIBED
  70. } RTC_BUDDY_EVENT_TYPE;
  71. typedef enum RTC_WATCHER_EVENT_TYPE
  72. {
  73. RTCWET_WATCHER_ADD,
  74. RTCWET_WATCHER_REMOVE,
  75. RTCWET_WATCHER_UPDATE,
  76. RTCWET_WATCHER_OFFERING,
  77. RTCWET_WATCHER_ROAMED
  78. } RTC_WATCHER_EVENT_TYPE;
  79. typedef enum RTC_GROUP_EVENT_TYPE
  80. {
  81. RTCGET_GROUP_ADD,
  82. RTCGET_GROUP_REMOVE,
  83. RTCGET_GROUP_UPDATE,
  84. RTCGET_GROUP_BUDDY_ADD,
  85. RTCGET_GROUP_BUDDY_REMOVE,
  86. RTCGET_GROUP_ROAMED
  87. } RTC_GROUP_EVENT_TYPE;
  88. typedef enum RTC_TERMINATE_REASON
  89. {
  90. RTCTR_NORMAL,
  91. RTCTR_DND,
  92. RTCTR_BUSY,
  93. RTCTR_REJECT,
  94. RTCTR_TIMEOUT,
  95. RTCTR_SHUTDOWN,
  96. RTCTR_INSUFFICIENT_SECURITY_LEVEL,
  97. RTCTR_NOT_SUPPORTED
  98. } RTC_TERMINATE_REASON;
  99. typedef enum RTC_REGISTRATION_STATE
  100. {
  101. RTCRS_NOT_REGISTERED,
  102. RTCRS_REGISTERING,
  103. RTCRS_REGISTERED,
  104. RTCRS_REJECTED,
  105. RTCRS_UNREGISTERING,
  106. RTCRS_ERROR,
  107. RTCRS_LOGGED_OFF,
  108. RTCRS_LOCAL_PA_LOGGED_OFF,
  109. RTCRS_REMOTE_PA_LOGGED_OFF
  110. } RTC_REGISTRATION_STATE;
  111. typedef enum RTC_SESSION_STATE
  112. {
  113. RTCSS_IDLE,
  114. RTCSS_INCOMING,
  115. RTCSS_ANSWERING,
  116. RTCSS_INPROGRESS,
  117. RTCSS_CONNECTED,
  118. RTCSS_DISCONNECTED,
  119. RTCSS_HOLD,
  120. RTCSS_REFER
  121. } RTC_SESSION_STATE;
  122. typedef enum RTC_PARTICIPANT_STATE
  123. {
  124. RTCPS_IDLE,
  125. RTCPS_PENDING,
  126. RTCPS_INCOMING,
  127. RTCPS_ANSWERING,
  128. RTCPS_INPROGRESS,
  129. RTCPS_ALERTING,
  130. RTCPS_CONNECTED,
  131. RTCPS_DISCONNECTING,
  132. RTCPS_DISCONNECTED
  133. } RTC_PARTICIPANT_STATE;
  134. typedef enum RTC_WATCHER_STATE
  135. {
  136. RTCWS_UNKNOWN,
  137. RTCWS_OFFERING,
  138. RTCWS_ALLOWED,
  139. RTCWS_BLOCKED,
  140. RTCWS_DENIED,
  141. RTCWS_PROMPT
  142. } RTC_WATCHER_STATE;
  143. typedef enum RTC_ACE_SCOPE
  144. {
  145. RTCAS_SCOPE_USER,
  146. RTCAS_SCOPE_DOMAIN,
  147. RTCAS_SCOPE_ALL
  148. } RTC_ACE_SCOPE;
  149. typedef enum RTC_OFFER_WATCHER_MODE
  150. {
  151. RTCOWM_OFFER_WATCHER_EVENT,
  152. RTCOWM_AUTOMATICALLY_ADD_WATCHER
  153. } RTC_OFFER_WATCHER_MODE;
  154. typedef enum RTC_WATCHER_MATCH_MODE
  155. {
  156. RTCWMM_EXACT_MATCH,
  157. RTCWMM_BEST_ACE_MATCH
  158. } RTC_WATCHER_MATCH_MODE;
  159. typedef enum RTC_PRIVACY_MODE
  160. {
  161. RTCPM_BLOCK_LIST_EXCLUDED,
  162. RTCPM_ALLOW_LIST_ONLY
  163. } RTC_PRIVACY_MODE;
  164. typedef enum RTC_SESSION_TYPE
  165. {
  166. RTCST_PC_TO_PC,
  167. RTCST_PC_TO_PHONE,
  168. RTCST_PHONE_TO_PHONE,
  169. RTCST_IM,
  170. RTCST_MULTIPARTY_IM,
  171. RTCST_APPLICATION
  172. } RTC_SESSION_TYPE;
  173. typedef enum RTC_PRESENCE_STATUS
  174. {
  175. RTCXS_PRESENCE_OFFLINE,
  176. RTCXS_PRESENCE_ONLINE,
  177. RTCXS_PRESENCE_AWAY,
  178. RTCXS_PRESENCE_IDLE,
  179. RTCXS_PRESENCE_BUSY,
  180. RTCXS_PRESENCE_BE_RIGHT_BACK,
  181. RTCXS_PRESENCE_ON_THE_PHONE,
  182. RTCXS_PRESENCE_OUT_TO_LUNCH
  183. } RTC_PRESENCE_STATUS;
  184. typedef enum RTC_BUDDY_SUBSCRIPTION_TYPE
  185. {
  186. RTCBT_SUBSCRIBED,
  187. RTCBT_ALWAYS_OFFLINE,
  188. RTCBT_ALWAYS_ONLINE,
  189. RTCBT_POLL
  190. } RTC_BUDDY_SUBSCRIPTION_TYPE;
  191. typedef enum RTC_MEDIA_EVENT_TYPE
  192. {
  193. RTCMET_STOPPED,
  194. RTCMET_STARTED,
  195. RTCMET_FAILED
  196. } RTC_MEDIA_EVENT_TYPE;
  197. typedef enum RTC_MEDIA_EVENT_REASON
  198. {
  199. RTCMER_NORMAL,
  200. RTCMER_HOLD,
  201. RTCMER_TIMEOUT,
  202. RTCMER_BAD_DEVICE,
  203. RTCMER_NO_PORT,
  204. RTCMER_PORT_MAPPING_FAILED,
  205. RTCMER_REMOTE_REQUEST
  206. } RTC_MEDIA_EVENT_REASON;
  207. typedef enum RTC_MESSAGING_EVENT_TYPE
  208. {
  209. RTCMSET_MESSAGE,
  210. RTCMSET_STATUS,
  211. } RTC_MESSAGING_EVENT_TYPE;
  212. typedef enum RTC_MESSAGING_USER_STATUS
  213. {
  214. RTCMUS_IDLE,
  215. RTCMUS_TYPING
  216. } RTC_MESSAGING_USER_STATUS;
  217. typedef enum RTC_DTMF
  218. {
  219. RTC_DTMF_0,
  220. RTC_DTMF_1,
  221. RTC_DTMF_2,
  222. RTC_DTMF_3,
  223. RTC_DTMF_4,
  224. RTC_DTMF_5,
  225. RTC_DTMF_6,
  226. RTC_DTMF_7,
  227. RTC_DTMF_8,
  228. RTC_DTMF_9,
  229. RTC_DTMF_STAR,
  230. RTC_DTMF_POUND,
  231. RTC_DTMF_A,
  232. RTC_DTMF_B,
  233. RTC_DTMF_C,
  234. RTC_DTMF_D,
  235. RTC_DTMF_FLASH
  236. } RTC_DTMF;
  237. typedef enum RTC_PROVIDER_URI
  238. {
  239. RTCPU_URIHOMEPAGE,
  240. RTCPU_URIHELPDESK,
  241. RTCPU_URIPERSONALACCOUNT,
  242. RTCPU_URIDISPLAYDURINGCALL,
  243. RTCPU_URIDISPLAYDURINGIDLE
  244. } RTC_PROVIDER_URI;
  245. typedef enum RTC_RING_TYPE
  246. {
  247. RTCRT_PHONE,
  248. RTCRT_MESSAGE,
  249. RTCRT_RINGBACK
  250. } RTC_RING_TYPE;
  251. typedef enum RTC_T120_APPLET
  252. {
  253. RTCTA_WHITEBOARD,
  254. RTCTA_APPSHARING
  255. } RTC_T120_APPLET;
  256. typedef enum RTC_PORT_TYPE
  257. {
  258. RTCPT_AUDIO_RTP,
  259. RTCPT_AUDIO_RTCP,
  260. RTCPT_VIDEO_RTP,
  261. RTCPT_VIDEO_RTCP,
  262. RTCPT_SIP
  263. } RTC_PORT_TYPE;
  264. typedef enum RTC_USER_SEARCH_COLUMN
  265. {
  266. RTCUSC_URI,
  267. RTCUSC_DISPLAYNAME,
  268. RTCUSC_TITLE,
  269. RTCUSC_OFFICE,
  270. RTCUSC_PHONE,
  271. RTCUSC_COMPANY,
  272. RTCUSC_CITY,
  273. RTCUSC_STATE,
  274. RTCUSC_COUNTRY,
  275. RTCUSC_EMAIL
  276. }RTC_USER_SEARCH_COLUMN;
  277. typedef enum RTC_USER_SEARCH_PREFERENCE
  278. {
  279. RTCUSP_MAX_MATCHES,
  280. RTCUSP_TIME_LIMIT
  281. } RTC_USER_SEARCH_PREFERENCE;
  282. typedef enum RTC_ROAMING_EVENT_TYPE
  283. {
  284. RTCRET_BUDDY_ROAMING,
  285. RTCRET_WATCHER_ROAMING,
  286. RTCRET_PRESENCE_ROAMING,
  287. RTCRET_PROFILE_ROAMING,
  288. RTCRET_WPENDING_ROAMING
  289. } RTC_ROAMING_EVENT_TYPE;
  290. typedef enum RTC_PROFILE_EVENT_TYPE
  291. {
  292. RTCPFET_PROFILE_GET,
  293. RTCPFET_PROFILE_UPDATE
  294. } RTC_PROFILE_EVENT_TYPE;
  295. typedef enum RTC_ANSWER_MODE
  296. {
  297. RTCAM_OFFER_SESSION_EVENT,
  298. RTCAM_AUTOMATICALLY_ACCEPT,
  299. RTCAM_AUTOMATICALLY_REJECT,
  300. RTCAM_NOT_SUPPORTED
  301. } RTC_ANSWER_MODE;
  302. typedef enum RTC_SESSION_REFER_STATUS
  303. {
  304. RTCSRS_REFERRING,
  305. RTCSRS_ACCEPTED,
  306. RTCSRS_ERROR,
  307. RTCSRS_REJECTED,
  308. RTCSRS_DROPPED,
  309. RTCSRS_DONE
  310. } RTC_SESSION_REFER_STATUS;
  311. typedef enum RTC_PRESENCE_PROPERTY
  312. {
  313. RTCPP_PHONENUMBER,
  314. RTCPP_DISPLAYNAME,
  315. RTCPP_EMAIL,
  316. RTCPP_DEVICE_NAME,
  317. RTCPP_MULTIPLE
  318. } RTC_PRESENCE_PROPERTY;
  319. typedef enum RTC_SECURITY_TYPE
  320. {
  321. RTCSECT_AUDIO_VIDEO_MEDIA_ENCRYPTION,
  322. RTCSECT_T120_MEDIA_ENCRYPTION,
  323. } RTC_SECURITY_TYPE;
  324. typedef enum RTC_SECURITY_LEVEL
  325. {
  326. RTCSECL_UNSUPPORTED = 1,
  327. RTCSECL_SUPPORTED,
  328. RTCSECL_REQUIRED
  329. } RTC_SECURITY_LEVEL;
  330. typedef enum RTC_REINVITE_STATE
  331. {
  332. RTCRIN_INCOMING,
  333. RTCRIN_SUCCEEDED,
  334. RTCRIN_FAIL
  335. } RTC_REINVITE_STATE;
  336. // CreateSession flags
  337. cpp_quote("#define RTCCS_FORCE_PROFILE 0x00000001")
  338. cpp_quote("#define RTCCS_FAIL_ON_REDIRECT 0x00000002")
  339. // Media Types
  340. cpp_quote("#define RTCMT_AUDIO_SEND 0x00000001")
  341. cpp_quote("#define RTCMT_AUDIO_RECEIVE 0x00000002")
  342. cpp_quote("#define RTCMT_VIDEO_SEND 0x00000004")
  343. cpp_quote("#define RTCMT_VIDEO_RECEIVE 0x00000008")
  344. cpp_quote("#define RTCMT_T120_SENDRECV 0x00000010")
  345. cpp_quote("#define RTCMT_ALL_RTP ( \\")
  346. cpp_quote(" RTCMT_AUDIO_SEND | \\")
  347. cpp_quote(" RTCMT_AUDIO_RECEIVE | \\")
  348. cpp_quote(" RTCMT_VIDEO_SEND | \\")
  349. cpp_quote(" RTCMT_VIDEO_RECEIVE ) ")
  350. cpp_quote("#define RTCMT_ALL ( \\")
  351. cpp_quote(" RTCMT_ALL_RTP | \\")
  352. cpp_quote(" RTCMT_T120_SENDRECV ) ")
  353. // Session Info
  354. cpp_quote("#define RTCSI_PC_TO_PC 0x00000001")
  355. cpp_quote("#define RTCSI_PC_TO_PHONE 0x00000002")
  356. cpp_quote("#define RTCSI_PHONE_TO_PHONE 0x00000004")
  357. cpp_quote("#define RTCSI_IM 0x00000008")
  358. cpp_quote("#define RTCSI_MULTIPARTY_IM 0x00000010")
  359. cpp_quote("#define RTCSI_APPLICATION 0x00000020")
  360. // Transports
  361. cpp_quote("#define RTCTR_UDP 0x00000001")
  362. cpp_quote("#define RTCTR_TCP 0x00000002")
  363. cpp_quote("#define RTCTR_TLS 0x00000004")
  364. // Authentication
  365. cpp_quote("#define RTCAU_BASIC 0x00000001")
  366. cpp_quote("#define RTCAU_DIGEST 0x00000002")
  367. cpp_quote("#define RTCAU_NTLM 0x00000004")
  368. cpp_quote("#define RTCAU_KERBEROS 0x00000008")
  369. cpp_quote("#define RTCAU_USE_LOGON_CRED 0x00010000")
  370. // Registration Flags
  371. cpp_quote("#define RTCRF_REGISTER_INVITE_SESSIONS 0x00000001")
  372. cpp_quote("#define RTCRF_REGISTER_MESSAGE_SESSIONS 0x00000002")
  373. cpp_quote("#define RTCRF_REGISTER_PRESENCE 0x00000004")
  374. cpp_quote("#define RTCRF_REGISTER_NOTIFY 0x00000008")
  375. cpp_quote("#define RTCRF_REGISTER_ALL 0x0000000F")
  376. // Roaming Flags
  377. cpp_quote("#define RTCRMF_BUDDY_ROAMING 0x00000001")
  378. cpp_quote("#define RTCRMF_WATCHER_ROAMING 0x00000002")
  379. cpp_quote("#define RTCRMF_PRESENCE_ROAMING 0x00000004")
  380. cpp_quote("#define RTCRMF_PROFILE_ROAMING 0x00000008")
  381. cpp_quote("#define RTCRMF_ALL_ROAMING 0x0000000F")
  382. // Event Filters
  383. cpp_quote("#define RTCEF_CLIENT 0x00000001")
  384. cpp_quote("#define RTCEF_REGISTRATION_STATE_CHANGE 0x00000002")
  385. cpp_quote("#define RTCEF_SESSION_STATE_CHANGE 0x00000004")
  386. cpp_quote("#define RTCEF_SESSION_OPERATION_COMPLETE 0x00000008")
  387. cpp_quote("#define RTCEF_PARTICIPANT_STATE_CHANGE 0x00000010")
  388. cpp_quote("#define RTCEF_MEDIA 0x00000020")
  389. cpp_quote("#define RTCEF_INTENSITY 0x00000040")
  390. cpp_quote("#define RTCEF_MESSAGING 0x00000080")
  391. cpp_quote("#define RTCEF_BUDDY 0x00000100")
  392. cpp_quote("#define RTCEF_WATCHER 0x00000200")
  393. cpp_quote("#define RTCEF_PROFILE 0x00000400")
  394. cpp_quote("#define RTCEF_USERSEARCH 0x00000800")
  395. cpp_quote("#define RTCEF_INFO 0x00001000")
  396. cpp_quote("#define RTCEF_GROUP 0x00002000")
  397. cpp_quote("#define RTCEF_MEDIA_REQUEST 0x00004000")
  398. //skipping 0x00008000 because VB automatically equates &H8000 to -32768 instead of +32768
  399. cpp_quote("#define RTCEF_ROAMING 0x00010000")
  400. cpp_quote("#define RTCEF_PRESENCE_PROPERTY 0x00020000")
  401. cpp_quote("#define RTCEF_BUDDY2 0x00040000")
  402. cpp_quote("#define RTCEF_WATCHER2 0x00080000")
  403. cpp_quote("#define RTCEF_SESSION_REFER_STATUS 0x00100000")
  404. cpp_quote("#define RTCEF_SESSION_REFERRED 0x00200000")
  405. cpp_quote("#define RTCEF_REINVITE 0x00400000")
  406. cpp_quote("#define RTCEF_PRESENCE_DATA 0x00800000")
  407. cpp_quote("#define RTCEF_PRESENCE_STATUS 0x01000000")
  408. cpp_quote("#define RTCEF_ALL 0x01FFFFFF")
  409. // Initialize Flags
  410. cpp_quote("#define RTCIF_DISABLE_MEDIA 0x00000001")
  411. cpp_quote("#define RTCIF_DISABLE_UPNP 0x00000002")
  412. cpp_quote("#define RTCIF_ENABLE_SERVER_CLASS 0x00000004")
  413. cpp_quote("#define RTCIF_DISABLE_STRICT_DNS 0x00000008")
  414. // Forward Definitions
  415. interface IRTCClient;
  416. interface IRTCClientPresence;
  417. interface IRTCClientPresence2;
  418. interface IRTCClientProvisioning;
  419. interface IRTCClientProvisioning2;
  420. interface IRTCEnumProfiles;
  421. interface IRTCProfile;
  422. interface IRTCProfile2;
  423. interface IRTCSession;
  424. interface IRTCSession2;
  425. interface IRTCSessionCallControl;
  426. interface IRTCParticipant;
  427. interface IRTCEventNotification;
  428. interface IRTCEnumParticipants;
  429. interface IRTCCollection;
  430. interface IRTCEnumBuddies;
  431. interface IRTCBuddy;
  432. interface IRTCBuddy2;
  433. interface IRTCEnumWatchers;
  434. interface IRTCWatcher;
  435. interface IRTCWatcher2;
  436. interface IRTCEnumGroups;
  437. interface IRTCBuddyGroup;
  438. interface IRTCUserSearch;
  439. interface IRTCUserSearchResultsEvent;
  440. interface IRTCEnumUserSearchResults;
  441. interface IRTCUserSearchQuery;
  442. interface IRTCUserSearchResult;
  443. interface IRTCPresenceStatusEvent;
  444. interface IRTCPresencePropertyEvent;
  445. interface IRTCPresenceDataEvent;
  446. interface IRTCSessionDescriptionManager;
  447. interface IRTCEnumPresenceDevices;
  448. interface IRTCPresenceDevice;
  449. [
  450. object,
  451. uuid(07829e45-9a34-408e-a011-bddf13487cd1),
  452. helpstring("IRTCClient Interface"),
  453. pointer_default(unique)
  454. ]
  455. interface IRTCClient : IUnknown
  456. {
  457. // initialize, shutdown
  458. [helpstring("method Initialize")]
  459. HRESULT Initialize();
  460. [helpstring("method Shutdown")]
  461. HRESULT Shutdown();
  462. [helpstring("method PrepareForShutdown")]
  463. HRESULT PrepareForShutdown();
  464. // events
  465. [propput, helpstring("property EventFilter")]
  466. HRESULT EventFilter(
  467. [in] long lFilter
  468. );
  469. [propget, helpstring("property EventFilter")]
  470. HRESULT EventFilter(
  471. [out, retval] long * plFilter
  472. );
  473. // media preferences/capabilities
  474. [helpstring("method SetPreferredMediaTypes")]
  475. HRESULT SetPreferredMediaTypes(
  476. [in] long lMediaTypes,
  477. [in] VARIANT_BOOL fPersistent
  478. );
  479. [propget, helpstring("property PreferredMediaTypes")]
  480. HRESULT PreferredMediaTypes(
  481. [out, retval] long * plMediaTypes
  482. );
  483. [propget, helpstring("property MediaCapabilities")]
  484. HRESULT MediaCapabilities(
  485. [out, retval] long * plMediaTypes
  486. );
  487. // sessions
  488. [helpstring("method CreateSession")]
  489. HRESULT CreateSession(
  490. [in] RTC_SESSION_TYPE enType,
  491. [in] BSTR bstrLocalPhoneURI,
  492. [in] IRTCProfile * pProfile,
  493. [in] long lFlags,
  494. [out, retval] IRTCSession ** ppSession
  495. );
  496. // listen mode
  497. [propput, helpstring("property ListenForIncomingSessions")]
  498. HRESULT ListenForIncomingSessions(
  499. [in] RTC_LISTEN_MODE enListen
  500. );
  501. [propget, helpstring("property ListenForIncomingSessions")]
  502. HRESULT ListenForIncomingSessions(
  503. [out, retval] RTC_LISTEN_MODE * penListen
  504. );
  505. // addresses & ports
  506. [propget, helpstring("property NetworkAddresses")]
  507. HRESULT NetworkAddresses(
  508. [in] VARIANT_BOOL fTCP,
  509. [in] VARIANT_BOOL fExternal,
  510. [out, retval] VARIANT * pvAddresses
  511. );
  512. // audio control
  513. [propput, helpstring("property Volume")]
  514. HRESULT Volume(
  515. [in] RTC_AUDIO_DEVICE enDevice,
  516. [in] long lVolume
  517. );
  518. [propget, helpstring("property Volume")]
  519. HRESULT Volume(
  520. [in] RTC_AUDIO_DEVICE enDevice,
  521. [out, retval] long * plVolume
  522. );
  523. [propput, helpstring("property AudioMuted")]
  524. HRESULT AudioMuted(
  525. [in] RTC_AUDIO_DEVICE enDevice,
  526. [in] VARIANT_BOOL fMuted
  527. );
  528. [propget, helpstring("property AudioMuted")]
  529. HRESULT AudioMuted(
  530. [in] RTC_AUDIO_DEVICE enDevice,
  531. [out, retval] VARIANT_BOOL * pfMuted
  532. );
  533. // video window
  534. [propget, helpstring("property IVideoWindow")]
  535. HRESULT IVideoWindow(
  536. [in] RTC_VIDEO_DEVICE enDevice,
  537. [out, retval] IVideoWindow ** ppIVideoWindow
  538. );
  539. // audio/video settings
  540. [propput, helpstring("property PreferredAudioDevice")]
  541. HRESULT PreferredAudioDevice(
  542. [in] RTC_AUDIO_DEVICE enDevice,
  543. [in] BSTR bstrDeviceName
  544. );
  545. [propget, helpstring("property PreferredAudioDevice")]
  546. HRESULT PreferredAudioDevice(
  547. [in] RTC_AUDIO_DEVICE enDevice,
  548. [out, retval] BSTR * pbstrDeviceName
  549. );
  550. [propput, helpstring("property PreferredVolume")]
  551. HRESULT PreferredVolume(
  552. [in] RTC_AUDIO_DEVICE enDevice,
  553. [in] long lVolume
  554. );
  555. [propget, helpstring("property PreferredVolume")]
  556. HRESULT PreferredVolume(
  557. [in] RTC_AUDIO_DEVICE enDevice,
  558. [out, retval] long * plVolume
  559. );
  560. [propput, helpstring("property PreferredAEC")]
  561. HRESULT PreferredAEC(
  562. [in] VARIANT_BOOL bEnable
  563. );
  564. [propget, helpstring("property PreferredAEC")]
  565. HRESULT PreferredAEC(
  566. [out, retval] VARIANT_BOOL * pbEnabled
  567. );
  568. [propput, helpstring("property PreferredVideoDevice")]
  569. HRESULT PreferredVideoDevice(
  570. [in] BSTR bstrDeviceName
  571. );
  572. [propget, helpstring("property PreferredVideoDevice")]
  573. HRESULT PreferredVideoDevice(
  574. [out, retval] BSTR * pbstrDeviceName
  575. );
  576. // active media
  577. [propget, helpstring("property ActiveMedia")]
  578. HRESULT ActiveMedia(
  579. [out, retval] long * plMediaType
  580. );
  581. // Network quality
  582. [propput, helpstring("property MaxBitrate")]
  583. HRESULT MaxBitrate(
  584. [in] long lMaxBitrate
  585. );
  586. [propget, helpstring("property MaxBitrate")]
  587. HRESULT MaxBitrate(
  588. [out, retval] long * plMaxBitrate
  589. );
  590. [propput, helpstring("property TemporalSpatialTradeOff")]
  591. HRESULT TemporalSpatialTradeOff(
  592. [in] long lValue
  593. );
  594. [propget, helpstring("property TemporalSpatialTradeOff")]
  595. HRESULT TemporalSpatialTradeOff(
  596. [out, retval] long * plValue
  597. );
  598. [propget, helpstring("property NetworkQuality")]
  599. HRESULT NetworkQuality(
  600. [out, retval] long * plNetworkQuality
  601. );
  602. // T120 applet control
  603. [helpstring("method StartT120Applet")]
  604. HRESULT StartT120Applet(
  605. [in] RTC_T120_APPLET enApplet
  606. );
  607. [helpstring("method StopT120Applets")]
  608. HRESULT StopT120Applets();
  609. [propget, helpstring("property IsT120AppletRunning")]
  610. HRESULT IsT120AppletRunning(
  611. [in] RTC_T120_APPLET enApplet,
  612. [out, retval] VARIANT_BOOL * pfRunning
  613. );
  614. // local user info
  615. [propget, helpstring("property LocalUserURI")]
  616. HRESULT LocalUserURI(
  617. [out, retval] BSTR * pbstrUserURI
  618. );
  619. [propput, helpstring("property LocalUserURI")]
  620. HRESULT LocalUserURI(
  621. [in] BSTR bstrUserURI
  622. );
  623. [propget, helpstring("property LocalUserName")]
  624. HRESULT LocalUserName(
  625. [out, retval] BSTR * pbstrUserName
  626. );
  627. [propput, helpstring("property LocalUserName")]
  628. HRESULT LocalUserName(
  629. [in] BSTR bstrUserName
  630. );
  631. // other
  632. [helpstring("method PlayRing")]
  633. HRESULT PlayRing(
  634. [in] RTC_RING_TYPE enType,
  635. [in] VARIANT_BOOL bPlay
  636. );
  637. [helpstring("method SendDTMF")]
  638. HRESULT SendDTMF(
  639. [in] RTC_DTMF enDTMF
  640. );
  641. [helpstring("method InvokeTuningWizard")]
  642. HRESULT InvokeTuningWizard(
  643. [in] OAHWND hwndParent
  644. );
  645. [propget, helpstring("property IsTuned")]
  646. HRESULT IsTuned(
  647. [out, retval] VARIANT_BOOL * pfTuned
  648. );
  649. }
  650. [
  651. object,
  652. uuid(0C91D71D-1064-42da-BFA5-572BEB8EEA84),
  653. helpstring("IRTCClient2 Interface"),
  654. pointer_default(unique)
  655. ]
  656. interface IRTCClient2 : IRTCClient
  657. {
  658. [propput, helpstring("property AnswerMode")]
  659. HRESULT AnswerMode(
  660. [in] RTC_SESSION_TYPE enType,
  661. [in] RTC_ANSWER_MODE enMode
  662. );
  663. [propget, helpstring("property AnswerMode")]
  664. HRESULT AnswerMode(
  665. [in] RTC_SESSION_TYPE enType,
  666. [out, retval] RTC_ANSWER_MODE * penMode
  667. );
  668. [helpstring("method InvokeTuningWizardEx")]
  669. HRESULT InvokeTuningWizardEx(
  670. [in] OAHWND hwndParent,
  671. [in] VARIANT_BOOL fAllowAudio ,
  672. [in] VARIANT_BOOL fAllowVideo
  673. );
  674. [propget, helpstring("property Version")]
  675. HRESULT Version(
  676. [out, retval] long * plVersion
  677. );
  678. [propput, helpstring("property ClientName")]
  679. HRESULT ClientName(
  680. [in] BSTR bstrClientName
  681. );
  682. [propput, helpstring("property ClientCurVer")]
  683. HRESULT ClientCurVer(
  684. [in] BSTR bstrClientCurVer
  685. );
  686. [helpstring("method InitializeEx")]
  687. HRESULT InitializeEx(
  688. [in] long lFlags
  689. );
  690. [helpstring("method CreateSessionWithDescription")]
  691. HRESULT CreateSessionWithDescription(
  692. [in] BSTR bstrContentType,
  693. [in] BSTR bstrSessionDescription,
  694. [in] IRTCProfile * pProfile,
  695. [in] long lFlags,
  696. [out, retval] IRTCSession2 ** ppSession2
  697. );
  698. [helpstring("method SetSessionDescriptionManager")]
  699. HRESULT SetSessionDescriptionManager(
  700. [in] IRTCSessionDescriptionManager *pSessionDescriptionManager
  701. );
  702. [propput, helpstring("property PreferredSecurityLevel")]
  703. HRESULT PreferredSecurityLevel(
  704. [in] RTC_SECURITY_TYPE enSecurityType,
  705. [in] RTC_SECURITY_LEVEL enSecurityLevel
  706. );
  707. [propget, helpstring("property PreferredSecurityLevel")]
  708. HRESULT PreferredSecurityLevel(
  709. [in] RTC_SECURITY_TYPE enSecurityType,
  710. [out, retval] RTC_SECURITY_LEVEL * penSecurityLevel
  711. );
  712. [propput, helpstring("property AllowedPorts")]
  713. HRESULT AllowedPorts(
  714. [in] long lTransport,
  715. [in] RTC_LISTEN_MODE enListenMode
  716. );
  717. [propget, helpstring("property AllowedPorts")]
  718. HRESULT AllowedPorts(
  719. [in] long lTransport,
  720. [out, retval] RTC_LISTEN_MODE * penListenMode
  721. );
  722. }
  723. [
  724. object,
  725. uuid(11c3cbcc-0744-42d1-968a-51aa1bb274c6),
  726. helpstring("IRTCClientPresence Interface"),
  727. pointer_default(unique)
  728. ]
  729. interface IRTCClientPresence : IUnknown
  730. {
  731. // enable
  732. [helpstring("method EnablePresence")]
  733. HRESULT EnablePresence(
  734. [in] VARIANT_BOOL fUseStorage,
  735. [in] VARIANT varStorage
  736. );
  737. // snapshots & import/export
  738. [helpstring("method Export")]
  739. HRESULT Export(
  740. [in] VARIANT varStorage
  741. );
  742. [helpstring("method Import")]
  743. HRESULT Import(
  744. [in] VARIANT varStorage,
  745. [in] VARIANT_BOOL fReplaceAll
  746. );
  747. // buddies
  748. [hidden, helpstring("method EnumerateBuddies")]
  749. HRESULT EnumerateBuddies(
  750. [out, retval] IRTCEnumBuddies ** ppEnum
  751. );
  752. [propget, helpstring("property Buddies")]
  753. HRESULT Buddies(
  754. [out, retval] IRTCCollection ** ppCollection
  755. );
  756. [propget, helpstring("property Buddy")]
  757. HRESULT Buddy(
  758. [in] BSTR bstrPresentityURI,
  759. [out, retval] IRTCBuddy **ppBuddy
  760. );
  761. [helpstring("method AddBuddy")]
  762. HRESULT AddBuddy(
  763. [in] BSTR bstrPresentityURI,
  764. [in] BSTR bstrUserName,
  765. [in] BSTR bstrData,
  766. [in] VARIANT_BOOL fPersistent,
  767. [in] IRTCProfile * pProfile,
  768. [in] long lFlags,
  769. [out, retval] IRTCBuddy **ppBuddy
  770. );
  771. [helpstring("method RemoveBuddy")]
  772. HRESULT RemoveBuddy(
  773. [in] IRTCBuddy *pBuddy
  774. );
  775. // watchers
  776. [hidden, helpstring("method EnumerateWatchers")]
  777. HRESULT EnumerateWatchers(
  778. [out, retval] IRTCEnumWatchers ** ppEnum
  779. );
  780. [propget, helpstring("property Watchers")]
  781. HRESULT Watchers(
  782. [out, retval] IRTCCollection ** ppCollection
  783. );
  784. [propget, helpstring("property Watcher")]
  785. HRESULT Watcher(
  786. [in] BSTR bstrPresentityURI,
  787. [out, retval] IRTCWatcher **ppWatcher
  788. );
  789. [helpstring("method AddWatcher")]
  790. HRESULT AddWatcher(
  791. [in] BSTR bstrPresentityURI,
  792. [in] BSTR bstrUserName,
  793. [in] BSTR bstrData,
  794. [in] VARIANT_BOOL fBlocked,
  795. [in] VARIANT_BOOL fPersistent,
  796. [out, retval] IRTCWatcher **ppWatcher
  797. );
  798. [helpstring("method RemoveWatcher")]
  799. HRESULT RemoveWatcher(
  800. [in] IRTCWatcher *pWatcher
  801. );
  802. [helpstring("method SetLocalPresenceInfo")]
  803. HRESULT SetLocalPresenceInfo(
  804. [in] RTC_PRESENCE_STATUS enStatus,
  805. [in] BSTR bstrNotes
  806. );
  807. // policies
  808. [propget, helpstring("property OfferWatcherMode")]
  809. HRESULT OfferWatcherMode(
  810. [out, retval] RTC_OFFER_WATCHER_MODE * penMode
  811. );
  812. [propput, helpstring("property OfferWatcherMode")]
  813. HRESULT OfferWatcherMode(
  814. [in] RTC_OFFER_WATCHER_MODE enMode
  815. );
  816. [propget, helpstring("property PrivacyMode")]
  817. HRESULT PrivacyMode(
  818. [out, retval] RTC_PRIVACY_MODE * penMode
  819. );
  820. [propput, helpstring("property PrivacyMode")]
  821. HRESULT PrivacyMode(
  822. [in] RTC_PRIVACY_MODE enMode
  823. );
  824. }
  825. [
  826. object,
  827. uuid(AD1809E8-62F7-4783-909A-29C9D2CB1D34),
  828. helpstring("IRTCClientPresence2 Interface"),
  829. pointer_default(unique)
  830. ]
  831. interface IRTCClientPresence2 : IRTCClientPresence
  832. {
  833. [helpstring("method EnablePresenceEx")]
  834. HRESULT EnablePresenceEx(
  835. [in] IRTCProfile * pProfile,
  836. [in] VARIANT varStorage,
  837. [in] long lFlags
  838. );
  839. [helpstring("method DisablePresence")]
  840. HRESULT DisablePresence();
  841. [helpstring("method AddGroup")]
  842. HRESULT AddGroup(
  843. [in] BSTR bstrGroupName,
  844. [in] BSTR bstrData,
  845. [in] IRTCProfile * pProfile,
  846. [in] long lFlags,
  847. [out, retval] IRTCBuddyGroup ** ppGroup
  848. );
  849. [helpstring("method RemoveGroup")]
  850. HRESULT RemoveGroup(
  851. [in] IRTCBuddyGroup * pGroup
  852. );
  853. [hidden, helpstring("method EnumerateGroups")]
  854. HRESULT EnumerateGroups(
  855. [out, retval] IRTCEnumGroups ** ppEnum
  856. );
  857. [propget, helpstring("property Groups")]
  858. HRESULT Groups(
  859. [out, retval] IRTCCollection ** ppCollection
  860. );
  861. [propget, helpstring("property Group")]
  862. HRESULT Group(
  863. [in] BSTR bstrGroupName,
  864. [out, retval] IRTCBuddyGroup ** ppGroup
  865. );
  866. [helpstring("method AddWatcherEx")]
  867. HRESULT AddWatcherEx(
  868. [in] BSTR bstrPresentityURI,
  869. [in] BSTR bstrUserName,
  870. [in] BSTR bstrData,
  871. [in] RTC_WATCHER_STATE enState,
  872. [in] VARIANT_BOOL fPersistent,
  873. [in] RTC_ACE_SCOPE enScope,
  874. [in] IRTCProfile * pProfile,
  875. [in] long lFlags,
  876. [out, retval] IRTCWatcher2 **ppWatcher
  877. );
  878. [propget, helpstring("property WatcherEx")]
  879. HRESULT WatcherEx(
  880. [in] RTC_WATCHER_MATCH_MODE enMode,
  881. [in] BSTR bstrPresentityURI,
  882. [out, retval] IRTCWatcher2 **ppWatcher
  883. );
  884. [propput, helpstring("property PresenceProperty")]
  885. HRESULT PresenceProperty([in] RTC_PRESENCE_PROPERTY enProperty, [in] BSTR bstrProperty);
  886. [propget, helpstring("property PresenceProperty")]
  887. HRESULT PresenceProperty([in] RTC_PRESENCE_PROPERTY enProperty, [out,retval] BSTR *pbstrProperty);
  888. [helpstring("method SetPresenceData")]
  889. HRESULT SetPresenceData([in] BSTR bstrNamespace, [in] BSTR bstrData);
  890. [helpstring("method GetPresenceData")]
  891. HRESULT GetPresenceData([out] BSTR *pbstrNamespace, [out] BSTR *pbstrData);
  892. [helpstring("method GetLocalPresenceInfo")]
  893. HRESULT GetLocalPresenceInfo(
  894. [out] RTC_PRESENCE_STATUS *penStatus,
  895. [out] BSTR *pbstrNotes
  896. );
  897. [helpstring("method AddBuddyEx")]
  898. HRESULT AddBuddyEx(
  899. [in] BSTR bstrPresentityURI,
  900. [in] BSTR bstrUserName,
  901. [in] BSTR bstrData,
  902. [in] VARIANT_BOOL fPersistent,
  903. [in] RTC_BUDDY_SUBSCRIPTION_TYPE enSubscriptionType,
  904. [in] IRTCProfile * pProfile,
  905. [in] long lFlags,
  906. [out, retval] IRTCBuddy2 **ppBuddy
  907. );
  908. };
  909. [
  910. object,
  911. uuid(B9F5CF06-65B9-4a80-A0E6-73CAE3EF3822),
  912. helpstring("IRTCClientProvisioning Interface"),
  913. pointer_default(unique)
  914. ]
  915. interface IRTCClientProvisioning : IUnknown
  916. {
  917. [helpstring("method CreateProfile")]
  918. HRESULT CreateProfile(
  919. [in] BSTR bstrProfileXML,
  920. [out, retval] IRTCProfile ** ppProfile
  921. );
  922. [helpstring("method EnableProfile")]
  923. HRESULT EnableProfile(
  924. [in] IRTCProfile * pProfile,
  925. [in] long lRegisterFlags
  926. );
  927. [helpstring("method DisableProfile")]
  928. HRESULT DisableProfile(
  929. [in] IRTCProfile * pProfile
  930. );
  931. [hidden, helpstring("method EnumerateProfiles")]
  932. HRESULT EnumerateProfiles(
  933. [out, retval] IRTCEnumProfiles ** ppEnum
  934. );
  935. [propget, helpstring("property Profiles")]
  936. HRESULT Profiles(
  937. [out, retval] IRTCCollection ** ppCollection
  938. );
  939. [helpstring("method GetProfile")]
  940. HRESULT GetProfile(
  941. [in] BSTR bstrUserAccount,
  942. [in] BSTR bstrUserPassword,
  943. [in] BSTR bstrUserURI,
  944. [in] BSTR bstrServer,
  945. [in] long lTransport,
  946. [in] LONG_PTR lCookie
  947. );
  948. [propget, helpstring("property SessionCapabilities")]
  949. HRESULT SessionCapabilities(
  950. [out, retval] long * plSupportedSessions);
  951. };
  952. [
  953. object,
  954. uuid(A70909B5-F40E-4587-BB75-E6BC0845023E),
  955. helpstring("IRTCClientProvisioning2 Interface"),
  956. pointer_default(unique)
  957. ]
  958. interface IRTCClientProvisioning2 : IRTCClientProvisioning
  959. {
  960. [helpstring("method EnableProfileEx")]
  961. HRESULT EnableProfileEx(
  962. [in] IRTCProfile * pProfile,
  963. [in] long lRegisterFlags,
  964. [in] long lRoamingFlags
  965. );
  966. };
  967. [
  968. object,
  969. uuid(d07eca9e-4062-4dd4-9e7d-722a49ba7303),
  970. helpstring("IRTCProfile Interface"),
  971. pointer_default(unique)
  972. ]
  973. interface IRTCProfile : IUnknown
  974. {
  975. [propget, helpstring("property Key")]
  976. HRESULT Key(
  977. [out, retval] BSTR * pbstrKey);
  978. [propget, helpstring("property Name")]
  979. HRESULT Name(
  980. [out, retval] BSTR * pbstrName);
  981. [propget, helpstring("property XML")]
  982. HRESULT XML(
  983. [out, retval] BSTR * pbstrXML);
  984. // Provider
  985. [propget, helpstring("property ProviderName")]
  986. HRESULT ProviderName(
  987. [out, retval] BSTR * pbstrName);
  988. [propget, helpstring("property ProviderURI")]
  989. HRESULT ProviderURI(
  990. [in] RTC_PROVIDER_URI enURI,
  991. [out, retval] BSTR * pbstrURI);
  992. [propget, helpstring("property ProviderData")]
  993. HRESULT ProviderData(
  994. [out, retval] BSTR * pbstrData);
  995. // Client
  996. [propget, helpstring("property ClientName")]
  997. HRESULT ClientName(
  998. [out, retval] BSTR * pbstrName);
  999. [propget, helpstring("property ClientBanner")]
  1000. HRESULT ClientBanner(
  1001. [out, retval] VARIANT_BOOL * pfBanner);
  1002. [propget, helpstring("property ClientMinVer")]
  1003. HRESULT ClientMinVer(
  1004. [out, retval] BSTR * pbstrMinVer);
  1005. [propget, helpstring("property ClientCurVer")]
  1006. HRESULT ClientCurVer(
  1007. [out, retval] BSTR * pbstrCurVer);
  1008. [propget, helpstring("property ClientUpdateURI")]
  1009. HRESULT ClientUpdateURI(
  1010. [out, retval] BSTR * pbstrUpdateURI);
  1011. [propget, helpstring("property ClientData")]
  1012. HRESULT ClientData(
  1013. [out, retval] BSTR * pbstrData);
  1014. // User
  1015. [propget, helpstring("property UserURI")]
  1016. HRESULT UserURI(
  1017. [out, retval] BSTR * pbstrUserURI);
  1018. [propget, helpstring("property UserName")]
  1019. HRESULT UserName(
  1020. [out, retval] BSTR * pbstrUserName);
  1021. [propget, helpstring("property UserAccount")]
  1022. HRESULT UserAccount(
  1023. [out, retval] BSTR * pbstrUserAccount);
  1024. [helpstring("method SetCredentials")]
  1025. HRESULT SetCredentials(
  1026. [in] BSTR bstrUserURI,
  1027. [in] BSTR bstrUserAccount,
  1028. [in] BSTR bstrPassword);
  1029. // Server
  1030. [propget, helpstring("property SessionCapabilities")]
  1031. HRESULT SessionCapabilities(
  1032. [out, retval] long * plSupportedSessions);
  1033. // Registration
  1034. [propget, helpstring("property State")]
  1035. HRESULT State(
  1036. [out, retval] RTC_REGISTRATION_STATE * penState);
  1037. }
  1038. [
  1039. object,
  1040. uuid(4B81F84E-BDC7-4184-9154-3CB2DD7917FB),
  1041. helpstring("IRTCProfile2 Interface"),
  1042. pointer_default(unique)
  1043. ]
  1044. interface IRTCProfile2 : IRTCProfile
  1045. {
  1046. [propget, helpstring("property Realm")]
  1047. HRESULT Realm(
  1048. [out, retval] BSTR * pbstrRealm
  1049. );
  1050. [propput, helpstring("property Realm")]
  1051. HRESULT Realm(
  1052. [in] BSTR bstrRealm
  1053. );
  1054. [propget, helpstring("property AllowedAuth")]
  1055. HRESULT AllowedAuth(
  1056. [out, retval] long * plAllowedAuth
  1057. );
  1058. [propput, helpstring("property AllowedAuth")]
  1059. HRESULT AllowedAuth(
  1060. [in] long lAllowedAuth
  1061. );
  1062. };
  1063. [
  1064. object,
  1065. uuid(387c8086-99be-42fb-9973-7c0fc0ca9fa8),
  1066. helpstring("IRTCSession Interface"),
  1067. pointer_default(unique)
  1068. ]
  1069. interface IRTCSession : IUnknown
  1070. {
  1071. // properties
  1072. [propget, helpstring("property Client")]
  1073. HRESULT Client(
  1074. [out, retval] IRTCClient **ppClient
  1075. );
  1076. [propget, helpstring("property State")]
  1077. HRESULT State(
  1078. [out, retval] RTC_SESSION_STATE * penState
  1079. );
  1080. [propget, helpstring("property Type")]
  1081. HRESULT Type(
  1082. [out, retval] RTC_SESSION_TYPE * penType
  1083. );
  1084. [propget, helpstring("property Profile")]
  1085. HRESULT Profile(
  1086. [out, retval] IRTCProfile ** ppProfile
  1087. );
  1088. [propget, helpstring("property Participants")]
  1089. HRESULT Participants(
  1090. [out, retval] IRTCCollection ** ppCollection
  1091. );
  1092. // call control
  1093. [helpstring("method Answer")]
  1094. HRESULT Answer();
  1095. [helpstring("method Terminate")]
  1096. HRESULT Terminate(
  1097. [in] RTC_TERMINATE_REASON enReason
  1098. );
  1099. [helpstring("method Redirect")]
  1100. HRESULT Redirect(
  1101. [in] RTC_SESSION_TYPE enType,
  1102. [in] BSTR bstrLocalPhoneURI,
  1103. [in] IRTCProfile * pProfile,
  1104. [in] long lFlags
  1105. );
  1106. [helpstring("method AddParticipant")]
  1107. HRESULT AddParticipant(
  1108. [in] BSTR bstrAddress,
  1109. [in] BSTR bstrName,
  1110. [out, retval] IRTCParticipant ** ppParticipant
  1111. );
  1112. [helpstring("method RemoveParticipant")]
  1113. HRESULT RemoveParticipant(
  1114. [in] IRTCParticipant * pParticipant
  1115. );
  1116. [hidden, helpstring("method EnumerateParticipants")]
  1117. HRESULT EnumerateParticipants(
  1118. [out, retval] IRTCEnumParticipants ** ppEnum
  1119. );
  1120. [propget, helpstring("property CanAddParticipants")]
  1121. HRESULT CanAddParticipants(
  1122. [out, retval] VARIANT_BOOL * pfCanAdd
  1123. );
  1124. // redirection context control
  1125. [propget, helpstring("property RedirectedUserURI")]
  1126. HRESULT RedirectedUserURI(
  1127. [out, retval] BSTR * pbstrUserURI
  1128. );
  1129. [propget, helpstring("property RedirectedUserName")]
  1130. HRESULT RedirectedUserName(
  1131. [out, retval] BSTR * pbstrUserName
  1132. );
  1133. [helpstring("method NextRedirectedUser")]
  1134. HRESULT NextRedirectedUser();
  1135. // instant messaging
  1136. [helpstring("method SendMessage")]
  1137. HRESULT SendMessage(
  1138. [in] BSTR bstrMessageHeader,
  1139. [in] BSTR bstrMessage,
  1140. [in] LONG_PTR lCookie
  1141. );
  1142. [helpstring("method SendMessageStatus")]
  1143. HRESULT SendMessageStatus(
  1144. [in] RTC_MESSAGING_USER_STATUS enUserStatus,
  1145. [in] LONG_PTR lCookie
  1146. );
  1147. // stream & custom media control
  1148. [helpstring("method AddStream")]
  1149. HRESULT AddStream(
  1150. [in] long lMediaType,
  1151. [in] LONG_PTR lCookie
  1152. );
  1153. [helpstring("method RemoveStream")]
  1154. HRESULT RemoveStream(
  1155. [in] long lMediaType,
  1156. [in] LONG_PTR lCookie
  1157. );
  1158. // keys
  1159. [propput, helpstring("property EncryptionKey")]
  1160. HRESULT EncryptionKey(
  1161. [in] long lMediaType,
  1162. [in] BSTR EncryptionKey
  1163. );
  1164. };
  1165. [
  1166. object,
  1167. uuid(17D7CDFC-B007-484c-99D2-86A8A820991D),
  1168. helpstring("IRTCSession2 Interface"),
  1169. pointer_default(unique)
  1170. ]
  1171. interface IRTCSession2 : IRTCSession
  1172. {
  1173. [helpstring("Method SendInfo")]
  1174. HRESULT SendInfo(
  1175. [in] BSTR bstrInfoHeader,
  1176. [in] BSTR bstrInfo,
  1177. [in] LONG_PTR lCookie
  1178. );
  1179. [propput, helpstring("property PreferredSecurityLevel")]
  1180. HRESULT PreferredSecurityLevel(
  1181. [in] RTC_SECURITY_TYPE enSecurityType,
  1182. [in] RTC_SECURITY_LEVEL enSecurityLevel
  1183. );
  1184. [propget, helpstring("property PreferredSecurityLevel")]
  1185. HRESULT PreferredSecurityLevel(
  1186. [in] RTC_SECURITY_TYPE enSecurityType,
  1187. [out, retval] RTC_SECURITY_LEVEL * penSecurityLevel
  1188. );
  1189. [helpstring("method IsSecurityEnabled")]
  1190. HRESULT IsSecurityEnabled(
  1191. [in] RTC_SECURITY_TYPE enSecurityType,
  1192. [out, retval] VARIANT_BOOL * pfSecurityEnabled
  1193. );
  1194. //
  1195. // SessionDescription control
  1196. //
  1197. [helpstring("method AnswerWithSessionDescription")]
  1198. HRESULT AnswerWithSessionDescription(
  1199. [in] BSTR bstrContentType,
  1200. [in] BSTR bstrSessionDescription
  1201. );
  1202. [helpstring("method ReInviteWithSessionDescription")]
  1203. HRESULT ReInviteWithSessionDescription(
  1204. [in] BSTR bstrContentType,
  1205. [in] BSTR bstrSessionDescription,
  1206. [in] LONG_PTR lCookie
  1207. );
  1208. };
  1209. [
  1210. object,
  1211. uuid(E9A50D94-190B-4F82-9530-3B8EBF60758A),
  1212. helpstring("IRTCSessionCallControl Interface"),
  1213. pointer_default(unique)
  1214. ]
  1215. interface IRTCSessionCallControl : IUnknown
  1216. {
  1217. // hold, unhold methods
  1218. [helpstring("method Hold")]
  1219. HRESULT Hold(
  1220. [in] LONG_PTR lCookie
  1221. );
  1222. [helpstring("method UnHold")]
  1223. HRESULT UnHold(
  1224. [in] LONG_PTR lCookie
  1225. );
  1226. // forward method
  1227. [helpstring("method Forward")]
  1228. HRESULT Forward(
  1229. [in] BSTR bstrForwardToURI
  1230. );
  1231. // refer methods
  1232. [helpstring("method Refer")]
  1233. HRESULT Refer(
  1234. [in] BSTR bstrReferToURI,
  1235. [in] BSTR bstrReferCookie
  1236. );
  1237. [propput, helpstring("property ReferredByURI")]
  1238. HRESULT ReferredByURI(
  1239. [in] BSTR bstrReferredByURI
  1240. );
  1241. [propget, helpstring("property ReferredByURI")]
  1242. HRESULT ReferredByURI(
  1243. [out, retval] BSTR *pbstrReferredByURI
  1244. );
  1245. [propput, helpstring("property ReferCookie")]
  1246. HRESULT ReferCookie(
  1247. [in] BSTR bstrReferCookie
  1248. );
  1249. [propget, helpstring("property ReferCookie")]
  1250. HRESULT ReferCookie(
  1251. [out, retval] BSTR *pbstrReferCookie
  1252. );
  1253. [propget, helpstring("property IsReferred")]
  1254. HRESULT IsReferred(
  1255. [out, retval] VARIANT_BOOL *pfIsReferred
  1256. );
  1257. };
  1258. [
  1259. object,
  1260. uuid(ae86add5-26b1-4414-af1d-b94cd938d739),
  1261. helpstring("IRTCParticipant Interface"),
  1262. pointer_default(unique)
  1263. ]
  1264. interface IRTCParticipant : IUnknown
  1265. {
  1266. [propget, helpstring("property UserURI")]
  1267. HRESULT UserURI(
  1268. [out, retval] BSTR * pbstrUserURI
  1269. );
  1270. [propget, helpstring("property Name")]
  1271. HRESULT Name(
  1272. [out, retval] BSTR * pbstrName
  1273. );
  1274. [propget, helpstring("property Removable")]
  1275. HRESULT Removable(
  1276. [out, retval] VARIANT_BOOL * pfRemovable
  1277. );
  1278. [propget, helpstring("property State")]
  1279. HRESULT State(
  1280. [out, retval] RTC_PARTICIPANT_STATE * penState
  1281. );
  1282. [propget, helpstring("property Session")]
  1283. HRESULT Session(
  1284. [out, retval] IRTCSession ** ppSession
  1285. );
  1286. };
  1287. [
  1288. object,
  1289. uuid(79960a6b-0cb1-4dc8-a805-7318e99902e8),
  1290. dual,
  1291. helpstring("IRTCRoamingEvent"),
  1292. pointer_default(unique)
  1293. ]
  1294. interface IRTCRoamingEvent : IDispatch
  1295. {
  1296. [propget, id(1), helpstring("property EventType")]
  1297. HRESULT EventType( [out, retval] RTC_ROAMING_EVENT_TYPE *pEventType );
  1298. [propget, id(2), helpstring("property Profile")]
  1299. HRESULT Profile( [out, retval] IRTCProfile2 ** ppProfile );
  1300. [propget, id(3), helpstring("property StatusCode")]
  1301. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1302. [propget, id(4), helpstring("property StatusText")]
  1303. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1304. };
  1305. [
  1306. object,
  1307. uuid(D6D5AB3B-770E-43e8-800A-79B062395FCA),
  1308. dual,
  1309. helpstring("IRTCProfileEvent"),
  1310. pointer_default(unique)
  1311. ]
  1312. interface IRTCProfileEvent : IDispatch
  1313. {
  1314. [propget, id(1), helpstring("property Profile")]
  1315. HRESULT Profile( [out, retval] IRTCProfile ** ppProfile );
  1316. [propget, id(2), helpstring("property Cookie")]
  1317. HRESULT Cookie( [out, retval] LONG_PTR * plCookie );
  1318. [propget, id(3), helpstring("property StatusCode")]
  1319. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1320. }
  1321. [
  1322. object,
  1323. uuid(62E56EDC-03FA-4121-94FB-23493FD0AE64),
  1324. dual,
  1325. helpstring("IRTCProfileEvent2"),
  1326. pointer_default(unique)
  1327. ]
  1328. interface IRTCProfileEvent2 : IRTCProfileEvent
  1329. {
  1330. [propget, id(4), helpstring("property EventType")]
  1331. HRESULT EventType( [out, retval] RTC_PROFILE_EVENT_TYPE *pEventType );
  1332. }
  1333. [
  1334. object,
  1335. uuid(2b493b7a-3cba-4170-9c8b-76a9dacdd644),
  1336. dual,
  1337. helpstring("IRTCClientEvent"),
  1338. pointer_default(unique)
  1339. ]
  1340. interface IRTCClientEvent : IDispatch
  1341. {
  1342. [propget, id(1), helpstring("property EventType")]
  1343. HRESULT EventType( [out, retval] RTC_CLIENT_EVENT_TYPE * penEventType );
  1344. [propget, id(2), helpstring("property Client")]
  1345. HRESULT Client( [out, retval] IRTCClient **ppClient );
  1346. }
  1347. [
  1348. object,
  1349. uuid(62d0991b-50ab-4f02-b948-ca94f26f8f95),
  1350. dual,
  1351. helpstring("IRTCRegistrationStateChangeEvent"),
  1352. pointer_default(unique)
  1353. ]
  1354. interface IRTCRegistrationStateChangeEvent : IDispatch
  1355. {
  1356. [propget, id(1), helpstring("property Profile")]
  1357. HRESULT Profile( [out, retval] IRTCProfile ** ppProfile );
  1358. [propget, id(2), helpstring("property State")]
  1359. HRESULT State( [out, retval] RTC_REGISTRATION_STATE * penState );
  1360. [propget, id(3), helpstring("property StatusCode")]
  1361. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1362. [propget, id(4), helpstring("property StatusText")]
  1363. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1364. }
  1365. [
  1366. object,
  1367. uuid(b5bad703-5952-48b3-9321-7f4500521506),
  1368. dual,
  1369. helpstring("IRTCSessionStateChangeEvent"),
  1370. pointer_default(unique)
  1371. ]
  1372. interface IRTCSessionStateChangeEvent : IDispatch
  1373. {
  1374. [propget, id(1), helpstring("property Session")]
  1375. HRESULT Session( [out, retval] IRTCSession ** ppSession );
  1376. [propget, id(2), helpstring("property State")]
  1377. HRESULT State( [out, retval] RTC_SESSION_STATE * penState );
  1378. [propget, id(3), helpstring("property StatusCode")]
  1379. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1380. [propget, id(4), helpstring("property StatusText")]
  1381. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1382. }
  1383. [
  1384. object,
  1385. uuid(4F933171-6F95-4880-80D9-2EC8D495D261),
  1386. dual,
  1387. helpstring("IRTCSessionStateChangeEvent2"),
  1388. pointer_default(unique)
  1389. ]
  1390. interface IRTCSessionStateChangeEvent2 : IRTCSessionStateChangeEvent
  1391. {
  1392. [propget, id(5), helpstring("property MediaTypes")]
  1393. HRESULT MediaTypes( [out, retval] long * pMediaTypes );
  1394. [propget, id(6), helpstring("property RemotePreferredSecurityLevel")]
  1395. HRESULT RemotePreferredSecurityLevel(
  1396. [in] RTC_SECURITY_TYPE enSecurityType,
  1397. [out, retval] RTC_SECURITY_LEVEL * penSecurityLevel
  1398. );
  1399. [propget, id(7), helpstring("property IsForked")]
  1400. HRESULT IsForked(
  1401. [out, retval] VARIANT_BOOL *pfIsForked
  1402. );
  1403. [id(8), helpstring("method GetRemoteSessionDescription")]
  1404. HRESULT GetRemoteSessionDescription(
  1405. [out] BSTR * pbstrContentType,
  1406. [out] BSTR * pbstrSessionDescription
  1407. );
  1408. };
  1409. [
  1410. object,
  1411. uuid(a6bff4c0-f7c8-4d3c-9a41-3550f78a95b0),
  1412. dual,
  1413. helpstring("IRTCSessionOperationCompleteEvent"),
  1414. pointer_default(unique)
  1415. ]
  1416. interface IRTCSessionOperationCompleteEvent : IDispatch
  1417. {
  1418. [propget, id(1), helpstring("property Session")]
  1419. HRESULT Session( [out, retval] IRTCSession ** ppSession );
  1420. [propget, id(2), helpstring("property Cookie")]
  1421. HRESULT Cookie( [out, retval] LONG_PTR * plCookie );
  1422. [propget, id(3), helpstring("property StatusCode")]
  1423. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1424. [propget, id(4), helpstring("property StatusText")]
  1425. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1426. }
  1427. [
  1428. object,
  1429. uuid(f6fc2a9b-d5bc-4241-b436-1b8460c13832),
  1430. dual,
  1431. helpstring("IRTCSessionOperationCompleteEvent2"),
  1432. pointer_default(unique)
  1433. ]
  1434. interface IRTCSessionOperationCompleteEvent2 : IRTCSessionOperationCompleteEvent
  1435. {
  1436. [propget, id(5), helpstring("property Participant")]
  1437. HRESULT Participant( [out, retval] IRTCParticipant ** ppParticipant );
  1438. [id(6), helpstring("method GetRemoteSessionDescription")]
  1439. HRESULT GetRemoteSessionDescription(
  1440. [out] BSTR * pbstrContentType,
  1441. [out] BSTR * pbstrSessionDescription
  1442. );
  1443. }
  1444. [
  1445. object,
  1446. uuid(09bcb597-f0fa-48f9-b420-468cea7fde04),
  1447. dual,
  1448. helpstring("IRTCParticipantStateChangeEvent"),
  1449. pointer_default(unique)
  1450. ]
  1451. interface IRTCParticipantStateChangeEvent : IDispatch
  1452. {
  1453. [propget, id(1), helpstring("property Participant")]
  1454. HRESULT Participant( [out, retval] IRTCParticipant ** ppParticipant );
  1455. [propget, id(2), helpstring("property State")]
  1456. HRESULT State( [out, retval] RTC_PARTICIPANT_STATE * penState );
  1457. [propget, id(3), helpstring("property StatusCode")]
  1458. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1459. }
  1460. [
  1461. object,
  1462. uuid(099944fb-bcda-453e-8c41-e13da2adf7f3),
  1463. dual,
  1464. helpstring("IRTCMediaEvent"),
  1465. pointer_default(unique)
  1466. ]
  1467. interface IRTCMediaEvent : IDispatch
  1468. {
  1469. [propget, id(1), helpstring("property MediaType")]
  1470. HRESULT MediaType( [out, retval] long * pMediaType );
  1471. [propget, id(2), helpstring("property EventType")]
  1472. HRESULT EventType( [out, retval] RTC_MEDIA_EVENT_TYPE * penEventType );
  1473. [propget, id(3), helpstring("property EventReason")]
  1474. HRESULT EventReason( [out, retval] RTC_MEDIA_EVENT_REASON * penEventReason );
  1475. }
  1476. [
  1477. object,
  1478. uuid(4c23bf51-390c-4992-a41d-41eec05b2a4b),
  1479. dual,
  1480. helpstring("IRTCIntensityEvent"),
  1481. pointer_default(unique)
  1482. ]
  1483. interface IRTCIntensityEvent : IDispatch
  1484. {
  1485. [propget, id(1), helpstring("property Level")]
  1486. HRESULT Level( [out, retval] long * plLevel );
  1487. [propget, id(2), helpstring("property Min")]
  1488. HRESULT Min( [out, retval] long * plMin );
  1489. [propget, id(3), helpstring("property Max")]
  1490. HRESULT Max( [out, retval] long * plMax );
  1491. [propget, id(4), helpstring("property Direction")]
  1492. HRESULT Direction( [out, retval] RTC_AUDIO_DEVICE * penDirection );
  1493. }
  1494. [
  1495. object,
  1496. uuid(d3609541-1b29-4de5-a4ad-5aebaf319512),
  1497. dual,
  1498. helpstring("IRTCMessagingEvent"),
  1499. pointer_default(unique)
  1500. ]
  1501. interface IRTCMessagingEvent : IDispatch
  1502. {
  1503. [propget, id(1), helpstring("property Session")]
  1504. HRESULT Session( [out, retval] IRTCSession ** ppSession );
  1505. [propget, id(2), helpstring("property Participant")]
  1506. HRESULT Participant( [out, retval] IRTCParticipant ** ppParticipant );
  1507. [propget, id(3), helpstring("property Type")]
  1508. HRESULT EventType( [out, retval] RTC_MESSAGING_EVENT_TYPE * penEventType );
  1509. [propget, id(4), helpstring("property Message")]
  1510. HRESULT Message( [out, retval] BSTR * pbstrMessage );
  1511. [propget, id(5), helpstring("property MessageHeader")]
  1512. HRESULT MessageHeader( [out, retval] BSTR * pbstrMessageHeader );
  1513. [propget, id(6), helpstring("property UserStatus")]
  1514. HRESULT UserStatus( [out, retval] RTC_MESSAGING_USER_STATUS * penUserStatus );
  1515. }
  1516. [
  1517. object,
  1518. uuid(f36d755d-17e6-404e-954f-0fc07574c78d),
  1519. dual,
  1520. helpstring("IRTCBuddyEvent"),
  1521. pointer_default(unique)
  1522. ]
  1523. interface IRTCBuddyEvent : IDispatch
  1524. {
  1525. [propget, id(1), helpstring("property Buddy")]
  1526. HRESULT Buddy( [out, retval] IRTCBuddy ** ppBuddy );
  1527. }
  1528. [
  1529. object,
  1530. uuid(484A7F1E-73F0-4990-BFC2-60BC3978A720),
  1531. dual,
  1532. helpstring("IRTCBuddyEvent2"),
  1533. pointer_default(unique)
  1534. ]
  1535. interface IRTCBuddyEvent2 : IRTCBuddyEvent
  1536. {
  1537. [propget, id(2), helpstring("property EventType")]
  1538. HRESULT EventType(
  1539. [out, retval] RTC_BUDDY_EVENT_TYPE * pEventType
  1540. );
  1541. [propget, id(3), helpstring("property StatusCode")]
  1542. HRESULT StatusCode(
  1543. [out, retval] long * plStatusCode
  1544. );
  1545. [propget, id(4), helpstring("property StatusText")]
  1546. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1547. }
  1548. [
  1549. object,
  1550. uuid(f30d7261-587a-424f-822c-312788f43548),
  1551. dual,
  1552. helpstring("IRTCWatcherEvent"),
  1553. pointer_default(unique)
  1554. ]
  1555. interface IRTCWatcherEvent : IDispatch
  1556. {
  1557. [propget, id(1), helpstring("property Watcher")]
  1558. HRESULT Watcher( [out, retval] IRTCWatcher ** ppWatcher );
  1559. }
  1560. [
  1561. object,
  1562. uuid(E52891E8-188C-49AF-B005-98ED13F83F9C),
  1563. dual,
  1564. helpstring("IRTCBuddyEvent2"),
  1565. pointer_default(unique)
  1566. ]
  1567. interface IRTCWatcherEvent2 : IRTCWatcherEvent
  1568. {
  1569. [propget, id(2), helpstring("property EventType")]
  1570. HRESULT EventType(
  1571. [out, retval] RTC_WATCHER_EVENT_TYPE * pEventType
  1572. );
  1573. [propget, id(3), helpstring("property StatusCode")]
  1574. HRESULT StatusCode(
  1575. [out, retval] long * plStatusCode
  1576. );
  1577. }
  1578. [
  1579. object,
  1580. uuid(3A79E1D1-B736-4414-96F8-BBC7F08863E4),
  1581. dual,
  1582. helpstring("IRTCBuddyGroupEvent"),
  1583. pointer_default(unique)
  1584. ]
  1585. interface IRTCBuddyGroupEvent : IDispatch
  1586. {
  1587. [propget, id(1), helpstring("property EventType")]
  1588. HRESULT EventType(
  1589. [out, retval] RTC_GROUP_EVENT_TYPE * pEventType
  1590. );
  1591. [propget, id(2), helpstring("property Group")]
  1592. HRESULT Group(
  1593. [out, retval] IRTCBuddyGroup ** ppGroup
  1594. );
  1595. [propget, id(3), helpstring("property Buddy")]
  1596. HRESULT Buddy(
  1597. [out, retval] IRTCBuddy2 ** ppBuddy
  1598. );
  1599. [propget, id(4), helpstring("property StatusCode")]
  1600. HRESULT StatusCode(
  1601. [out, retval] long * plStatusCode
  1602. );
  1603. }
  1604. [
  1605. object,
  1606. uuid(4E1D68AE-1912-4f49-B2C3-594FADFD425F),
  1607. dual,
  1608. helpstring("IRTCInfoEvent"),
  1609. pointer_default(unique)
  1610. ]
  1611. interface IRTCInfoEvent : IDispatch
  1612. {
  1613. [propget, id(1), helpstring("property Session")]
  1614. HRESULT Session(
  1615. [out, retval] IRTCSession2 ** ppSession
  1616. );
  1617. [propget, id(2), helpstring("property Participant")]
  1618. HRESULT Participant(
  1619. [out, retval] IRTCParticipant ** ppParticipant
  1620. );
  1621. [propget, id(3), helpstring("property Info")]
  1622. HRESULT Info(
  1623. [out, retval] BSTR * pbstrInfo
  1624. );
  1625. [propget, id(4), helpstring("property InfoHeader")]
  1626. HRESULT InfoHeader(
  1627. [out, retval] BSTR * pbstrInfoHeader
  1628. );
  1629. }
  1630. [
  1631. object,
  1632. uuid(52572D15-148C-4d97-A36C-2DA55C289D63),
  1633. dual,
  1634. helpstring("IRTCMediaRequestEvent"),
  1635. pointer_default(unique)
  1636. ]
  1637. interface IRTCMediaRequestEvent : IDispatch
  1638. {
  1639. [propget, id(1), helpstring("property Session")]
  1640. HRESULT Session(
  1641. [out, retval] IRTCSession2 ** ppSession
  1642. );
  1643. [propget, id(2), helpstring("property ProposedMedia")]
  1644. HRESULT ProposedMedia(
  1645. [out, retval] long * plMediaTypes
  1646. );
  1647. [propget, id(3), helpstring("property CurrentMedia")]
  1648. HRESULT CurrentMedia(
  1649. [out, retval] long * plMediaTypes
  1650. );
  1651. [id(4), helpstring("method Accept")]
  1652. HRESULT Accept(
  1653. [in] long lMediaTypes
  1654. );
  1655. [propget, id(5), helpstring("property RemotePreferredSecurityLevel")]
  1656. HRESULT RemotePreferredSecurityLevel(
  1657. [in] RTC_SECURITY_TYPE enSecurityType,
  1658. [out, retval] RTC_SECURITY_LEVEL * penSecurityLevel
  1659. );
  1660. [id(6), helpstring("method Reject")]
  1661. HRESULT Reject();
  1662. [propget, id(7), helpstring("property State")]
  1663. HRESULT State(
  1664. [out, retval] RTC_REINVITE_STATE *pState
  1665. );
  1666. }
  1667. [
  1668. object,
  1669. uuid(11558D84-204C-43e7-99B0-2034E9417F7D),
  1670. dual,
  1671. helpstring("IRTCReInviteEvent"),
  1672. pointer_default(unique)
  1673. ]
  1674. interface IRTCReInviteEvent : IDispatch
  1675. {
  1676. [propget, id(1), helpstring("property Session")]
  1677. HRESULT Session(
  1678. [out, retval] IRTCSession2 ** ppSession2
  1679. );
  1680. [id(2), helpstring("method Accept")]
  1681. HRESULT Accept(
  1682. [in] BSTR bstrContentType,
  1683. [in] BSTR bstrSessionDescription
  1684. );
  1685. [id(3), helpstring("method Reject")]
  1686. HRESULT Reject();
  1687. [propget, id(4), helpstring("property State")]
  1688. HRESULT State(
  1689. [out, retval] RTC_REINVITE_STATE *pState
  1690. );
  1691. [id(5), helpstring("method GetRemoteSessionDescription")]
  1692. HRESULT GetRemoteSessionDescription(
  1693. [out] BSTR * pbstrContentType,
  1694. [out] BSTR * pbstrSessionDescription
  1695. );
  1696. }
  1697. [
  1698. object,
  1699. uuid(F777F570-A820-49d5-86BD-E099493F1518),
  1700. dual,
  1701. helpstring("IRTCPresencePropertyEvent"),
  1702. pointer_default(unique)
  1703. ]
  1704. interface IRTCPresencePropertyEvent : IDispatch
  1705. {
  1706. [propget, id(1), helpstring("property StatusCode")]
  1707. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1708. [propget, id(2), helpstring("property StatusText")]
  1709. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1710. [propget, id(3), helpstring("property PresenceProperty")]
  1711. HRESULT PresenceProperty( [out, retval] RTC_PRESENCE_PROPERTY *penPresProp);
  1712. [propget, id(4), helpstring("property Value")]
  1713. HRESULT Value( [out, retval] BSTR * pbstrValue );
  1714. }
  1715. [
  1716. object,
  1717. uuid(38F0E78C-8B87-4c04-A82D-AEDD83C909BB),
  1718. dual,
  1719. helpstring("IRTCPresenceDataEvent"),
  1720. pointer_default(unique)
  1721. ]
  1722. interface IRTCPresenceDataEvent : IDispatch
  1723. {
  1724. [propget, id(1), helpstring("property StatusCode")]
  1725. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1726. [propget, id(2), helpstring("property StatusText")]
  1727. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1728. [id(3), helpstring("method GetPresenceData")]
  1729. HRESULT GetPresenceData([out] BSTR *pbstrNamespace, [out] BSTR *pbstrData);
  1730. }
  1731. [
  1732. object,
  1733. uuid(78673F32-4A0F-462c-89AA-EE7706707678),
  1734. dual,
  1735. helpstring("IRTCPresenceStatusEvent"),
  1736. pointer_default(unique)
  1737. ]
  1738. interface IRTCPresenceStatusEvent : IDispatch
  1739. {
  1740. [propget, id(1), helpstring("property StatusCode")]
  1741. HRESULT StatusCode( [out, retval] long * plStatusCode );
  1742. [propget, id(2), helpstring("property StatusText")]
  1743. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  1744. [id(3), helpstring("method GetLocalPresenceInfo")]
  1745. HRESULT GetLocalPresenceInfo([out] RTC_PRESENCE_STATUS *penStatus, [out] BSTR *pbstrNotes);
  1746. }
  1747. [
  1748. object,
  1749. uuid(EC7C8096-B918-4044-94F1-E4FBA0361D5C),
  1750. helpstring("IRTCCollection interface"),
  1751. dual
  1752. ]
  1753. interface IRTCCollection : IDispatch
  1754. {
  1755. [propget, helpstring("Returns number of items in collection.")]
  1756. HRESULT Count(
  1757. [out, retval] long * lCount
  1758. );
  1759. [propget, id(DISPID_VALUE),
  1760. helpstring("Given an index, returns an item in the collection.")]
  1761. HRESULT Item(
  1762. [in] long Index,
  1763. [out, retval] VARIANT * pVariant
  1764. );
  1765. [propget, restricted, id(DISPID_NEWENUM),
  1766. helpstring("returns an enumerator for the collection.")]
  1767. HRESULT _NewEnum(
  1768. [out, retval] IUnknown ** ppNewEnum
  1769. );
  1770. }
  1771. [
  1772. object,
  1773. uuid(fcd56f29-4a4f-41b2-ba5c-f5bccc060bf6),
  1774. hidden,
  1775. helpstring("IRTCEnumParticipants interface"),
  1776. pointer_default(unique)
  1777. ]
  1778. interface IRTCEnumParticipants : IUnknown
  1779. {
  1780. HRESULT Next(
  1781. [in] ULONG celt,
  1782. [out, size_is(celt)] IRTCParticipant ** ppElements,
  1783. [in,out,ptr] ULONG * pceltFetched
  1784. );
  1785. HRESULT Reset( void );
  1786. HRESULT Skip (
  1787. [in] ULONG celt
  1788. );
  1789. HRESULT Clone (
  1790. [out, retval] IRTCEnumParticipants ** ppEnum
  1791. );
  1792. }
  1793. [
  1794. object,
  1795. uuid(29b7c41c-ed82-4bca-84ad-39d5101b58e3),
  1796. hidden,
  1797. helpstring("IRTCEnumProfiles interface"),
  1798. pointer_default(unique)
  1799. ]
  1800. interface IRTCEnumProfiles : IUnknown
  1801. {
  1802. HRESULT Next(
  1803. [in] ULONG celt,
  1804. [out, size_is(celt)] IRTCProfile ** ppElements,
  1805. [in,out,ptr] ULONG * pceltFetched
  1806. );
  1807. HRESULT Reset( void );
  1808. HRESULT Skip (
  1809. [in] ULONG celt
  1810. );
  1811. HRESULT Clone (
  1812. [out, retval] IRTCEnumProfiles ** ppEnum
  1813. );
  1814. }
  1815. [
  1816. object,
  1817. uuid(f7296917-5569-4b3b-b3af-98d1144b2b87),
  1818. hidden,
  1819. helpstring("IRTCEnumBuddies interface"),
  1820. pointer_default(unique)
  1821. ]
  1822. interface IRTCEnumBuddies : IUnknown
  1823. {
  1824. HRESULT Next(
  1825. [in] ULONG celt,
  1826. [out, size_is(celt)] IRTCBuddy ** ppElements,
  1827. [in,out,ptr] ULONG * pceltFetched
  1828. );
  1829. HRESULT Reset( void );
  1830. HRESULT Skip (
  1831. [in] ULONG celt
  1832. );
  1833. HRESULT Clone (
  1834. [out, retval] IRTCEnumBuddies ** ppEnum
  1835. );
  1836. }
  1837. [
  1838. object,
  1839. uuid(a87d55d7-db74-4ed1-9ca4-77a0e41b413e),
  1840. hidden,
  1841. helpstring("IRTCEnumWatchers interface"),
  1842. pointer_default(unique)
  1843. ]
  1844. interface IRTCEnumWatchers : IUnknown
  1845. {
  1846. HRESULT Next(
  1847. [in] ULONG celt,
  1848. [out, size_is(celt)] IRTCWatcher ** ppElements,
  1849. [in,out,ptr] ULONG * pceltFetched
  1850. );
  1851. HRESULT Reset( void );
  1852. HRESULT Skip (
  1853. [in] ULONG celt
  1854. );
  1855. HRESULT Clone (
  1856. [out, retval] IRTCEnumWatchers ** ppEnum
  1857. );
  1858. }
  1859. [
  1860. object,
  1861. uuid(742378D6-A141-4415-8F27-35D99076CF5D),
  1862. hidden,
  1863. helpstring("IRTCEnumGroups interface"),
  1864. pointer_default(unique)
  1865. ]
  1866. interface IRTCEnumGroups : IUnknown
  1867. {
  1868. HRESULT Next(
  1869. [in] ULONG celt,
  1870. [out, size_is(celt)] IRTCBuddyGroup ** ppElements,
  1871. [in,out,ptr] ULONG * pceltFetched
  1872. );
  1873. HRESULT Reset( void );
  1874. HRESULT Skip (
  1875. [in] ULONG celt
  1876. );
  1877. HRESULT Clone (
  1878. [out, retval] IRTCEnumGroups ** ppEnum
  1879. );
  1880. }
  1881. [
  1882. object,
  1883. uuid(8b22f92c-cd90-42db-a733-212205c3e3df),
  1884. helpstring("IRTCPresenceContact Interface"),
  1885. pointer_default(unique)
  1886. ]
  1887. interface IRTCPresenceContact : IUnknown
  1888. {
  1889. [propget, helpstring("property PresentityURI")]
  1890. HRESULT PresentityURI(
  1891. [out, retval] BSTR * pbstrPresentityURI
  1892. );
  1893. [propput, helpstring("property PresentityURI")]
  1894. HRESULT PresentityURI(
  1895. [in] BSTR bstrPresentityURI
  1896. );
  1897. [propget, helpstring("property Name")]
  1898. HRESULT Name(
  1899. [out, retval] BSTR * pbstrName
  1900. );
  1901. [propput, helpstring("property Name")]
  1902. HRESULT Name(
  1903. [in] BSTR bstrName
  1904. );
  1905. [propget, helpstring("property Data")]
  1906. HRESULT Data(
  1907. [out, retval] BSTR * pbstrData
  1908. );
  1909. [propput, helpstring("property Data")]
  1910. HRESULT Data(
  1911. [in] BSTR bstrData
  1912. );
  1913. [propget, helpstring("property Persistent")]
  1914. HRESULT Persistent(
  1915. [out, retval] VARIANT_BOOL *pfPersistent
  1916. );
  1917. [propput, helpstring("property Persistent")]
  1918. HRESULT Persistent(
  1919. [in] VARIANT_BOOL fPersistent
  1920. );
  1921. };
  1922. [
  1923. object,
  1924. uuid(fcb136c8-7b90-4e0c-befe-56edf0ba6f1c),
  1925. helpstring("IRTCBuddy Interface"),
  1926. pointer_default(unique)
  1927. ]
  1928. interface IRTCBuddy : IRTCPresenceContact
  1929. {
  1930. [propget, helpstring("property Status")]
  1931. HRESULT Status(
  1932. [out, retval] RTC_PRESENCE_STATUS * penStatus
  1933. );
  1934. [propget, helpstring("property Notes")]
  1935. HRESULT Notes(
  1936. [out, retval] BSTR * pbstrNotes
  1937. );
  1938. };
  1939. [
  1940. object,
  1941. uuid(102F9588-23E7-40e3-954D-CD7A1D5C0361),
  1942. helpstring("IRTCBuddy2 Interface"),
  1943. pointer_default(unique)
  1944. ]
  1945. interface IRTCBuddy2 : IRTCBuddy
  1946. {
  1947. [propget, helpstring("property Profile")]
  1948. HRESULT Profile(
  1949. [out, retval] IRTCProfile2 ** ppProfile
  1950. );
  1951. [helpstring("method Refresh")]
  1952. HRESULT Refresh();
  1953. [hidden, helpstring("method EnumerateGroups")]
  1954. HRESULT EnumerateGroups(
  1955. [out, retval] IRTCEnumGroups ** ppEnum
  1956. );
  1957. [propget, helpstring("property Groups")]
  1958. HRESULT Groups(
  1959. [out, retval] IRTCCollection ** ppCollection
  1960. );
  1961. [propget, helpstring("property PresenceProperty")]
  1962. HRESULT PresenceProperty([in] RTC_PRESENCE_PROPERTY enProperty, [out,retval] BSTR *pbstrProperty);
  1963. [helpstring("method EnumeratePresenceDevices ")]
  1964. HRESULT EnumeratePresenceDevices([out, retval] IRTCEnumPresenceDevices ** ppEnumDevices);
  1965. [propget, helpstring("property PresenceDevices")]
  1966. HRESULT PresenceDevices(
  1967. [out, retval] IRTCCollection ** ppDevicesCollection
  1968. );
  1969. [propget, helpstring("property SubscriptionType")]
  1970. HRESULT SubscriptionType(
  1971. [out, retval] RTC_BUDDY_SUBSCRIPTION_TYPE * penSubscriptionType
  1972. );
  1973. };
  1974. [
  1975. object,
  1976. uuid(c7cedad8-346b-4d1b-ac02-a2088df9be4f),
  1977. helpstring("IRTCWatcher Interface"),
  1978. pointer_default(unique)
  1979. ]
  1980. interface IRTCWatcher : IRTCPresenceContact
  1981. {
  1982. [propget, helpstring("property State")]
  1983. HRESULT State(
  1984. [out, retval] RTC_WATCHER_STATE * penState
  1985. );
  1986. [propput, helpstring("property State")]
  1987. HRESULT State(
  1988. [in] RTC_WATCHER_STATE enState
  1989. );
  1990. };
  1991. [
  1992. object,
  1993. uuid(D4D9967F-D011-4b1d-91E3-ABA78F96393D),
  1994. helpstring("IRTCWatcher2 Interface"),
  1995. pointer_default(unique)
  1996. ]
  1997. interface IRTCWatcher2 : IRTCWatcher
  1998. {
  1999. [propget, helpstring("property Profile")]
  2000. HRESULT Profile(
  2001. [out, retval] IRTCProfile2 ** ppProfile
  2002. );
  2003. [propget, helpstring("property Scope")]
  2004. HRESULT Scope(
  2005. [out, retval] RTC_ACE_SCOPE * penScope
  2006. );
  2007. };
  2008. [
  2009. object,
  2010. uuid(60361E68-9164-4389-A4C6-D0B3925BDA5E),
  2011. helpstring("IRTCBuddyGroup Interface"),
  2012. pointer_default(unique)
  2013. ]
  2014. interface IRTCBuddyGroup : IUnknown
  2015. {
  2016. [propget, helpstring("property Name")]
  2017. HRESULT Name(
  2018. [out, retval] BSTR * pbstrGroupName
  2019. );
  2020. [propput, helpstring("property Name")]
  2021. HRESULT Name(
  2022. [in] BSTR bstrGroupName
  2023. );
  2024. [helpstring("method AddBuddy")]
  2025. HRESULT AddBuddy(
  2026. [in] IRTCBuddy * pBuddy
  2027. );
  2028. [helpstring("method RemoveBuddy")]
  2029. HRESULT RemoveBuddy(
  2030. [in] IRTCBuddy * pBuddy
  2031. );
  2032. [hidden, helpstring("method EnumerateBuddies")]
  2033. HRESULT EnumerateBuddies(
  2034. [out, retval] IRTCEnumBuddies ** ppEnum
  2035. );
  2036. [propget, helpstring("property Buddies")]
  2037. HRESULT Buddies(
  2038. [out, retval] IRTCCollection ** ppCollection
  2039. );
  2040. [propget, helpstring("property Data")]
  2041. HRESULT Data(
  2042. [out, retval] BSTR * pbstrData
  2043. );
  2044. [propput, helpstring("property Data")]
  2045. HRESULT Data(
  2046. [in] BSTR bstrData
  2047. );
  2048. [propget, helpstring("property Profile")]
  2049. HRESULT Profile(
  2050. [out, retval] IRTCProfile2 ** ppProfile
  2051. );
  2052. }
  2053. [
  2054. object,
  2055. uuid(13fa24c7-5748-4b21-91f5-7397609ce747),
  2056. helpstring("IRTCEventNotification Interface"),
  2057. oleautomation,
  2058. pointer_default(unique)
  2059. ]
  2060. interface IRTCEventNotification : IUnknown
  2061. {
  2062. [id(1), helpstring("method Event")]
  2063. HRESULT Event(
  2064. [in] RTC_EVENT RTCEvent,
  2065. [in] IDispatch * pEvent
  2066. );
  2067. }
  2068. [
  2069. uuid(176ddfbe-fec0-4d55-bc87-84cff1ef7f91),
  2070. helpstring("IRTCDispatchEventNotification Interface")
  2071. ]
  2072. dispinterface IRTCDispatchEventNotification
  2073. {
  2074. properties:
  2075. methods:
  2076. [id(1), helpstring("method Event")]
  2077. HRESULT Event(
  2078. [in] RTC_EVENT RTCEvent,
  2079. [in] IDispatch * pEvent
  2080. );
  2081. };
  2082. [
  2083. object,
  2084. uuid(DA77C14B-6208-43ca-8DDF-5B60A0A69FAC),
  2085. helpstring("IRTCPortManager Interface"),
  2086. oleautomation,
  2087. pointer_default(unique)
  2088. ]
  2089. interface IRTCPortManager : IUnknown
  2090. {
  2091. [id(1), helpstring("method GetMapping")]
  2092. HRESULT GetMapping(
  2093. [in] BSTR bstrRemoteAddress,
  2094. [in] RTC_PORT_TYPE enPortType,
  2095. [in, out] BSTR * pbstrInternalLocalAddress,
  2096. [in, out] long * plInternalLocalPort,
  2097. [in, out] BSTR * pbstrExternalLocalAddress,
  2098. [in, out] long * plExternalLocalPort
  2099. );
  2100. [id(2), helpstring("method UpdateRemoteAddress")]
  2101. HRESULT UpdateRemoteAddress(
  2102. [in] BSTR bstrRemoteAddress,
  2103. [in] BSTR bstrInternalLocalAddress,
  2104. [in] long lInternalLocalPort,
  2105. [in] BSTR bstrExternalLocalAddress,
  2106. [in] long lExternalLocalPort
  2107. );
  2108. [id(3), helpstring("method ReleaseMapping")]
  2109. HRESULT ReleaseMapping(
  2110. [in] BSTR bstrInternalLocalAddress,
  2111. [in] long lInternalLocalPort,
  2112. [in] BSTR bstrExternalLocalAddress,
  2113. [in] long lExternalLocalAddress
  2114. );
  2115. }
  2116. [
  2117. object,
  2118. uuid(a072f1d6-0286-4e1f-85f2-17a2948456ec),
  2119. helpstring("IRTCSessionPortManagement Interface"),
  2120. pointer_default(unique)
  2121. ]
  2122. interface IRTCSessionPortManagement : IUnknown
  2123. {
  2124. HRESULT SetPortManager(
  2125. [in] IRTCPortManager * pPortManager
  2126. );
  2127. };
  2128. [
  2129. object,
  2130. uuid(d5df3f03-4bde-4417-aefe-71177bdaea66),
  2131. helpstring("IRTCClientPortManagement Interface"),
  2132. pointer_default(unique)
  2133. ]
  2134. interface IRTCClientPortManagement : IUnknown
  2135. {
  2136. HRESULT StartListenAddressAndPort(
  2137. [in] BSTR bstrInternalLocalAddress,
  2138. [in] long lInternalLocalPort
  2139. );
  2140. HRESULT StopListenAddressAndPort(
  2141. [in] BSTR bstrInternalLocalAddress,
  2142. [in] long lInternalLocalPort
  2143. );
  2144. [helpstring("method GetPortRange")]
  2145. HRESULT GetPortRange(
  2146. [in] RTC_PORT_TYPE enPortType,
  2147. [out] long * plMinValue,
  2148. [out] long * plMaxValue
  2149. );
  2150. };
  2151. ///////User search interfaces
  2152. [
  2153. object,
  2154. uuid(B619882B-860C-4db4-BE1B-693B6505BBE5),
  2155. helpstring("IRTCUserSearch Interface"),
  2156. pointer_default(unique)
  2157. ]
  2158. interface IRTCUserSearch : IUnknown
  2159. {
  2160. [helpstring("method CreateQuery")]
  2161. HRESULT CreateQuery(
  2162. [out, retval] IRTCUserSearchQuery ** ppQuery
  2163. );
  2164. [helpstring("method ExecuteSearch")]
  2165. HRESULT ExecuteSearch(
  2166. [in] IRTCUserSearchQuery * pQuery,
  2167. [in] IRTCProfile * pProfile,
  2168. [in] LONG_PTR lCookie
  2169. );
  2170. };
  2171. [
  2172. object,
  2173. uuid(288300F5-D23A-4365-9A73-9985C98C2881),
  2174. helpstring("IRTCUserSearchQuery Interface"),
  2175. pointer_default(unique)
  2176. ]
  2177. interface IRTCUserSearchQuery : IUnknown
  2178. {
  2179. [propput, helpstring("property SearchTerm")]
  2180. HRESULT SearchTerm(
  2181. [in] BSTR bstrName,
  2182. [in] BSTR bstrValue
  2183. );
  2184. [propget, helpstring("property SearchTerm")]
  2185. HRESULT SearchTerm(
  2186. [in] BSTR bstrName,
  2187. [out, retval] BSTR * pbstrValue
  2188. );
  2189. [propget, helpstring("property SearchTerms")]
  2190. HRESULT SearchTerms(
  2191. [out, retval] BSTR * pbstrNames
  2192. );
  2193. [propput, helpstring("property SearchPreference")]
  2194. HRESULT SearchPreference(
  2195. [in] RTC_USER_SEARCH_PREFERENCE enPreference,
  2196. [in] long lValue
  2197. );
  2198. [propget, helpstring("property SearchPreference")]
  2199. HRESULT SearchPreference(
  2200. [in] RTC_USER_SEARCH_PREFERENCE enPreference,
  2201. [out, retval] long * plValue
  2202. );
  2203. [propput, helpstring("property SearchDomain")]
  2204. HRESULT SearchDomain(
  2205. [in] BSTR bstrDomain
  2206. );
  2207. [propget, helpstring("property SearchDomain")]
  2208. HRESULT SearchDomain(
  2209. [out, retval] BSTR * pbstrDomain
  2210. );
  2211. }
  2212. [
  2213. object,
  2214. uuid(851278B2-9592-480f-8DB5-2DE86B26B54D),
  2215. helpstring("IRTCUserSearchResult interface"),
  2216. pointer_default(unique)
  2217. ]
  2218. interface IRTCUserSearchResult : IUnknown
  2219. {
  2220. [propget, id(1), helpstring("property Value")]
  2221. HRESULT Value(
  2222. [in] RTC_USER_SEARCH_COLUMN enColumn,
  2223. [out, retval] BSTR * pbstrValue
  2224. );
  2225. };
  2226. [
  2227. object,
  2228. uuid(83D4D877-AA5D-4a5b-8D0E-002A8067E0E8),
  2229. helpstring("IRTCEnumUserSearchResults interface"),
  2230. pointer_default(unique)
  2231. ]
  2232. interface IRTCEnumUserSearchResults : IUnknown
  2233. {
  2234. HRESULT Next(
  2235. [in] ULONG celt,
  2236. [out, size_is(celt)] IRTCUserSearchResult ** ppElements,
  2237. [in,out,ptr] ULONG * pceltFetched
  2238. );
  2239. HRESULT Reset( void );
  2240. HRESULT Skip (
  2241. [in] ULONG celt
  2242. );
  2243. HRESULT Clone (
  2244. [out, retval] IRTCEnumUserSearchResults ** ppEnum
  2245. );
  2246. }
  2247. [
  2248. object,
  2249. uuid(D8C8C3CD-7FAC-4088-81C5-C24CBC0938E3),
  2250. dual,
  2251. helpstring("IRTCUserSearchResultsEvent Interface"),
  2252. pointer_default(unique)
  2253. ]
  2254. interface IRTCUserSearchResultsEvent : IDispatch
  2255. {
  2256. [hidden, id(1), helpstring("method EnumerateResults")]
  2257. HRESULT EnumerateResults(
  2258. [out, retval] IRTCEnumUserSearchResults** ppEnum
  2259. );
  2260. [propget, id(2), helpstring("property Results")]
  2261. HRESULT Results(
  2262. [out, retval] IRTCCollection ** ppCollection
  2263. );
  2264. [propget, id(3), helpstring("property Profile")]
  2265. HRESULT Profile(
  2266. [out, retval] IRTCProfile2 ** ppProfile
  2267. );
  2268. [propget, id(4), helpstring("property Query")]
  2269. HRESULT Query(
  2270. [out, retval] IRTCUserSearchQuery ** ppQuery
  2271. );
  2272. [propget, id(5), helpstring("property Cookie")]
  2273. HRESULT Cookie(
  2274. [out, retval] LONG_PTR *plCookie
  2275. );
  2276. [propget, id(6), helpstring("property StatusCode")]
  2277. HRESULT StatusCode(
  2278. [out, retval] long * plStatusCode
  2279. );
  2280. [propget, id(7), helpstring("property MoreAvailable")]
  2281. HRESULT MoreAvailable(
  2282. [out, retval] VARIANT_BOOL * pfMoreAvailable
  2283. );
  2284. };
  2285. [
  2286. object,
  2287. uuid(3D8FC2CD-5D76-44AB-BB68-2A80353B34A2),
  2288. dual,
  2289. helpstring("IRTCSessionReferStatusEvent"),
  2290. pointer_default(unique)
  2291. ]
  2292. interface IRTCSessionReferStatusEvent : IDispatch
  2293. {
  2294. [propget, id(1), helpstring("property Session")]
  2295. HRESULT Session( [out, retval] IRTCSession2 ** ppSession );
  2296. [propget, id(2), helpstring("property ReferStatus")]
  2297. HRESULT ReferStatus( [out, retval] RTC_SESSION_REFER_STATUS * penReferStatus );
  2298. [propget, id(3), helpstring("property StatusCode")]
  2299. HRESULT StatusCode( [out, retval] long * plStatusCode );
  2300. [propget, id(4), helpstring("property StatusText")]
  2301. HRESULT StatusText( [out, retval] BSTR * pbstrStatusText );
  2302. };
  2303. [
  2304. object,
  2305. uuid(176A6828-4FCC-4F28-A862-04597A6CF1C4),
  2306. dual,
  2307. helpstring("IRTCSessionReferredEvent"),
  2308. pointer_default(unique)
  2309. ]
  2310. interface IRTCSessionReferredEvent : IDispatch
  2311. {
  2312. [propget, id(1), helpstring("property Session")]
  2313. HRESULT Session( [out, retval] IRTCSession2 ** ppSession );
  2314. [propget, id(2), helpstring("property ReferredByURI")]
  2315. HRESULT ReferredByURI( [out, retval] BSTR * pbstrReferredByURI );
  2316. [propget, id(3), helpstring("property ReferToURI")]
  2317. HRESULT ReferToURI( [out, retval] BSTR * pbstrReferoURI );
  2318. [propget, id(4), helpstring("property ReferCookie")]
  2319. HRESULT ReferCookie( [out, retval] BSTR * pbstrReferCookie );
  2320. [id(5), helpstring("method Accept")]
  2321. HRESULT Accept();
  2322. [id(6), helpstring("method Reject")]
  2323. HRESULT Reject();
  2324. [id(7), helpstring("method SetReferredSessionState")]
  2325. HRESULT SetReferredSessionState( [in] RTC_SESSION_STATE enState );
  2326. };
  2327. [
  2328. object,
  2329. uuid(BA7F518E-D336-4070-93A6-865395C843F9),
  2330. helpstring("IRTCSessionDescriptionManager Interface"),
  2331. oleautomation,
  2332. pointer_default(unique)
  2333. ]
  2334. interface IRTCSessionDescriptionManager : IUnknown
  2335. {
  2336. [id(1), helpstring("method EvaluateSessionDescription")]
  2337. HRESULT EvaluateSessionDescription(
  2338. [in] BSTR bstrContentType,
  2339. [in] BSTR bstrSessionDescription,
  2340. [in, out] VARIANT_BOOL *pfApplicationSession
  2341. );
  2342. };
  2343. [
  2344. object,
  2345. uuid(708C2AB7-8BF8-42f8-8C7D-635197AD5539),
  2346. hidden,
  2347. helpstring("IRTCEnumPresenceDevices interface"),
  2348. pointer_default(unique)
  2349. ]
  2350. interface IRTCEnumPresenceDevices : IUnknown
  2351. {
  2352. HRESULT Next(
  2353. [in] ULONG celt,
  2354. [out, size_is(celt)] IRTCPresenceDevice ** ppElements,
  2355. [in,out,ptr] ULONG * pceltFetched
  2356. );
  2357. HRESULT Reset( void );
  2358. HRESULT Skip (
  2359. [in] ULONG celt
  2360. );
  2361. HRESULT Clone (
  2362. [out, retval] IRTCEnumPresenceDevices ** ppEnum
  2363. );
  2364. }
  2365. [
  2366. object,
  2367. uuid(BC6A90DD-AD9A-48da-9B0C-2515E38521AD),
  2368. helpstring("IRTCPresenceDevice Interface"),
  2369. pointer_default(unique)
  2370. ]
  2371. interface IRTCPresenceDevice : IUnknown
  2372. {
  2373. [propget, helpstring("property Status")]
  2374. HRESULT Status([out, retval] RTC_PRESENCE_STATUS * penStatus);
  2375. [propget, helpstring("property Notes")]
  2376. HRESULT Notes([out, retval] BSTR * pbstrNotes);
  2377. [propget, helpstring("property PresenceProperty")]
  2378. HRESULT PresenceProperty([in] RTC_PRESENCE_PROPERTY enProperty, [out,retval] BSTR *pbstrProperty);
  2379. [helpstring("method GetPresenceData")]
  2380. HRESULT GetPresenceData([out] BSTR *pbstrNamespace, [out] BSTR *pbstrData);
  2381. };
  2382. [
  2383. uuid(cd260094-de10-4aee-ac73-ef87f6e12683),
  2384. version(1.2),
  2385. helpstring("RTCCore 1.2 Type Library")
  2386. ]
  2387. library RTCCORELib
  2388. {
  2389. importlib("stdole32.tlb");
  2390. interface IRTCProfile;
  2391. interface IRTCProfile2;
  2392. interface IRTCEnumProfiles;
  2393. interface IRTCSession;
  2394. interface IRTCSession2;
  2395. interface IRTCSessionCallControl;
  2396. interface IRTCParticipant;
  2397. interface IRTCEnumParticipants;
  2398. interface IRTCCollection;
  2399. interface IRTCBuddy;
  2400. interface IRTCBuddy2;
  2401. interface IRTCEnumBuddies;
  2402. interface IRTCWatcher;
  2403. interface IRTCWatcher2;
  2404. interface IRTCEnumWatchers;
  2405. interface IRTCBuddyGroup;
  2406. interface IRTCEnumGroups;
  2407. interface IRTCUserSearchQuery;
  2408. interface IRTCUserSearchResult;
  2409. interface IRTCEnumUserSearchResults;
  2410. interface IRTCEventNotification;
  2411. interface IRTCClientEvent;
  2412. interface IRTCRegistrationStateChangeEvent;
  2413. interface IRTCSessionStateChangeEvent;
  2414. interface IRTCSessionStateChangeEvent2;
  2415. interface IRTCSessionOperationCompleteEvent;
  2416. interface IRTCSessionOperationCompleteEvent2;
  2417. interface IRTCParticipantStateChangeEvent;
  2418. interface IRTCMediaEvent;
  2419. interface IRTCIntensityEvent;
  2420. interface IRTCMessagingEvent;
  2421. interface IRTCBuddyEvent;
  2422. interface IRTCBuddyEvent2;
  2423. interface IRTCWatcherEvent;
  2424. interface IRTCPortManager;
  2425. interface IRTCSessionPortManagement;
  2426. interface IRTCClientPortManagement;
  2427. interface IRTCWatcherEvent2;
  2428. interface IRTCBuddyGroupEvent;
  2429. interface IRTCProfileEvent;
  2430. interface IRTCProfileEvent2;
  2431. interface IRTCUserSearchResultsEvent;
  2432. interface IRTCInfoEvent;
  2433. interface IRTCRoamingEvent;
  2434. interface IRTCMediaRequestEvent;
  2435. interface IRTCReInviteEvent;
  2436. interface IRTCPresencePropertyEvent;
  2437. interface IRTCPresenceDataEvent;
  2438. interface IRTCPresenceStatusEvent;
  2439. interface IRTCSessionReferStatusEvent;
  2440. interface IRTCSessionReferredEvent;
  2441. interface IRTCSessionDescriptionManager;
  2442. interface IRTCEnumPresenceDevices;
  2443. interface IRTCPresenceDevice;
  2444. dispinterface IRTCDispatchEventNotification;
  2445. [
  2446. uuid(7a42ea29-a2b7-40c4-b091-f6f024aa89be),
  2447. helpstring("RTCClient Class")
  2448. ]
  2449. coclass RTCClient
  2450. {
  2451. [default] interface IRTCClient;
  2452. interface IRTCClient2;
  2453. interface IRTCClientPresence;
  2454. interface IRTCClientPresence2;
  2455. interface IRTCClientProvisioning;
  2456. interface IRTCClientProvisioning2;
  2457. interface IRTCUserSearch;
  2458. [default, source] dispinterface IRTCDispatchEventNotification;
  2459. [defaultvtable, source] interface IRTCEventNotification;
  2460. };
  2461. };