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

HttpQueryServerSessionProperty

関数
サーバーセッションのプロパティを取得する。
DLLHTTPAPI.dll呼出規約winapi対応OSWindows Vista 以降

シグネチャ

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

DWORD HttpQueryServerSessionProperty(
    ULONGLONG ServerSessionId,
    HTTP_SERVER_PROPERTY Property,
    void* PropertyInformation,   // optional
    DWORD PropertyInformationLength,
    DWORD* ReturnLength   // optional
);

パラメーター

名前方向説明
ServerSessionIdULONGLONGinプロパティ設定を返す対象のサーバーセッション。
PropertyHTTP_SERVER_PROPERTYin

照会するプロパティの種類を示す HTTP_SERVER_PROPERTY 列挙体のメンバー。次のいずれかを指定できます。

プロパティ 意味
HttpServerStateProperty
サーバーセッションの現在の状態を照会します。
HttpServerTimeoutsProperty
サーバーセッションの接続タイムアウト制限を照会します。
HttpServerQosProperty
サーバーセッションの帯域幅スロットリングを照会します。既定では、HTTP Server API は帯域幅を制限しません。
HttpServerAuthenticationProperty
Basic、NTLM、Negotiate、Digest の各認証方式に対するカーネルモードのサーバー側認証を照会します。
HttpServerChannelBindProperty
チャネルバインディングトークン (CBT) のプロパティを照会します。
PropertyInformationvoid*outoptional

プロパティデータを受け取るバッファーへのポインター。

pPropertyInformation は、設定対象のプロパティに応じて次のいずれかのプロパティデータ構造体を指します。

プロパティ 構造体
HttpServerStateProperty HTTP_STATE_INFO
HttpServerQosProperty HTTP_QOS_SETTING_INFO
HttpServerTimeoutsProperty HTTP_TIMEOUT_LIMIT_INFO
HttpServerAuthenticationProperty HTTP_SERVER_AUTHENTICATION_INFO
HttpServerChannelBindProperty HTTP_CHANNEL_BIND_INFO
PropertyInformationLengthDWORDinpPropertyInformation パラメーターが指すバッファーの長さ (バイト単位)。
ReturnLengthDWORD*outoptional

pPropertyInformation バッファーに返されたバイト数。

出力バッファーが小さすぎる場合、呼び出しは失敗し、戻り値として ERROR_MORE_DATA が返されます。pReturnLength が指す値を使用すると、呼び出しを成功させるために必要なバッファーの最小長を判断できます。

戻り値の型: DWORD

公式ドキュメント

指定したサーバーセッションのサーバープロパティを照会します。

戻り値

関数が成功した場合は NO_ERROR を返します。

関数が失敗した場合は、次のいずれかのエラーコードを返します。

意味
ERROR_INVALID_PARAMETER
Property パラメーターで指定されたプロパティの種類は、サーバーセッションではサポートされていません。

ServerSessionId パラメーターが有効なサーバーセッションを含んでいません。

pPropertyInformation パラメーターが NULL です。

PropertyInformationLength パラメーターが 0 です。

アプリケーションにサーバーセッションのプロパティを照会する権限がありません。サーバーセッションのプロパティを照会できるのは、そのセッションを作成したアプリケーションのみです。

ERROR_MORE_DATA
pPropertyInformation パラメーターが指すバッファーのサイズ (バイト単位) が小さすぎて、プロパティデータを受け取れません。終了時に pReturnLength が指すサイズ以上のバッファーを用意して、関数を再度呼び出してください。

解説(Remarks)

HttpServerLoggingProperty の照会はサポートされていません。

pPropertyInformation パラメーターは、照会するプロパティの種類に対応する構成構造体を指します。PropertyInformationLength パラメーターは、その構成構造体のサイズ (バイト単位) を指定します。たとえば、HttpServerTimeoutsProperty を照会する場合、pPropertyInformation パラメーターは、少なくとも HTTP_TIMEOUT_LIMIT_INFO 構造体のサイズ以上のバッファーを指している必要があります。

pPropertyInformation パラメーターで HttpServerQosProperty プロパティを指定するには、HTTP_QOS_SETTING_INFO 構造体内の QosTypeHttpQosSettingTypeBandwidth を設定し、この構造体へのポインターをパラメーターに渡します。

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

各言語での呼び出し定義

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

DWORD HttpQueryServerSessionProperty(
    ULONGLONG ServerSessionId,
    HTTP_SERVER_PROPERTY Property,
    void* PropertyInformation,   // optional
    DWORD PropertyInformationLength,
    DWORD* ReturnLength   // optional
);
[DllImport("HTTPAPI.dll", ExactSpelling = true)]
static extern uint HttpQueryServerSessionProperty(
    ulong ServerSessionId,   // ULONGLONG
    int Property,   // HTTP_SERVER_PROPERTY
    IntPtr PropertyInformation,   // void* optional, out
    uint PropertyInformationLength,   // DWORD
    IntPtr ReturnLength   // DWORD* optional, out
);
<DllImport("HTTPAPI.dll", ExactSpelling:=True)>
Public Shared Function HttpQueryServerSessionProperty(
    ServerSessionId As ULong,   ' ULONGLONG
    [Property] As Integer,   ' HTTP_SERVER_PROPERTY
    PropertyInformation As IntPtr,   ' void* optional, out
    PropertyInformationLength As UInteger,   ' DWORD
    ReturnLength As IntPtr   ' DWORD* optional, out
) As UInteger
End Function
' ServerSessionId : ULONGLONG
' Property : HTTP_SERVER_PROPERTY
' PropertyInformation : void* optional, out
' PropertyInformationLength : DWORD
' ReturnLength : DWORD* optional, out
Declare PtrSafe Function HttpQueryServerSessionProperty Lib "httpapi" ( _
    ByVal ServerSessionId As LongLong, _
    ByVal Property As Long, _
    ByVal PropertyInformation As LongPtr, _
    ByVal PropertyInformationLength As Long, _
    ByVal ReturnLength As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

HttpQueryServerSessionProperty = ctypes.windll.httpapi.HttpQueryServerSessionProperty
HttpQueryServerSessionProperty.restype = wintypes.DWORD
HttpQueryServerSessionProperty.argtypes = [
    ctypes.c_ulonglong,  # ServerSessionId : ULONGLONG
    ctypes.c_int,  # Property : HTTP_SERVER_PROPERTY
    ctypes.POINTER(None),  # PropertyInformation : void* optional, out
    wintypes.DWORD,  # PropertyInformationLength : DWORD
    ctypes.POINTER(wintypes.DWORD),  # ReturnLength : DWORD* optional, out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('HTTPAPI.dll')
HttpQueryServerSessionProperty = Fiddle::Function.new(
  lib['HttpQueryServerSessionProperty'],
  [
    -Fiddle::TYPE_LONG_LONG,  # ServerSessionId : ULONGLONG
    Fiddle::TYPE_INT,  # Property : HTTP_SERVER_PROPERTY
    Fiddle::TYPE_VOIDP,  # PropertyInformation : void* optional, out
    -Fiddle::TYPE_INT,  # PropertyInformationLength : DWORD
    Fiddle::TYPE_VOIDP,  # ReturnLength : DWORD* optional, out
  ],
  -Fiddle::TYPE_INT)
#[link(name = "httpapi")]
extern "system" {
    fn HttpQueryServerSessionProperty(
        ServerSessionId: u64,  // ULONGLONG
        Property: i32,  // HTTP_SERVER_PROPERTY
        PropertyInformation: *mut (),  // void* optional, out
        PropertyInformationLength: u32,  // DWORD
        ReturnLength: *mut u32  // DWORD* optional, out
    ) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("HTTPAPI.dll")]
public static extern uint HttpQueryServerSessionProperty(ulong ServerSessionId, int Property, IntPtr PropertyInformation, uint PropertyInformationLength, IntPtr ReturnLength);
"@
$api = Add-Type -MemberDefinition $sig -Name 'HTTPAPI_HttpQueryServerSessionProperty' -Namespace Win32 -PassThru
# $api::HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
#uselib "HTTPAPI.dll"
#func global HttpQueryServerSessionProperty "HttpQueryServerSessionProperty" sptr, sptr, sptr, sptr, sptr
; HttpQueryServerSessionProperty ServerSessionId, Property, PropertyInformation, PropertyInformationLength, varptr(ReturnLength)   ; 戻り値は stat
; ServerSessionId : ULONGLONG -> "sptr"
; Property : HTTP_SERVER_PROPERTY -> "sptr"
; PropertyInformation : void* optional, out -> "sptr"
; PropertyInformationLength : DWORD -> "sptr"
; ReturnLength : DWORD* optional, out -> "sptr"
; ※HSP3.7は int64 引数(64bit値渡し)に非対応です。
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "HTTPAPI.dll"
#cfunc global HttpQueryServerSessionProperty "HttpQueryServerSessionProperty" int64, int, sptr, int, var
; res = HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
; ServerSessionId : ULONGLONG -> "int64"
; Property : HTTP_SERVER_PROPERTY -> "int"
; PropertyInformation : void* optional, out -> "sptr"
; PropertyInformationLength : DWORD -> "int"
; ReturnLength : DWORD* optional, out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
; ※int64 引数の DLL 値渡しは x64 ランタイム(hsp3_64)のみ対応(x86 は未対応)。
出力引数:
; DWORD HttpQueryServerSessionProperty(ULONGLONG ServerSessionId, HTTP_SERVER_PROPERTY Property, void* PropertyInformation, DWORD PropertyInformationLength, DWORD* ReturnLength)
#uselib "HTTPAPI.dll"
#cfunc global HttpQueryServerSessionProperty "HttpQueryServerSessionProperty" int64, int, intptr, int, var
; res = HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
; ServerSessionId : ULONGLONG -> "int64"
; Property : HTTP_SERVER_PROPERTY -> "int"
; PropertyInformation : void* optional, out -> "intptr"
; PropertyInformationLength : DWORD -> "int"
; ReturnLength : DWORD* optional, out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	httpapi = windows.NewLazySystemDLL("HTTPAPI.dll")
	procHttpQueryServerSessionProperty = httpapi.NewProc("HttpQueryServerSessionProperty")
)

// ServerSessionId (ULONGLONG), Property (HTTP_SERVER_PROPERTY), PropertyInformation (void* optional, out), PropertyInformationLength (DWORD), ReturnLength (DWORD* optional, out)
r1, _, err := procHttpQueryServerSessionProperty.Call(
	uintptr(ServerSessionId),
	uintptr(Property),
	uintptr(PropertyInformation),
	uintptr(PropertyInformationLength),
	uintptr(ReturnLength),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // DWORD
function HttpQueryServerSessionProperty(
  ServerSessionId: UInt64;   // ULONGLONG
  Property: Integer;   // HTTP_SERVER_PROPERTY
  PropertyInformation: Pointer;   // void* optional, out
  PropertyInformationLength: DWORD;   // DWORD
  ReturnLength: Pointer   // DWORD* optional, out
): DWORD; stdcall;
  external 'HTTPAPI.dll' name 'HttpQueryServerSessionProperty';
result := DllCall("HTTPAPI\HttpQueryServerSessionProperty"
    , "Int64", ServerSessionId   ; ULONGLONG
    , "Int", Property   ; HTTP_SERVER_PROPERTY
    , "Ptr", PropertyInformation   ; void* optional, out
    , "UInt", PropertyInformationLength   ; DWORD
    , "Ptr", ReturnLength   ; DWORD* optional, out
    , "UInt")   ; return: DWORD
●HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength) = DLL("HTTPAPI.dll", "dword HttpQueryServerSessionProperty(qword, int, void*, dword, void*)")
# 呼び出し: HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
# ServerSessionId : ULONGLONG -> "qword"
# Property : HTTP_SERVER_PROPERTY -> "int"
# PropertyInformation : void* optional, out -> "void*"
# PropertyInformationLength : DWORD -> "dword"
# ReturnLength : DWORD* optional, out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "httpapi" fn HttpQueryServerSessionProperty(
    ServerSessionId: u64, // ULONGLONG
    Property: i32, // HTTP_SERVER_PROPERTY
    PropertyInformation: ?*anyopaque, // void* optional, out
    PropertyInformationLength: u32, // DWORD
    ReturnLength: [*c]u32 // DWORD* optional, out
) callconv(std.os.windows.WINAPI) u32;
proc HttpQueryServerSessionProperty(
    ServerSessionId: uint64,  # ULONGLONG
    Property: int32,  # HTTP_SERVER_PROPERTY
    PropertyInformation: pointer,  # void* optional, out
    PropertyInformationLength: uint32,  # DWORD
    ReturnLength: ptr uint32  # DWORD* optional, out
): uint32 {.importc: "HttpQueryServerSessionProperty", stdcall, dynlib: "HTTPAPI.dll".}
pragma(lib, "httpapi");
extern(Windows)
uint HttpQueryServerSessionProperty(
    ulong ServerSessionId,   // ULONGLONG
    int Property,   // HTTP_SERVER_PROPERTY
    void* PropertyInformation,   // void* optional, out
    uint PropertyInformationLength,   // DWORD
    uint* ReturnLength   // DWORD* optional, out
);
ccall((:HttpQueryServerSessionProperty, "HTTPAPI.dll"), stdcall, UInt32,
      (UInt64, Int32, Ptr{Cvoid}, UInt32, Ptr{UInt32}),
      ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
# ServerSessionId : ULONGLONG -> UInt64
# Property : HTTP_SERVER_PROPERTY -> Int32
# PropertyInformation : void* optional, out -> Ptr{Cvoid}
# PropertyInformationLength : DWORD -> UInt32
# ReturnLength : DWORD* optional, out -> Ptr{UInt32}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
uint32_t HttpQueryServerSessionProperty(
    uint64_t ServerSessionId,
    int32_t Property,
    void* PropertyInformation,
    uint32_t PropertyInformationLength,
    uint32_t* ReturnLength);
]]
local httpapi = ffi.load("httpapi")
-- httpapi.HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
-- ServerSessionId : ULONGLONG
-- Property : HTTP_SERVER_PROPERTY
-- PropertyInformation : void* optional, out
-- PropertyInformationLength : DWORD
-- ReturnLength : DWORD* optional, out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('HTTPAPI.dll');
const HttpQueryServerSessionProperty = lib.func('__stdcall', 'HttpQueryServerSessionProperty', 'uint32_t', ['uint64_t', 'int32_t', 'void *', 'uint32_t', 'uint32_t *']);
// HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
// ServerSessionId : ULONGLONG -> 'uint64_t'
// Property : HTTP_SERVER_PROPERTY -> 'int32_t'
// PropertyInformation : void* optional, out -> 'void *'
// PropertyInformationLength : DWORD -> 'uint32_t'
// ReturnLength : DWORD* optional, out -> 'uint32_t *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("HTTPAPI.dll", {
  HttpQueryServerSessionProperty: { parameters: ["u64", "i32", "pointer", "u32", "pointer"], result: "u32" },
});
// lib.symbols.HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength)
// ServerSessionId : ULONGLONG -> "u64"
// Property : HTTP_SERVER_PROPERTY -> "i32"
// PropertyInformation : void* optional, out -> "pointer"
// PropertyInformationLength : DWORD -> "u32"
// ReturnLength : DWORD* optional, out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
uint32_t HttpQueryServerSessionProperty(
    uint64_t ServerSessionId,
    int32_t Property,
    void* PropertyInformation,
    uint32_t PropertyInformationLength,
    uint32_t* ReturnLength);
