HttpControlService function

Queries or controls the state of the service.

Syntax

ULONG HttpControlService(
  _In_  PHTTP_MGMT_ROOT_INFO InputRecordsBuffer,
  _In_  ULONG                InputBufferLength,
  _Out_ PVOID                OutputRecordsBuffer,
  _In_  ULONG                OutputBufferLength,
  _Out_ PULONG               BytesReturned
);

Parameters

  • InputRecordsBuffer [in]
    The management root info buffer.

  • InputBufferLength [in]
    The size of the input buffer.

  • OutputRecordsBuffer [out]
    On success, returns the query data in the output buffer.

  • OutputBufferLength [in]
    The size of the output buffer.

  • BytesReturned [out]
    On success, returns the size of the data copied; if the output buffer is too small, returns the size needed.

Return value

If the function succeeds, it returns NO_ERROR.

Otherwise, it returns a system error code defined in WinError.h

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Http.h

Library

Httpapi.lib

DLL

Httpapi.dll