Win32 API 日本語リファレンス
ホームNetworking.HttpServer › HttpSetServiceConfiguration

HttpSetServiceConfiguration

関数
HTTPサービスの構成設定を登録する。
DLLHTTPAPI.dll呼出規約winapi対応OSWindows XP 以降

シグネチャ

// HTTPAPI.dll
#include <windows.h>

DWORD HttpSetServiceConfiguration(
    HANDLE ServiceHandle,   // optional
    HTTP_SERVICE_CONFIG_ID ConfigId,
    void* pConfigInformation,
    DWORD ConfigInformationLength,
    OVERLAPPED* pOverlapped   // optional
);

パラメーター

名前方向説明
ServiceHandleHANDLEoptional予約されています。ゼロでなければなりません。
ConfigIdHTTP_SERVICE_CONFIG_IDin

設定する構成レコードの種類です。このパラメーターには、HTTP_SERVICE_CONFIG_ID 列挙体の次のいずれかの値を指定できます。

ConfigId の値 意味
HttpServiceConfigIPListenList
IP リッスン リストにレコードを設定します。
HttpServiceConfigSSLCertInfo
指定した SSL 証明書レコードを設定します。
HttpServiceConfigUrlAclInfo
URL 予約レコードを設定します。
HttpServiceConfigTimeout
HTTP Server API 全体に適用される接続タイムアウトを設定します。

Windows Vista 以降: この列挙値はサポートされています。

HttpServiceConfigSslSniCertInfo
指定した SSL Server Name Indication (SNI) 証明書レコードを設定します。

Windows 8 以降: この列挙値はサポートされています。

HttpServiceConfigSslCcsCertInfo
ポートが Transport Layer Security (TLS) ハンドシェイクを受信したときに、証明書を検索するため Http.sys が Centralized Certificate Store (CCS) ストアを参照すべきであることを指定する SSL 証明書レコードを設定します。ポートは、pConfigInformation パラメーターに渡す HTTP_SERVICE_CONFIG_SSL_CCS_SET 構造体の KeyDesc メンバーで指定します。

Windows 8 以降: この列挙値はサポートされています。

pConfigInformationvoid*in

設定するレコードの種類に応じた適切なデータを格納するバッファーへのポインターです。

ConfigId の値 意味
HttpServiceConfigIPListenList

HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM 構造体。

HttpServiceConfigSSLCertInfo

HTTP_SERVICE_CONFIG_SSL_SET 構造体。

HttpServiceConfigUrlAclInfo

HTTP_SERVICE_CONFIG_URLACL_SET 構造体。

HttpServiceConfigTimeout

HTTP_SERVICE_CONFIG_TIMEOUT_SET 構造体。

Windows Vista 以降: この構造体はサポートされています。

HttpServiceConfigSslSniCertInfo

HTTP_SERVICE_CONFIG_SSL_SNI_SET 構造体。SSL 集中証明書ストアが照会され、ワイルドカード バインディングが使用される場合、ホスト名は "*" になります。通常の SNI の場合はホスト名になります。

Windows 8 以降: この構造体はサポートされています。

HttpServiceConfigSslCcsCertInfo

HTTP_SERVICE_CONFIG_SSL_CCS_SET 構造体。

Windows 8 以降: この構造体はサポートされています。

ConfigInformationLengthDWORDinpConfigInformation バッファーのサイズ (バイト単位)。
pOverlappedOVERLAPPED*optionalこのパラメーターは予約されており、NULL でなければなりません。

戻り値の型: DWORD

公式ドキュメント

HTTP Server API の構成ストアに対する構成レコードを作成し、設定します。

戻り値

関数が成功した場合、戻り値は NO_ERROR です。

関数が失敗した場合、戻り値は次のいずれかのエラー コードです。

意味
ERROR_ALREADY_EXISTS
指定したレコードは既に存在します。値を再設定するには、そのレコードを削除する必要があります。
ERROR_INSUFFICIENT_BUFFER
ConfigInformationLength パラメーターで指定したバッファー サイズが不足しています。
ERROR_INVALID_HANDLE
ServiceHandle パラメーターが無効です。
ERROR_INVALID_PARAMETER
指定されたパラメーターのうち 1 つ以上が使用できない形式です。
ERROR_NO_SUCH_LOGON_SESSION
使用された SSL 証明書が無効です。これは HttpServiceConfigSSLCertInfo パラメーターを使用した場合にのみ発生します。
その他
WinError.h で定義されているシステム エラー コード