C, "HTTPAPI.dll");
// $ffi->HttpQueryServerSessionProperty(ServerSessionId, Property, PropertyInformation, PropertyInformationLength, ReturnLength);
// ServerSessionId : ULONGLONG
// Property : HTTP_SERVER_PROPERTY
// PropertyInformation : void* optional, out
// PropertyInformationLength : DWORD
// ReturnLength : DWORD* optional, out
// 構造体/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 HttpQueryServerSessionProperty(
        long ServerSessionId,   // ULONGLONG
        int Property,   // HTTP_SERVER_PROPERTY
        Pointer PropertyInformation,   // void* optional, out
        int PropertyInformationLength,   // DWORD
        IntByReference ReturnLength   // DWORD* optional, out
    );
}
@[Link("httpapi")]
lib LibHTTPAPI
  fun HttpQueryServerSessionProperty = HttpQueryServerSessionProperty(
    ServerSessionId : UInt64,   # ULONGLONG
    Property : Int32,   # HTTP_SERVER_PROPERTY
    PropertyInformation : Void*,   # void* optional, out
    PropertyInformationLength : UInt32,   # DWORD
    ReturnLength : UInt32*   # DWORD* optional, out
  ) : UInt32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef HttpQueryServerSessionPropertyNative = Uint32 Function(Uint64, Int32, Pointer<Void>, Uint32, Pointer<Uint32>);
