当前位置: 首页>>代码示例>>C#>>正文


C# SafeWinHttpHandle类代码示例

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


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


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