解説(Remarks)

HttpSetServiceConfiguration で設定した構成パラメーターは、マシン上のすべての HTTP Server API アプリケーションに適用され、HTTP Server API のシャットダウン時やコンピューターの再起動時にも保持されます。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での呼び出し定義

// HTTPAPI.dll
#include <windows.h>

DWORD HttpSetServiceConfiguration(
    HANDLE ServiceHandle,   // optional
    HTTP_SERVICE_CONFIG_ID ConfigId,
    void* pConfigInformation,
    DWORD ConfigInformationLength,
    OVERLAPPED* pOverlapped   // optional
);
[DllImport("HTTPAPI.dll", ExactSpelling = true)]
static extern uint HttpSetServiceConfiguration(
    IntPtr ServiceHandle,   // HANDLE optional
    int ConfigId,   // HTTP_SERVICE_CONFIG_ID
    IntPtr pConfigInformation,   // void*
    uint ConfigInformationLength,   // DWORD
    IntPtr pOverlapped   // OVERLAPPED* optional
);
<DllImport("HTTPAPI.dll", ExactSpelling:=True)>
Public Shared Function HttpSetServiceConfiguration(
    ServiceHandle As IntPtr,   ' HANDLE optional
    ConfigId As Integer,   ' HTTP_SERVICE_CONFIG_ID
    pConfigInformation As IntPtr,   ' void*
    ConfigInformationLength As UInteger,   ' DWORD
    pOverlapped As IntPtr   ' OVERLAPPED* optional
) As UInteger
End Function
' ServiceHandle : HANDLE optional
' ConfigId : HTTP_SERVICE_CONFIG_ID
' pConfigInformation : void*
' ConfigInformationLength : DWORD
' pOverlapped : OVERLAPPED* optional
Declare PtrSafe Function HttpSetServiceConfiguration Lib "httpapi" ( _
    ByVal ServiceHandle As LongPtr, _
    ByVal ConfigId As Long, _
    ByVal pConfigInformation As LongPtr, _
    ByVal ConfigInformationLength As Long, _
    ByVal pOverlapped As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

HttpSetServiceConfiguration = ctypes.windll.httpapi.HttpSetServiceConfiguration
HttpSetServiceConfiguration.restype = wintypes.DWORD
HttpSetServiceConfiguration.argtypes = [
    wintypes.HANDLE,  # ServiceHandle : HANDLE optional
    ctypes.c_int,  # ConfigId : HTTP_SERVICE_CONFIG_ID
    ctypes.POINTER(None),  # pConfigInformation : void*
    wintypes.DWORD,  # ConfigInformationLength : DWORD
    ctypes.c_void_p,  # pOverlapped : OVERLAPPED* optional
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('HTTPAPI.dll')
HttpSetServiceConfiguration = Fiddle::Function.new(
  lib['HttpSetServiceConfiguration'],
  [
    Fiddle::TYPE_VOIDP,  # ServiceHandle : HANDLE optional
    Fiddle::TYPE_INT,  # ConfigId : HTTP_SERVICE_CONFIG_ID
    Fiddle::TYPE_VOIDP,  # pConfigInformation : void*
    -Fiddle::TYPE_INT,  # ConfigInformationLength : DWORD
    Fiddle::TYPE_VOIDP,  # pOverlapped : OVERLAPPED* optional
  ],
  -Fiddle::TYPE_INT)
#[link(name = "httpapi")]
extern "system" {
    fn HttpSetServiceConfiguration(
        ServiceHandle: *mut core::ffi::c_void,  // HANDLE optional
        ConfigId: i32,  // HTTP_SERVICE_CONFIG_ID
        pConfigInformation: *mut (),  // void*
        ConfigInformationLength: u32,  // DWORD
        pOverlapped: *mut OVERLAPPED  // OVERLAPPED* optional
    ) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("HTTPAPI.dll")]
public static extern uint HttpSetServiceConfiguration(IntPtr ServiceHandle, int ConfigId, IntPtr pConfigInformation, uint ConfigInformationLength, IntPtr pOverlapped);
"@
$api = Add-Type -MemberDefinition $sig -Name 'HTTPAPI_HttpSetServiceConfiguration' -Namespace Win32 -PassThru
# $api::HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
#uselib "HTTPAPI.dll"
#func global HttpSetServiceConfiguration "HttpSetServiceConfiguration" sptr, sptr, sptr, sptr, sptr
; HttpSetServiceConfiguration ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, varptr(pOverlapped)   ; 戻り値は stat
; ServiceHandle : HANDLE optional -> "sptr"
; ConfigId : HTTP_SERVICE_CONFIG_ID -> "sptr"
; pConfigInformation : void* -> "sptr"
; ConfigInformationLength : DWORD -> "sptr"
; pOverlapped : OVERLAPPED* optional -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "HTTPAPI.dll"
#cfunc global HttpSetServiceConfiguration "HttpSetServiceConfiguration" sptr, int, sptr, int, var
; res = HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
; ServiceHandle : HANDLE optional -> "sptr"
; ConfigId : HTTP_SERVICE_CONFIG_ID -> "int"
; pConfigInformation : void* -> "sptr"
; ConfigInformationLength : DWORD -> "int"
; pOverlapped : OVERLAPPED* optional -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; DWORD HttpSetServiceConfiguration(HANDLE ServiceHandle, HTTP_SERVICE_CONFIG_ID ConfigId, void* pConfigInformation, DWORD ConfigInformationLength, OVERLAPPED* pOverlapped)
#uselib "HTTPAPI.dll"
#cfunc global HttpSetServiceConfiguration "HttpSetServiceConfiguration" intptr, int, intptr, int, var
; res = HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
; ServiceHandle : HANDLE optional -> "intptr"
; ConfigId : HTTP_SERVICE_CONFIG_ID -> "int"
; pConfigInformation : void* -> "intptr"
; ConfigInformationLength : DWORD -> "int"
; pOverlapped : OVERLAPPED* optional -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	httpapi = windows.NewLazySystemDLL("HTTPAPI.dll")
	procHttpSetServiceConfiguration = httpapi.NewProc("HttpSetServiceConfiguration")
)

// ServiceHandle (HANDLE optional), ConfigId (HTTP_SERVICE_CONFIG_ID), pConfigInformation (void*), ConfigInformationLength (DWORD), pOverlapped (OVERLAPPED* optional)
r1, _, err := procHttpSetServiceConfiguration.Call(
	uintptr(ServiceHandle),
	uintptr(ConfigId),
	uintptr(pConfigInformation),
	uintptr(ConfigInformationLength),
	uintptr(pOverlapped),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // DWORD
function HttpSetServiceConfiguration(
  ServiceHandle: THandle;   // HANDLE optional
  ConfigId: Integer;   // HTTP_SERVICE_CONFIG_ID
  pConfigInformation: Pointer;   // void*
  ConfigInformationLength: DWORD;   // DWORD
  pOverlapped: Pointer   // OVERLAPPED* optional
): DWORD; stdcall;
  external 'HTTPAPI.dll' name 'HttpSetServiceConfiguration';
result := DllCall("HTTPAPI\HttpSetServiceConfiguration"
    , "Ptr", ServiceHandle   ; HANDLE optional
    , "Int", ConfigId   ; HTTP_SERVICE_CONFIG_ID
    , "Ptr", pConfigInformation   ; void*
    , "UInt", ConfigInformationLength   ; DWORD
    , "Ptr", pOverlapped   ; OVERLAPPED* optional
    , "UInt")   ; return: DWORD
●HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped) = DLL("HTTPAPI.dll", "dword HttpSetServiceConfiguration(void*, int, void*, dword, void*)")
# 呼び出し: HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
# ServiceHandle : HANDLE optional -> "void*"
# ConfigId : HTTP_SERVICE_CONFIG_ID -> "int"
# pConfigInformation : void* -> "void*"
# ConfigInformationLength : DWORD -> "dword"
# pOverlapped : OVERLAPPED* optional -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "httpapi" fn HttpSetServiceConfiguration(
    ServiceHandle: ?*anyopaque, // HANDLE optional
    ConfigId: i32, // HTTP_SERVICE_CONFIG_ID
    pConfigInformation: ?*anyopaque, // void*
    ConfigInformationLength: u32, // DWORD
    pOverlapped: [*c]OVERLAPPED // OVERLAPPED* optional
) callconv(std.os.windows.WINAPI) u32;
proc HttpSetServiceConfiguration(
    ServiceHandle: pointer,  # HANDLE optional
    ConfigId: int32,  # HTTP_SERVICE_CONFIG_ID
    pConfigInformation: pointer,  # void*
    ConfigInformationLength: uint32,  # DWORD
    pOverlapped: ptr OVERLAPPED  # OVERLAPPED* optional
): uint32 {.importc: "HttpSetServiceConfiguration", stdcall, dynlib: "HTTPAPI.dll".}
pragma(lib, "httpapi");
extern(Windows)
uint HttpSetServiceConfiguration(
    void* ServiceHandle,   // HANDLE optional
    int ConfigId,   // HTTP_SERVICE_CONFIG_ID
    void* pConfigInformation,   // void*
    uint ConfigInformationLength,   // DWORD
    OVERLAPPED* pOverlapped   // OVERLAPPED* optional
);
ccall((:HttpSetServiceConfiguration, "HTTPAPI.dll"), stdcall, UInt32,
      (Ptr{Cvoid}, Int32, Ptr{Cvoid}, UInt32, Ptr{OVERLAPPED}),
      ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
# ServiceHandle : HANDLE optional -> Ptr{Cvoid}
# ConfigId : HTTP_SERVICE_CONFIG_ID -> Int32
# pConfigInformation : void* -> Ptr{Cvoid}
# ConfigInformationLength : DWORD -> UInt32
# pOverlapped : OVERLAPPED* optional -> Ptr{OVERLAPPED}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
uint32_t HttpSetServiceConfiguration(
    void* ServiceHandle,
    int32_t ConfigId,
    void* pConfigInformation,
    uint32_t ConfigInformationLength,
    void* pOverlapped);
]]
local httpapi = ffi.load("httpapi")
-- httpapi.HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
-- ServiceHandle : HANDLE optional
-- ConfigId : HTTP_SERVICE_CONFIG_ID
-- pConfigInformation : void*
-- ConfigInformationLength : DWORD
-- pOverlapped : OVERLAPPED* optional
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('HTTPAPI.dll');
const HttpSetServiceConfiguration = lib.func('__stdcall', 'HttpSetServiceConfiguration', 'uint32_t', ['void *', 'int32_t', 'void *', 'uint32_t', 'void *']);
// HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
// ServiceHandle : HANDLE optional -> 'void *'
// ConfigId : HTTP_SERVICE_CONFIG_ID -> 'int32_t'
// pConfigInformation : void* -> 'void *'
// ConfigInformationLength : DWORD -> 'uint32_t'
// pOverlapped : OVERLAPPED* optional -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("HTTPAPI.dll", {
  HttpSetServiceConfiguration: { parameters: ["pointer", "i32", "pointer", "u32", "pointer"], result: "u32" },
});
// lib.symbols.HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped)
// ServiceHandle : HANDLE optional -> "pointer"
// ConfigId : HTTP_SERVICE_CONFIG_ID -> "i32"
// pConfigInformation : void* -> "pointer"
// ConfigInformationLength : DWORD -> "u32"
// pOverlapped : OVERLAPPED* optional -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
uint32_t HttpSetServiceConfiguration(
    void* ServiceHandle,
    int32_t ConfigId,
    void* pConfigInformation,
    uint32_t ConfigInformationLength,
    void* pOverlapped);
