ホーム › NetworkManagement.P2P › PeerDistClientStreamRead
PeerDistClientStreamRead
関数クライアントのコンテンツからストリームを読み取る。
シグネチャ
// PeerDist.dll
#include <windows.h>
DWORD PeerDistClientStreamRead(
INT_PTR hPeerDist,
INT_PTR hContentHandle,
DWORD cbMaxNumberOfBytes,
BYTE* pBuffer, // optional
DWORD dwTimeoutInMilliseconds,
OVERLAPPED* lpOverlapped
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| hPeerDist | INT_PTR | in | 対象のPeerDistセッションのハンドル。 |
| hContentHandle | INT_PTR | in | ストリーム読み取り対象のコンテンツハンドル。 |
| cbMaxNumberOfBytes | DWORD | in | pBufferが受け取れる最大バイト数。 |
| pBuffer | BYTE* | outoptional | 読み取ったストリームデータを格納する出力バッファへのポインタ。 |
| dwTimeoutInMilliseconds | DWORD | in | 読み取りのタイムアウト時間(ミリ秒)。 |
| lpOverlapped | OVERLAPPED* | in | 非同期操作に使用するOVERLAPPED構造体へのポインタ。 |
戻り値の型: DWORD
各言語での呼び出し定義
// PeerDist.dll
#include <windows.h>
DWORD PeerDistClientStreamRead(
INT_PTR hPeerDist,
INT_PTR hContentHandle,
DWORD cbMaxNumberOfBytes,
BYTE* pBuffer, // optional
DWORD dwTimeoutInMilliseconds,
OVERLAPPED* lpOverlapped
);[DllImport("PeerDist.dll", ExactSpelling = true)]
static extern uint PeerDistClientStreamRead(
IntPtr hPeerDist, // INT_PTR
IntPtr hContentHandle, // INT_PTR
uint cbMaxNumberOfBytes, // DWORD
IntPtr pBuffer, // BYTE* optional, out
uint dwTimeoutInMilliseconds, // DWORD
IntPtr lpOverlapped // OVERLAPPED*
);<DllImport("PeerDist.dll", ExactSpelling:=True)>
Public Shared Function PeerDistClientStreamRead(
hPeerDist As IntPtr, ' INT_PTR
hContentHandle As IntPtr, ' INT_PTR
cbMaxNumberOfBytes As UInteger, ' DWORD
pBuffer As IntPtr, ' BYTE* optional, out
dwTimeoutInMilliseconds As UInteger, ' DWORD
lpOverlapped As IntPtr ' OVERLAPPED*
) As UInteger
End Function' hPeerDist : INT_PTR
' hContentHandle : INT_PTR
' cbMaxNumberOfBytes : DWORD
' pBuffer : BYTE* optional, out
' dwTimeoutInMilliseconds : DWORD
' lpOverlapped : OVERLAPPED*
Declare PtrSafe Function PeerDistClientStreamRead Lib "peerdist" ( _
ByVal hPeerDist As LongPtr, _
ByVal hContentHandle As LongPtr, _
ByVal cbMaxNumberOfBytes As Long, _
ByVal pBuffer As LongPtr, _
ByVal dwTimeoutInMilliseconds As Long, _
ByVal lpOverlapped As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
PeerDistClientStreamRead = ctypes.windll.peerdist.PeerDistClientStreamRead
PeerDistClientStreamRead.restype = wintypes.DWORD
PeerDistClientStreamRead.argtypes = [
ctypes.c_ssize_t, # hPeerDist : INT_PTR
ctypes.c_ssize_t, # hContentHandle : INT_PTR
wintypes.DWORD, # cbMaxNumberOfBytes : DWORD
ctypes.POINTER(ctypes.c_ubyte), # pBuffer : BYTE* optional, out
wintypes.DWORD, # dwTimeoutInMilliseconds : DWORD
ctypes.c_void_p, # lpOverlapped : OVERLAPPED*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('PeerDist.dll')
PeerDistClientStreamRead = Fiddle::Function.new(
lib['PeerDistClientStreamRead'],
[
Fiddle::TYPE_INTPTR_T, # hPeerDist : INT_PTR
Fiddle::TYPE_INTPTR_T, # hContentHandle : INT_PTR
-Fiddle::TYPE_INT, # cbMaxNumberOfBytes : DWORD
Fiddle::TYPE_VOIDP, # pBuffer : BYTE* optional, out
-Fiddle::TYPE_INT, # dwTimeoutInMilliseconds : DWORD
Fiddle::TYPE_VOIDP, # lpOverlapped : OVERLAPPED*
],
-Fiddle::TYPE_INT)#[link(name = "peerdist")]
extern "system" {
fn PeerDistClientStreamRead(
hPeerDist: isize, // INT_PTR
hContentHandle: isize, // INT_PTR
cbMaxNumberOfBytes: u32, // DWORD
pBuffer: *mut u8, // BYTE* optional, out
dwTimeoutInMilliseconds: u32, // DWORD
lpOverlapped: *mut OVERLAPPED // OVERLAPPED*
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("PeerDist.dll")]
public static extern uint PeerDistClientStreamRead(IntPtr hPeerDist, IntPtr hContentHandle, uint cbMaxNumberOfBytes, IntPtr pBuffer, uint dwTimeoutInMilliseconds, IntPtr lpOverlapped);
"@
$api = Add-Type -MemberDefinition $sig -Name 'PeerDist_PeerDistClientStreamRead' -Namespace Win32 -PassThru
# $api::PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)#uselib "PeerDist.dll"
#func global PeerDistClientStreamRead "PeerDistClientStreamRead" sptr, sptr, sptr, sptr, sptr, sptr
; PeerDistClientStreamRead hPeerDist, hContentHandle, cbMaxNumberOfBytes, varptr(pBuffer), dwTimeoutInMilliseconds, varptr(lpOverlapped) ; 戻り値は stat
; hPeerDist : INT_PTR -> "sptr"
; hContentHandle : INT_PTR -> "sptr"
; cbMaxNumberOfBytes : DWORD -> "sptr"
; pBuffer : BYTE* optional, out -> "sptr"
; dwTimeoutInMilliseconds : DWORD -> "sptr"
; lpOverlapped : OVERLAPPED* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "PeerDist.dll" #cfunc global PeerDistClientStreamRead "PeerDistClientStreamRead" sptr, sptr, int, var, int, var ; res = PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped) ; hPeerDist : INT_PTR -> "sptr" ; hContentHandle : INT_PTR -> "sptr" ; cbMaxNumberOfBytes : DWORD -> "int" ; pBuffer : BYTE* optional, out -> "var" ; dwTimeoutInMilliseconds : DWORD -> "int" ; lpOverlapped : OVERLAPPED* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "PeerDist.dll" #cfunc global PeerDistClientStreamRead "PeerDistClientStreamRead" sptr, sptr, int, sptr, int, sptr ; res = PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, varptr(pBuffer), dwTimeoutInMilliseconds, varptr(lpOverlapped)) ; hPeerDist : INT_PTR -> "sptr" ; hContentHandle : INT_PTR -> "sptr" ; cbMaxNumberOfBytes : DWORD -> "int" ; pBuffer : BYTE* optional, out -> "sptr" ; dwTimeoutInMilliseconds : DWORD -> "int" ; lpOverlapped : OVERLAPPED* -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD PeerDistClientStreamRead(INT_PTR hPeerDist, INT_PTR hContentHandle, DWORD cbMaxNumberOfBytes, BYTE* pBuffer, DWORD dwTimeoutInMilliseconds, OVERLAPPED* lpOverlapped) #uselib "PeerDist.dll" #cfunc global PeerDistClientStreamRead "PeerDistClientStreamRead" intptr, intptr, int, var, int, var ; res = PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped) ; hPeerDist : INT_PTR -> "intptr" ; hContentHandle : INT_PTR -> "intptr" ; cbMaxNumberOfBytes : DWORD -> "int" ; pBuffer : BYTE* optional, out -> "var" ; dwTimeoutInMilliseconds : DWORD -> "int" ; lpOverlapped : OVERLAPPED* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD PeerDistClientStreamRead(INT_PTR hPeerDist, INT_PTR hContentHandle, DWORD cbMaxNumberOfBytes, BYTE* pBuffer, DWORD dwTimeoutInMilliseconds, OVERLAPPED* lpOverlapped) #uselib "PeerDist.dll" #cfunc global PeerDistClientStreamRead "PeerDistClientStreamRead" intptr, intptr, int, intptr, int, intptr ; res = PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, varptr(pBuffer), dwTimeoutInMilliseconds, varptr(lpOverlapped)) ; hPeerDist : INT_PTR -> "intptr" ; hContentHandle : INT_PTR -> "intptr" ; cbMaxNumberOfBytes : DWORD -> "int" ; pBuffer : BYTE* optional, out -> "intptr" ; dwTimeoutInMilliseconds : DWORD -> "int" ; lpOverlapped : OVERLAPPED* -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
peerdist = windows.NewLazySystemDLL("PeerDist.dll")
procPeerDistClientStreamRead = peerdist.NewProc("PeerDistClientStreamRead")
)
// hPeerDist (INT_PTR), hContentHandle (INT_PTR), cbMaxNumberOfBytes (DWORD), pBuffer (BYTE* optional, out), dwTimeoutInMilliseconds (DWORD), lpOverlapped (OVERLAPPED*)
r1, _, err := procPeerDistClientStreamRead.Call(
uintptr(hPeerDist),
uintptr(hContentHandle),
uintptr(cbMaxNumberOfBytes),
uintptr(pBuffer),
uintptr(dwTimeoutInMilliseconds),
uintptr(lpOverlapped),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction PeerDistClientStreamRead(
hPeerDist: NativeInt; // INT_PTR
hContentHandle: NativeInt; // INT_PTR
cbMaxNumberOfBytes: DWORD; // DWORD
pBuffer: Pointer; // BYTE* optional, out
dwTimeoutInMilliseconds: DWORD; // DWORD
lpOverlapped: Pointer // OVERLAPPED*
): DWORD; stdcall;
external 'PeerDist.dll' name 'PeerDistClientStreamRead';result := DllCall("PeerDist\PeerDistClientStreamRead"
, "Ptr", hPeerDist ; INT_PTR
, "Ptr", hContentHandle ; INT_PTR
, "UInt", cbMaxNumberOfBytes ; DWORD
, "Ptr", pBuffer ; BYTE* optional, out
, "UInt", dwTimeoutInMilliseconds ; DWORD
, "Ptr", lpOverlapped ; OVERLAPPED*
, "UInt") ; return: DWORD●PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped) = DLL("PeerDist.dll", "dword PeerDistClientStreamRead(int, int, dword, void*, dword, void*)")
# 呼び出し: PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)
# hPeerDist : INT_PTR -> "int"
# hContentHandle : INT_PTR -> "int"
# cbMaxNumberOfBytes : DWORD -> "dword"
# pBuffer : BYTE* optional, out -> "void*"
# dwTimeoutInMilliseconds : DWORD -> "dword"
# lpOverlapped : OVERLAPPED* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "peerdist" fn PeerDistClientStreamRead(
hPeerDist: isize, // INT_PTR
hContentHandle: isize, // INT_PTR
cbMaxNumberOfBytes: u32, // DWORD
pBuffer: [*c]u8, // BYTE* optional, out
dwTimeoutInMilliseconds: u32, // DWORD
lpOverlapped: [*c]OVERLAPPED // OVERLAPPED*
) callconv(std.os.windows.WINAPI) u32;proc PeerDistClientStreamRead(
hPeerDist: int, # INT_PTR
hContentHandle: int, # INT_PTR
cbMaxNumberOfBytes: uint32, # DWORD
pBuffer: ptr uint8, # BYTE* optional, out
dwTimeoutInMilliseconds: uint32, # DWORD
lpOverlapped: ptr OVERLAPPED # OVERLAPPED*
): uint32 {.importc: "PeerDistClientStreamRead", stdcall, dynlib: "PeerDist.dll".}pragma(lib, "peerdist");
extern(Windows)
uint PeerDistClientStreamRead(
ptrdiff_t hPeerDist, // INT_PTR
ptrdiff_t hContentHandle, // INT_PTR
uint cbMaxNumberOfBytes, // DWORD
ubyte* pBuffer, // BYTE* optional, out
uint dwTimeoutInMilliseconds, // DWORD
OVERLAPPED* lpOverlapped // OVERLAPPED*
);ccall((:PeerDistClientStreamRead, "PeerDist.dll"), stdcall, UInt32,
(Int, Int, UInt32, Ptr{UInt8}, UInt32, Ptr{OVERLAPPED}),
hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)
# hPeerDist : INT_PTR -> Int
# hContentHandle : INT_PTR -> Int
# cbMaxNumberOfBytes : DWORD -> UInt32
# pBuffer : BYTE* optional, out -> Ptr{UInt8}
# dwTimeoutInMilliseconds : DWORD -> UInt32
# lpOverlapped : OVERLAPPED* -> Ptr{OVERLAPPED}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
uint32_t PeerDistClientStreamRead(
intptr_t hPeerDist,
intptr_t hContentHandle,
uint32_t cbMaxNumberOfBytes,
uint8_t* pBuffer,
uint32_t dwTimeoutInMilliseconds,
void* lpOverlapped);
]]
local peerdist = ffi.load("peerdist")
-- peerdist.PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)
-- hPeerDist : INT_PTR
-- hContentHandle : INT_PTR
-- cbMaxNumberOfBytes : DWORD
-- pBuffer : BYTE* optional, out
-- dwTimeoutInMilliseconds : DWORD
-- lpOverlapped : OVERLAPPED*
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('PeerDist.dll');
const PeerDistClientStreamRead = lib.func('__stdcall', 'PeerDistClientStreamRead', 'uint32_t', ['intptr_t', 'intptr_t', 'uint32_t', 'uint8_t *', 'uint32_t', 'void *']);
// PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)
// hPeerDist : INT_PTR -> 'intptr_t'
// hContentHandle : INT_PTR -> 'intptr_t'
// cbMaxNumberOfBytes : DWORD -> 'uint32_t'
// pBuffer : BYTE* optional, out -> 'uint8_t *'
// dwTimeoutInMilliseconds : DWORD -> 'uint32_t'
// lpOverlapped : OVERLAPPED* -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("PeerDist.dll", {
PeerDistClientStreamRead: { parameters: ["isize", "isize", "u32", "pointer", "u32", "pointer"], result: "u32" },
});
// lib.symbols.PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped)
// hPeerDist : INT_PTR -> "isize"
// hContentHandle : INT_PTR -> "isize"
// cbMaxNumberOfBytes : DWORD -> "u32"
// pBuffer : BYTE* optional, out -> "pointer"
// dwTimeoutInMilliseconds : DWORD -> "u32"
// lpOverlapped : OVERLAPPED* -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
uint32_t PeerDistClientStreamRead(
intptr_t hPeerDist,
intptr_t hContentHandle,
uint32_t cbMaxNumberOfBytes,
uint8_t* pBuffer,
uint32_t dwTimeoutInMilliseconds,
void* lpOverlapped);
C, "PeerDist.dll");
// $ffi->PeerDistClientStreamRead(hPeerDist, hContentHandle, cbMaxNumberOfBytes, pBuffer, dwTimeoutInMilliseconds, lpOverlapped);
// hPeerDist : INT_PTR
// hContentHandle : INT_PTR
// cbMaxNumberOfBytes : DWORD
// pBuffer : BYTE* optional, out
// dwTimeoutInMilliseconds : DWORD
// lpOverlapped : OVERLAPPED*
// 構造体/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 Peerdist extends StdCallLibrary {
Peerdist INSTANCE = Native.load("peerdist", Peerdist.class);
int PeerDistClientStreamRead(
long hPeerDist, // INT_PTR
long hContentHandle, // INT_PTR
int cbMaxNumberOfBytes, // DWORD
byte[] pBuffer, // BYTE* optional, out
int dwTimeoutInMilliseconds, // DWORD
Pointer lpOverlapped // OVERLAPPED*
);
}@[Link("peerdist")]
lib LibPeerDist
fun PeerDistClientStreamRead = PeerDistClientStreamRead(
hPeerDist : LibC::SSizeT, # INT_PTR
hContentHandle : LibC::SSizeT, # INT_PTR
cbMaxNumberOfBytes : UInt32, # DWORD
pBuffer : UInt8*, # BYTE* optional, out
dwTimeoutInMilliseconds : UInt32, # DWORD
lpOverlapped : OVERLAPPED* # OVERLAPPED*
) : UInt32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef PeerDistClientStreamReadNative = Uint32 Function(IntPtr, IntPtr, Uint32, Pointer<Uint8>, Uint32, Pointer<Void>);
typedef PeerDistClientStreamReadDart = int Function(int, int, int, Pointer<Uint8>, int, Pointer<Void>);
final PeerDistClientStreamRead = DynamicLibrary.open('PeerDist.dll')
.lookupFunction<PeerDistClientStreamReadNative, PeerDistClientStreamReadDart>('PeerDistClientStreamRead');
// hPeerDist : INT_PTR -> IntPtr
// hContentHandle : INT_PTR -> IntPtr
// cbMaxNumberOfBytes : DWORD -> Uint32
// pBuffer : BYTE* optional, out -> Pointer<Uint8>
// dwTimeoutInMilliseconds : DWORD -> Uint32
// lpOverlapped : OVERLAPPED* -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function PeerDistClientStreamRead(
hPeerDist: NativeInt; // INT_PTR
hContentHandle: NativeInt; // INT_PTR
cbMaxNumberOfBytes: DWORD; // DWORD
pBuffer: Pointer; // BYTE* optional, out
dwTimeoutInMilliseconds: DWORD; // DWORD
lpOverlapped: Pointer // OVERLAPPED*
): DWORD; stdcall;
external 'PeerDist.dll' name 'PeerDistClientStreamRead';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "PeerDistClientStreamRead"
c_PeerDistClientStreamRead :: CIntPtr -> CIntPtr -> Word32 -> Ptr Word8 -> Word32 -> Ptr () -> IO Word32
-- hPeerDist : INT_PTR -> CIntPtr
-- hContentHandle : INT_PTR -> CIntPtr
-- cbMaxNumberOfBytes : DWORD -> Word32
-- pBuffer : BYTE* optional, out -> Ptr Word8
-- dwTimeoutInMilliseconds : DWORD -> Word32
-- lpOverlapped : OVERLAPPED* -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let peerdistclientstreamread =
foreign "PeerDistClientStreamRead"
(intptr_t @-> intptr_t @-> uint32_t @-> (ptr uint8_t) @-> uint32_t @-> (ptr void) @-> returning uint32_t)
(* hPeerDist : INT_PTR -> intptr_t *)
(* hContentHandle : INT_PTR -> intptr_t *)
(* cbMaxNumberOfBytes : DWORD -> uint32_t *)
(* pBuffer : BYTE* optional, out -> (ptr uint8_t) *)
(* dwTimeoutInMilliseconds : DWORD -> uint32_t *)
(* lpOverlapped : OVERLAPPED* -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library peerdist (t "PeerDist.dll"))
(cffi:use-foreign-library peerdist)
(cffi:defcfun ("PeerDistClientStreamRead" peer-dist-client-stream-read :convention :stdcall) :uint32
(h-peer-dist :int64) ; INT_PTR
(h-content-handle :int64) ; INT_PTR
(cb-max-number-of-bytes :uint32) ; DWORD
(p-buffer :pointer) ; BYTE* optional, out
(dw-timeout-in-milliseconds :uint32) ; DWORD
(lp-overlapped :pointer)) ; OVERLAPPED*
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $PeerDistClientStreamRead = Win32::API::More->new('PeerDist',
'DWORD PeerDistClientStreamRead(LPARAM hPeerDist, LPARAM hContentHandle, DWORD cbMaxNumberOfBytes, LPVOID pBuffer, DWORD dwTimeoutInMilliseconds, LPVOID lpOverlapped)');
# my $ret = $PeerDistClientStreamRead->Call($hPeerDist, $hContentHandle, $cbMaxNumberOfBytes, $pBuffer, $dwTimeoutInMilliseconds, $lpOverlapped);
# hPeerDist : INT_PTR -> LPARAM
# hContentHandle : INT_PTR -> LPARAM
# cbMaxNumberOfBytes : DWORD -> DWORD
# pBuffer : BYTE* optional, out -> LPVOID
# dwTimeoutInMilliseconds : DWORD -> DWORD
# lpOverlapped : OVERLAPPED* -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。関連項目
使用する型