C# Class Interop.WinHttp

Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
WinHttpAddRequestHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, StringBuilder headers, uint headersLength, uint modifiers ) : bool
WinHttpAddRequestHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, string headers, uint headersLength, uint modifiers ) : bool
WinHttpCloseHandle ( IntPtr sessionHandle ) : bool
WinHttpConnect ( Interop.WinHttp.SafeWinHttpHandle, sessionHandle, string serverName, ushort serverPort, uint reserved ) : Interop.WinHttp.SafeWinHttpHandle,
WinHttpGetIEProxyConfigForCurrentUser ( Interop, &proxyConfig ) : bool
WinHttpGetProxyForUrl ( Interop.WinHttp.SafeWinHttpHandle, sessionHandle, string url, Interop, &autoProxyOptions, Interop, &proxyInfo ) : bool
WinHttpOpen ( IntPtr userAgent, uint accessType, string proxyName, string proxyBypass, uint flags ) : Interop.WinHttp.SafeWinHttpHandle,
WinHttpOpenRequest ( Interop.WinHttp.SafeWinHttpHandle, connectHandle, string verb, string objectName, string version, string referrer, string acceptTypes, uint flags ) : Interop.WinHttp.SafeWinHttpHandle,
WinHttpQueryAuthSchemes ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint &supportedSchemes, uint &firstScheme, uint &authTarget ) : bool
WinHttpQueryDataAvailable ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr bytesAvailableShouldBeNullForAsync ) : bool
WinHttpQueryHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint infoLevel, string name, IntPtr buffer, uint &bufferLength, uint &index ) : bool
WinHttpQueryHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint infoLevel, string name, uint &number, uint &bufferLength, IntPtr index ) : bool
WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, IntPtr &buffer, uint &bufferSize ) : bool
WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, StringBuilder buffer, uint &bufferSize ) : bool
WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, uint &buffer, uint &bufferSize ) : bool
WinHttpReadData ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr buffer, uint bufferSize, IntPtr bytesReadShouldBeNullForAsync ) : bool
WinHttpReceiveResponse ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr reserved ) : bool
WinHttpSendRequest ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, StringBuilder headers, uint headersLength, IntPtr optional, uint optionalLength, uint totalLength, IntPtr context ) : bool
WinHttpSetCredentials ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint authTargets, uint authScheme, string userName, string password, IntPtr reserved ) : bool
WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, IntPtr optionData, uint optionLength ) : bool
WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, string optionData, uint optionLength ) : bool
WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, uint &optionData, uint optionLength = sizeof(uint) ) : bool
WinHttpSetStatusCallback ( Interop.WinHttp.SafeWinHttpHandle, handle, Interop, callback, uint notificationFlags, IntPtr reserved ) : IntPtr
WinHttpSetTimeouts ( Interop.WinHttp.SafeWinHttpHandle, handle, int resolveTimeout, int connectTimeout, int sendTimeout, int receiveTimeout ) : bool
WinHttpWriteData ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr buffer, uint bufferSize, IntPtr bytesWrittenShouldBeNullForAsync ) : bool

Private Methods

Method Description
CopyToBufferOrFailIfInsufficientBufferLength ( string value, IntPtr buffer, uint &bufferLength ) : bool

Method Details

WinHttpAddRequestHeaders() public static method

public static WinHttpAddRequestHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, StringBuilder headers, uint headersLength, uint modifiers ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
headers StringBuilder
headersLength uint
modifiers uint
return bool

WinHttpAddRequestHeaders() public static method

public static WinHttpAddRequestHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, string headers, uint headersLength, uint modifiers ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
headers string
headersLength uint
modifiers uint
return bool

WinHttpCloseHandle() public static method

public static WinHttpCloseHandle ( IntPtr sessionHandle ) : bool
sessionHandle IntPtr
return bool

WinHttpConnect() public static method

public static WinHttpConnect ( Interop.WinHttp.SafeWinHttpHandle, sessionHandle, string serverName, ushort serverPort, uint reserved ) : Interop.WinHttp.SafeWinHttpHandle,
sessionHandle Interop.WinHttp.SafeWinHttpHandle,
serverName string
serverPort ushort
reserved uint
return Interop.WinHttp.SafeWinHttpHandle,

WinHttpGetIEProxyConfigForCurrentUser() public static method

public static WinHttpGetIEProxyConfigForCurrentUser ( Interop, &proxyConfig ) : bool
proxyConfig Interop,
return bool

WinHttpGetProxyForUrl() public static method

public static WinHttpGetProxyForUrl ( Interop.WinHttp.SafeWinHttpHandle, sessionHandle, string url, Interop, &autoProxyOptions, Interop, &proxyInfo ) : bool
sessionHandle Interop.WinHttp.SafeWinHttpHandle,
url string
autoProxyOptions Interop,
proxyInfo Interop,
return bool

WinHttpOpen() public static method