C, "HTTPAPI.dll");
// $ffi->HttpSetServiceConfiguration(ServiceHandle, ConfigId, pConfigInformation, ConfigInformationLength, pOverlapped);
// ServiceHandle : HANDLE optional
// ConfigId : HTTP_SERVICE_CONFIG_ID
// pConfigInformation : void*
// ConfigInformationLength : DWORD
// pOverlapped : OVERLAPPED* optional
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Httpapi extends StdCallLibrary {
    Httpapi INSTANCE = Native.load("httpapi", Httpapi.class);
    int HttpSetServiceConfiguration(
        Pointer ServiceHandle,   // HANDLE optional
        int ConfigId,   // HTTP_SERVICE_CONFIG_ID
        Pointer pConfigInformation,   // void*
        int ConfigInformationLength,   // DWORD
        Pointer pOverlapped   // OVERLAPPED* optional
    );
}
@[Link("httpapi")]
lib LibHTTPAPI
  fun HttpSetServiceConfiguration = HttpSetServiceConfiguration(
    ServiceHandle : Void*,   # HANDLE optional
    ConfigId : Int32,   # HTTP_SERVICE_CONFIG_ID
    pConfigInformation : Void*,   # void*
    ConfigInformationLength : UInt32,   # DWORD
    pOverlapped : OVERLAPPED*   # OVERLAPPED* optional
  ) : UInt32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef HttpSetServiceConfigurationNative = Uint32 Function(Pointer<Void>, Int32, Pointer<Void>, Uint32, Pointer<Void>);