typedef HttpQueryServerSessionPropertyDart = int Function(int, int, Pointer<Void>, int, Pointer<Uint32>);
final HttpQueryServerSessionProperty = DynamicLibrary.open('HTTPAPI.dll')
    .lookupFunction<HttpQueryServerSessionPropertyNative, HttpQueryServerSessionPropertyDart>('HttpQueryServerSessionProperty');
// ServerSessionId : ULONGLONG -> Uint64
// Property : HTTP_SERVER_PROPERTY -> Int32
// PropertyInformation : void* optional, out -> Pointer<Void>
// PropertyInformationLength : DWORD -> Uint32
// ReturnLength : DWORD* optional, out -> Pointer<Uint32>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function HttpQueryServerSessionProperty(
  ServerSessionId: UInt64;   // ULONGLONG
  Property: Integer;   // HTTP_SERVER_PROPERTY
  PropertyInformation: Pointer;   // void* optional, out
  PropertyInformationLength: DWORD;   // DWORD
  ReturnLength: Pointer   // DWORD* optional, out
): DWORD; stdcall;
  external 'HTTPAPI.dll' name 'HttpQueryServerSessionProperty';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "HttpQueryServerSessionProperty"
  c_HttpQueryServerSessionProperty :: Word64 -> Int32 -> Ptr () -> Word32 -> Ptr Word32 -> IO Word32
