本文整理汇总了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);
示例2: WinHttpOpenRequestWithCallback
public static extern SafeWinHttpHandleWithCallback WinHttpOpenRequestWithCallback(
SafeWinHttpHandle connectHandle,
string verb,
string objectName,
string version,
string referrer,
string acceptTypes,
uint flags);
示例3: DisposeAndClearHandle
public static void DisposeAndClearHandle(ref SafeWinHttpHandle safeHandle)
{
if (safeHandle != null)
{
safeHandle.Dispose();
safeHandle = null;
}
}
示例4: DisposeAndClearHandle
public static void DisposeAndClearHandle(ref SafeWinHttpHandle handle)
{
if (handle != null)
{
handle.Dispose();
handle = null;
}
}
示例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;
}
示例6: WinHttpWebSocketClose
public static extern uint WinHttpWebSocketClose(
SafeWinHttpHandle webSocketHandle,
ushort status,
IntPtr reason,
uint reasonLength);
示例7: WinHttpWebSocketShutdown
public static extern uint WinHttpWebSocketShutdown(
SafeWinHttpHandle webSocketHandle,
ushort status,
byte[] reason,
uint reasonLength);
示例8: WinHttpWriteData
public static extern bool WinHttpWriteData(
SafeWinHttpHandle requestHandle,
IntPtr buffer,
uint bufferSize,
out uint bytesWritten);
示例9: WinHttpQueryHeaders
public static extern bool WinHttpQueryHeaders(
SafeWinHttpHandle requestHandle,
uint infoLevel,
string name,
ref uint number,
ref uint bufferLength,
IntPtr index);
示例10: WinHttpQueryDataAvailable
public static extern bool WinHttpQueryDataAvailable(
SafeWinHttpHandle requestHandle,
out uint bytesAvailable);
示例11: WinHttpSetTimeouts
public static extern bool WinHttpSetTimeouts(
SafeWinHttpHandle handle,
int resolveTimeout,
int connectTimeout,
int sendTimeout,
int receiveTimeout);
示例12: WinHttpQueryOption
public static extern bool WinHttpQueryOption(
SafeWinHttpHandle handle,
uint option,
[Out] StringBuilder buffer,
ref uint bufferSize);
示例13: WinHttpSetCredentials
public static extern bool WinHttpSetCredentials(
SafeWinHttpHandle requestHandle,
uint authTargets,
uint authScheme,
string userName,
string password,
IntPtr reserved);
示例14: WinHttpQueryAuthSchemes
public static extern bool WinHttpQueryAuthSchemes(
SafeWinHttpHandle requestHandle,
out uint supportedSchemes,
out uint firstScheme,
out uint authTarget);
示例15: WinHttpSetOption
public static extern bool WinHttpSetOption(
SafeWinHttpHandle handle,
uint option,
IntPtr optionData,
uint optionLength);