typedef HttpSetServiceConfigurationDart = int Function(Pointer<Void>, int, Pointer<Void>, int, Pointer<Void>);
final HttpSetServiceConfiguration = DynamicLibrary.open('HTTPAPI.dll')
    .lookupFunction<HttpSetServiceConfigurationNative, HttpSetServiceConfigurationDart>('HttpSetServiceConfiguration');
// ServiceHandle : HANDLE optional -> Pointer<Void>
// ConfigId : HTTP_SERVICE_CONFIG_ID -> Int32
// pConfigInformation : void* -> Pointer<Void>
// ConfigInformationLength : DWORD -> Uint32
// pOverlapped : OVERLAPPED* optional -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function HttpSetServiceConfiguration(
  ServiceHandle: THandle;   // HANDLE optional
  ConfigId: Integer;   // HTTP_SERVICE_CONFIG_ID
  pConfigInformation: Pointer;   // void*
  ConfigInformationLength: DWORD;   // DWORD
  pOverlapped: Pointer   // OVERLAPPED* optional
): DWORD; stdcall;
  external 'HTTPAPI.dll' name 'HttpSetServiceConfiguration';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "HttpSetServiceConfiguration"
  c_HttpSetServiceConfiguration :: Ptr () -> Int32 -> Ptr () -> Word32 -> Ptr () -> IO Word32