public static WinHttpOpen ( IntPtr userAgent, uint accessType, string proxyName, string proxyBypass, uint flags ) : Interop.WinHttp.SafeWinHttpHandle,
userAgent IntPtr
accessType uint
proxyName string
proxyBypass string
flags uint
return Interop.WinHttp.SafeWinHttpHandle,

WinHttpOpenRequest() public static method

public static WinHttpOpenRequest ( Interop.WinHttp.SafeWinHttpHandle, connectHandle, string verb, string objectName, string version, string referrer, string acceptTypes, uint flags ) : Interop.WinHttp.SafeWinHttpHandle,
connectHandle Interop.WinHttp.SafeWinHttpHandle,
verb string
objectName string
version string
referrer string
acceptTypes string
flags uint
return Interop.WinHttp.SafeWinHttpHandle,

WinHttpQueryAuthSchemes() public static method

public static WinHttpQueryAuthSchemes ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint &supportedSchemes, uint &firstScheme, uint &authTarget ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
supportedSchemes uint
firstScheme uint
authTarget uint
return bool

WinHttpQueryDataAvailable() public static method

public static WinHttpQueryDataAvailable ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr bytesAvailableShouldBeNullForAsync ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
bytesAvailableShouldBeNullForAsync IntPtr
return bool

WinHttpQueryHeaders() public static method

public static WinHttpQueryHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint infoLevel, string name, IntPtr buffer, uint &bufferLength, uint &index ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
infoLevel uint
name string
buffer IntPtr
bufferLength uint
index uint
return bool

WinHttpQueryHeaders() public static method

public static WinHttpQueryHeaders ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint infoLevel, string name, uint &number, uint &bufferLength, IntPtr index ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
infoLevel uint
name string
number uint
bufferLength uint
index IntPtr
return bool

WinHttpQueryOption() public static method

public static WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, IntPtr &buffer, uint &bufferSize ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
buffer IntPtr
bufferSize uint
return bool

WinHttpQueryOption() public static method

public static WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, StringBuilder buffer, uint &bufferSize ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
buffer StringBuilder
bufferSize uint
return bool

WinHttpQueryOption() public static method

public static WinHttpQueryOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, uint &buffer, uint &bufferSize ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
buffer uint
bufferSize uint
return bool

WinHttpReadData() public static method

public static WinHttpReadData ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr buffer, uint bufferSize, IntPtr bytesReadShouldBeNullForAsync ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
buffer IntPtr
bufferSize uint
bytesReadShouldBeNullForAsync IntPtr
return bool

WinHttpReceiveResponse() public static method

public static WinHttpReceiveResponse ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr reserved ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
reserved IntPtr
return bool

WinHttpSendRequest() public static method

public static WinHttpSendRequest ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, StringBuilder headers, uint headersLength, IntPtr optional, uint optionalLength, uint totalLength, IntPtr context ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
headers StringBuilder
headersLength uint
optional IntPtr
optionalLength uint
totalLength uint
context IntPtr
return bool

WinHttpSetCredentials() public static method

public static WinHttpSetCredentials ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, uint authTargets, uint authScheme, string userName, string password, IntPtr reserved ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
authTargets uint
authScheme uint
userName string
password string
reserved IntPtr
return bool

WinHttpSetOption() public static method

public static WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, IntPtr optionData, uint optionLength ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
optionData IntPtr
optionLength uint
return bool

WinHttpSetOption() public static method

public static WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, string optionData, uint optionLength ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
optionData string
optionLength uint
return bool

WinHttpSetOption() public static method

public static WinHttpSetOption ( Interop.WinHttp.SafeWinHttpHandle, handle, uint option, uint &optionData, uint optionLength = sizeof(uint) ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
option uint
optionData uint
optionLength uint
return bool

WinHttpSetStatusCallback() public static method

public static WinHttpSetStatusCallback ( Interop.WinHttp.SafeWinHttpHandle, handle, Interop, callback, uint notificationFlags, IntPtr reserved ) : IntPtr
handle Interop.WinHttp.SafeWinHttpHandle,
callback Interop,
notificationFlags uint
reserved IntPtr
return IntPtr

WinHttpSetTimeouts() public static method

public static WinHttpSetTimeouts ( Interop.WinHttp.SafeWinHttpHandle, handle, int resolveTimeout, int connectTimeout, int sendTimeout, int receiveTimeout ) : bool
handle Interop.WinHttp.SafeWinHttpHandle,
resolveTimeout int
connectTimeout int
sendTimeout int
receiveTimeout int
return bool

WinHttpWriteData() public static method

public static WinHttpWriteData ( Interop.WinHttp.SafeWinHttpHandle, requestHandle, IntPtr buffer, uint bufferSize, IntPtr bytesWrittenShouldBeNullForAsync ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle,
buffer IntPtr
bufferSize uint
bytesWrittenShouldBeNullForAsync IntPtr
return bool