-- ServerSessionId : ULONGLONG -> Word64
-- Property : HTTP_SERVER_PROPERTY -> Int32
-- PropertyInformation : void* optional, out -> Ptr ()
-- PropertyInformationLength : DWORD -> Word32
-- ReturnLength : DWORD* optional, out -> Ptr Word32
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let httpqueryserversessionproperty =
  foreign "HttpQueryServerSessionProperty"
    (uint64_t @-> int32_t @-> (ptr void) @-> uint32_t @-> (ptr uint32_t) @-> returning uint32_t)
(* ServerSessionId : ULONGLONG -> uint64_t *)
(* Property : HTTP_SERVER_PROPERTY -> int32_t *)
(* PropertyInformation : void* optional, out -> (ptr void) *)
(* PropertyInformationLength : DWORD -> uint32_t *)
(* ReturnLength : DWORD* optional, out -> (ptr uint32_t) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library httpapi (t "HTTPAPI.dll"))
(cffi:use-foreign-library httpapi)

(cffi:defcfun ("HttpQueryServerSessionProperty" http-query-server-session-property :convention :stdcall) :uint32
  (server-session-id :uint64)   ; ULONGLONG
  (property :int32)   ; HTTP_SERVER_PROPERTY
  (property-information :pointer)   ; void* optional, out
  (property-information-length :uint32)   ; DWORD
  (return-length :pointer))   ; DWORD* optional, out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $HttpQueryServerSessionProperty = Win32::API::More->new('HTTPAPI',
    'DWORD HttpQueryServerSessionProperty(UINT64 ServerSessionId, int Property, LPVOID PropertyInformation, DWORD PropertyInformationLength, LPVOID ReturnLength)');
# my $ret = $HttpQueryServerSessionProperty->Call($ServerSessionId, $Property, $PropertyInformation, $PropertyInformationLength, $ReturnLength);
# ServerSessionId : ULONGLONG -> UINT64
# Property : HTTP_SERVER_PROPERTY -> int
# PropertyInformation : void* optional, out -> LPVOID
# PropertyInformationLength : DWORD -> DWORD
# ReturnLength : DWORD* optional, out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

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