• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SafeWinHttpHandle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SafeWinHttpHandle的典型用法代码示例。如果您正苦于以下问题:C# SafeWinHttpHandle类的具体用法?C# SafeWinHttpHandle怎么用?C# SafeWinHttpHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SafeWinHttpHandle类属于命名空间,在下文中一共展示了SafeWinHttpHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: WinHttpSendRequest

 public static extern bool WinHttpSendRequest(
     SafeWinHttpHandle requestHandle,
     [In] StringBuilder headers,
     uint headersLength,
     IntPtr optional,
     uint optionalLength,
     uint totalLength,
     IntPtr context);
开发者ID:noahfalk,项目名称:corefx,代码行数:8,代码来源:Interop.winhttp.cs


示例2: WinHttpOpenRequestWithCallback

 public static extern SafeWinHttpHandleWithCallback WinHttpOpenRequestWithCallback(
     SafeWinHttpHandle connectHandle,
     string verb,
     string objectName,
     string version,
     string referrer,
     string acceptTypes,
     uint flags);
开发者ID:noahfalk,项目名称:corefx,代码行数:8,代码来源:Interop.winhttp.cs


示例3: DisposeAndClearHandle

 public static void DisposeAndClearHandle(ref SafeWinHttpHandle safeHandle)
 {
     if (safeHandle != null)
     {
         safeHandle.Dispose();
         safeHandle = null;
     }
 }
开发者ID:er0dr1guez,项目名称:corefx,代码行数:8,代码来源:Interop.SafeWinHttpHandle.cs


示例4: DisposeAndClearHandle

 public static void DisposeAndClearHandle(ref SafeWinHttpHandle handle)
 {
     if (handle != null)
     {
         handle.Dispose();
         handle = null;
     }
 }
开发者ID:peterblazejewicz,项目名称:corefx,代码行数:8,代码来源:Interop.SafeWinHttpHandle.cs


示例5: SetParentHandle

            public void SetParentHandle(SafeWinHttpHandle parentHandle)
            {
                Debug.Assert(_parentHandle == null);
                Debug.Assert(parentHandle != null);
                Debug.Assert(!parentHandle.IsInvalid);

                bool ignore = false;
                parentHandle.DangerousAddRef(ref ignore);
                
                _parentHandle = parentHandle;
            }
开发者ID:er0dr1guez,项目名称:corefx,代码行数:11,代码来源:Interop.SafeWinHttpHandle.cs


示例6: WinHttpWebSocketClose

 public static extern uint WinHttpWebSocketClose(
     SafeWinHttpHandle webSocketHandle,
     ushort status,
     IntPtr reason,
     uint reasonLength);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例7: WinHttpWebSocketShutdown

 public static extern uint WinHttpWebSocketShutdown(
     SafeWinHttpHandle webSocketHandle,
     ushort status,
     byte[] reason,
     uint reasonLength);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例8: WinHttpWriteData

 public static extern bool WinHttpWriteData(
     SafeWinHttpHandle requestHandle,
     IntPtr buffer,
     uint bufferSize,
     out uint bytesWritten);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例9: WinHttpQueryHeaders

 public static extern bool WinHttpQueryHeaders(
     SafeWinHttpHandle requestHandle,
     uint infoLevel,
     string name,
     ref uint number,
     ref uint bufferLength,
     IntPtr index);
开发者ID:noahfalk,项目名称:corefx,代码行数:7,代码来源:Interop.winhttp.cs


示例10: WinHttpQueryDataAvailable

 public static extern bool WinHttpQueryDataAvailable(
     SafeWinHttpHandle requestHandle,
     out uint bytesAvailable);
开发者ID:noahfalk,项目名称:corefx,代码行数:3,代码来源:Interop.winhttp.cs


示例11: WinHttpSetTimeouts

 public static extern bool WinHttpSetTimeouts(
     SafeWinHttpHandle handle,
     int resolveTimeout,
     int connectTimeout,
     int sendTimeout,
     int receiveTimeout);
开发者ID:noahfalk,项目名称:corefx,代码行数:6,代码来源:Interop.winhttp.cs


示例12: WinHttpQueryOption

 public static extern bool WinHttpQueryOption(
     SafeWinHttpHandle handle,
     uint option,
     [Out] StringBuilder buffer,
     ref uint bufferSize);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例13: WinHttpSetCredentials

 public static extern bool WinHttpSetCredentials(
     SafeWinHttpHandle requestHandle,
     uint authTargets,
     uint authScheme,
     string userName,
     string password,
     IntPtr reserved);
开发者ID:noahfalk,项目名称:corefx,代码行数:7,代码来源:Interop.winhttp.cs


示例14: WinHttpQueryAuthSchemes

 public static extern bool WinHttpQueryAuthSchemes(
     SafeWinHttpHandle requestHandle,
     out uint supportedSchemes,
     out uint firstScheme,
     out uint authTarget);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例15: WinHttpSetOption

 public static extern bool WinHttpSetOption(
     SafeWinHttpHandle handle,
     uint option,
     IntPtr optionData,
     uint optionLength);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例16: WinHttpWebSocketQueryCloseStatus

 public static extern uint WinHttpWebSocketQueryCloseStatus(
     SafeWinHttpHandle webSocketHandle,
     out ushort status,
     byte[] reason,
     uint reasonLength,
     out uint reasonLengthConsumed);
开发者ID:noahfalk,项目名称:corefx,代码行数:6,代码来源:Interop.winhttp.cs


示例17: WinHttpGetProxyForUrl

 public static extern bool WinHttpGetProxyForUrl(
     SafeWinHttpHandle sessionHandle, string url,
     ref WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions,
     out WINHTTP_PROXY_INFO proxyInfo);
开发者ID:noahfalk,项目名称:corefx,代码行数:4,代码来源:Interop.winhttp.cs


示例18: WinHttpConnectWithCallback

 public static extern SafeWinHttpHandleWithCallback WinHttpConnectWithCallback(
     SafeWinHttpHandle sessionHandle,
     string serverName,
     ushort serverPort,
     uint reserved);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例19: WinHttpSetStatusCallback

 public static extern IntPtr WinHttpSetStatusCallback(
     SafeWinHttpHandle handle,
     WINHTTP_STATUS_CALLBACK callback,
     uint notificationFlags,
     IntPtr reserved);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs


示例20: WinHttpAddRequestHeaders

 public static extern bool WinHttpAddRequestHeaders(
     SafeWinHttpHandle requestHandle,
     string headers,
     uint headersLength,
     uint modifiers);
开发者ID:noahfalk,项目名称:corefx,代码行数:5,代码来源:Interop.winhttp.cs



注:本文中的SafeWinHttpHandle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SalesOrderItemBuilder类代码示例发布时间:2022-05-24
下一篇:
C# SafeObjectHandle类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap