HttpCancelHttpRequest function

The HttpCancelHttpRequest function cancels a specified reqest.

Syntax

HTTPAPI_LINKAGE ULONG HttpCancelHttpRequest(
  IN HANDLE          RequestQueueHandle,
  IN HTTP_REQUEST_ID RequestId,
  IN LPOVERLAPPED    Overlapped
);

Parameters

RequestQueueHandle

A handle to the request queue from which the request came.

RequestId

The ID of the request to be canceled.

Overlapped

For asynchronous calls, set pOverlapped to point to an OVERLAPPED structure; for synchronous calls, set it to NULL.

Return Value

If the function succeeds, it returns NO_ERROR.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header http.h
Library Httpapi.lib
DLL Httpapi.dll

See Also

HTTP Server API Version 2.0 Functions

Processing Requests