@@ -82,10 +82,10 @@ OnCreateEnvironmentCompleted(environment);
8282```
8383/// Specifies the network protocol type for port configuration.
8484[v1_enum]
85- typedef enum COREWEBVIEW2_NETWORK_PROTOCOL {
85+ typedef enum COREWEBVIEW2_TRANSPORT_PROTOCOL {
8686 /// User Datagram Protocol - fast, connectionless protocol.
87- COREWEBVIEW2_NETWORK_PROTOCOL_UDP ,
88- } COREWEBVIEW2_NETWORK_PROTOCOL ;
87+ COREWEBVIEW2_TRANSPORT_PROTOCOL_UDP ,
88+ } COREWEBVIEW2_TRANSPORT_PROTOCOL ;
8989
9090/// Additional options used to create WebView2 Environment to manage port range configuration.
9191[uuid(eaf22436-27a1-5e3d-a4e3-84d7e7a69a1a), object, pointer_default(unique)]
@@ -110,7 +110,7 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
110110 /// `maxPort` The maximum allowed port number (inclusive).
111111 ///
112112 HRESULT SetAllowedPortRange(
113- [in] COREWEBVIEW2_NETWORK_PROTOCOL protocol,
113+ [in] COREWEBVIEW2_TRANSPORT_PROTOCOL protocol,
114114 [in] INT32 minPort,
115115 [in] INT32 maxPort
116116 );
@@ -127,7 +127,7 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
127127 /// `maxPort` Receives the maximum allowed port number (inclusive).
128128 ///
129129 HRESULT GetAllowedPortRange(
130- [in] COREWEBVIEW2_NETWORK_PROTOCOL protocol,
130+ [in] COREWEBVIEW2_TRANSPORT_PROTOCOL protocol,
131131 [out] INT32* minPort,
132132 [out] INT32* maxPort
133133 );
@@ -140,7 +140,7 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
140140``` csharp
141141namespace Microsoft .Web .WebView2 .Core
142142{
143- enum CoreWebView2NetworkProtocol
143+ enum CoreWebView2TransportProtocol
144144 {
145145 Udp = 0 ,
146146 };
@@ -150,8 +150,8 @@ namespace Microsoft.Web.WebView2.Core
150150 [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2StagingEnvironmentOptions10" )]
151151 {
152152 // ICoreWebView2StagingEnvironmentOptions10 members
153- void SetAllowedPortRange(CoreWebView2NetworkProtocol protocol, Int32 minPort, Int32 maxPort);
154- void GetAllowedPortRange(CoreWebView2NetworkProtocol protocol, out Int32 minPort, out Int32 maxPort);
153+ void SetAllowedPortRange(CoreWebView2TransportProtocol protocol, Int32 minPort, Int32 maxPort);
154+ void GetAllowedPortRange(CoreWebView2TransportProtocol protocol, out Int32 minPort, out Int32 maxPort);
155155 }
156156 }
157157}
0 commit comments