-- ServiceHandle : HANDLE optional -> Ptr ()
-- ConfigId : HTTP_SERVICE_CONFIG_ID -> Int32
-- pConfigInformation : void* -> Ptr ()
-- ConfigInformationLength : DWORD -> Word32
-- pOverlapped : OVERLAPPED* optional -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let httpsetserviceconfiguration =
  foreign "HttpSetServiceConfiguration"
    ((ptr void) @-> int32_t @-> (ptr void) @-> uint32_t @-> (ptr void) @-> returning uint32_t)
(* ServiceHandle : HANDLE optional -> (ptr void) *)
(* ConfigId : HTTP_SERVICE_CONFIG_ID -> int32_t *)
(* pConfigInformation : void* -> (ptr void) *)
(* ConfigInformationLength : DWORD -> uint32_t *)
(* pOverlapped : OVERLAPPED* optional -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library httpapi (t "HTTPAPI.dll"))
(cffi:use-foreign-library httpapi)

(cffi:defcfun ("HttpSetServiceConfiguration" http-set-service-configuration :convention :stdcall) :uint32
  (service-handle :pointer)   ; HANDLE optional
  (config-id :int32)   ; HTTP_SERVICE_CONFIG_ID
  (p-config-information :pointer)   ; void*
  (config-information-length :uint32)   ; DWORD
  (p-overlapped :pointer))   ; OVERLAPPED* optional
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $HttpSetServiceConfiguration = Win32::API::More->new('HTTPAPI',
    'DWORD HttpSetServiceConfiguration(HANDLE ServiceHandle, int ConfigId, LPVOID pConfigInformation, DWORD ConfigInformationLength, LPVOID pOverlapped)');
# my $ret = $HttpSetServiceConfiguration->Call($ServiceHandle, $ConfigId, $pConfigInformation, $ConfigInformationLength, $pOverlapped);
# ServiceHandle : HANDLE optional -> HANDLE
# ConfigId : HTTP_SERVICE_CONFIG_ID -> int
# pConfigInformation : void* -> LPVOID
# ConfigInformationLength : DWORD -> DWORD
# pOverlapped : OVERLAPPED* optional -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

公式の関連項目
使用する型