ホーム › NetworkManagement.NetManagement › RouterLogEventDataA
RouterLogEventDataA
関数バイナリデータ付きでルーターのイベントをログに記録する(ANSI版)。
シグネチャ
// rtutils.dll (ANSI / -A)
#include <windows.h>
void RouterLogEventDataA(
HANDLE hLogHandle,
DWORD dwEventType,
DWORD dwMessageId,
DWORD dwSubStringCount,
LPSTR* plpszSubStringArray, // optional
DWORD dwDataBytes,
BYTE* lpDataBytes
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| hLogHandle | HANDLE | in | RouterLogRegisterで取得したログハンドル。出力先を指す。 |
| dwEventType | DWORD | in | イベントの種類(エラー/警告/情報等)を示す値を指定する。 |
| dwMessageId | DWORD | in | 記録するメッセージID(リソースID)を指定する。 |
| dwSubStringCount | DWORD | in | plpszSubStringArray配列内の置換文字列の数を指定する。 |
| plpszSubStringArray | LPSTR* | inoptional | メッセージ内のプレースホルダを埋める文字列配列(ANSI)。 |
| dwDataBytes | DWORD | in | lpDataBytesの付随バイナリデータのバイト数を指定する。 |
| lpDataBytes | BYTE* | inout | イベントに付随するバイナリデータへのポインター。 |
戻り値の型: void
各言語での呼び出し定義
// rtutils.dll (ANSI / -A)
#include <windows.h>
void RouterLogEventDataA(
HANDLE hLogHandle,
DWORD dwEventType,
DWORD dwMessageId,
DWORD dwSubStringCount,
LPSTR* plpszSubStringArray, // optional
DWORD dwDataBytes,
BYTE* lpDataBytes
);[DllImport("rtutils.dll", CharSet = CharSet.Ansi, ExactSpelling = true)]
static extern void RouterLogEventDataA(
IntPtr hLogHandle, // HANDLE
uint dwEventType, // DWORD
uint dwMessageId, // DWORD
uint dwSubStringCount, // DWORD
IntPtr plpszSubStringArray, // LPSTR* optional
uint dwDataBytes, // DWORD
IntPtr lpDataBytes // BYTE* in/out
);<DllImport("rtutils.dll", CharSet:=CharSet.Ansi, ExactSpelling:=True)>
Public Shared Sub RouterLogEventDataA(
hLogHandle As IntPtr, ' HANDLE
dwEventType As UInteger, ' DWORD
dwMessageId As UInteger, ' DWORD
dwSubStringCount As UInteger, ' DWORD
plpszSubStringArray As IntPtr, ' LPSTR* optional
dwDataBytes As UInteger, ' DWORD
lpDataBytes As IntPtr ' BYTE* in/out
)
End Sub' hLogHandle : HANDLE
' dwEventType : DWORD
' dwMessageId : DWORD
' dwSubStringCount : DWORD
' plpszSubStringArray : LPSTR* optional
' dwDataBytes : DWORD
' lpDataBytes : BYTE* in/out
Declare PtrSafe Sub RouterLogEventDataA Lib "rtutils" ( _
ByVal hLogHandle As LongPtr, _
ByVal dwEventType As Long, _
ByVal dwMessageId As Long, _
ByVal dwSubStringCount As Long, _
ByVal plpszSubStringArray As LongPtr, _
ByVal dwDataBytes As Long, _
ByVal lpDataBytes As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RouterLogEventDataA = ctypes.windll.rtutils.RouterLogEventDataA
RouterLogEventDataA.restype = None
RouterLogEventDataA.argtypes = [
wintypes.HANDLE, # hLogHandle : HANDLE
wintypes.DWORD, # dwEventType : DWORD
wintypes.DWORD, # dwMessageId : DWORD
wintypes.DWORD, # dwSubStringCount : DWORD
ctypes.c_void_p, # plpszSubStringArray : LPSTR* optional
wintypes.DWORD, # dwDataBytes : DWORD
ctypes.POINTER(ctypes.c_ubyte), # lpDataBytes : BYTE* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('rtutils.dll')
RouterLogEventDataA = Fiddle::Function.new(
lib['RouterLogEventDataA'],
[
Fiddle::TYPE_VOIDP, # hLogHandle : HANDLE
-Fiddle::TYPE_INT, # dwEventType : DWORD
-Fiddle::TYPE_INT, # dwMessageId : DWORD
-Fiddle::TYPE_INT, # dwSubStringCount : DWORD
Fiddle::TYPE_VOIDP, # plpszSubStringArray : LPSTR* optional
-Fiddle::TYPE_INT, # dwDataBytes : DWORD
Fiddle::TYPE_VOIDP, # lpDataBytes : BYTE* in/out
],
Fiddle::TYPE_VOID)#[link(name = "rtutils")]
extern "system" {
fn RouterLogEventDataA(
hLogHandle: *mut core::ffi::c_void, // HANDLE
dwEventType: u32, // DWORD
dwMessageId: u32, // DWORD
dwSubStringCount: u32, // DWORD
plpszSubStringArray: *mut *mut u8, // LPSTR* optional
dwDataBytes: u32, // DWORD
lpDataBytes: *mut u8 // BYTE* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("rtutils.dll", CharSet = CharSet.Ansi)]
public static extern void RouterLogEventDataA(IntPtr hLogHandle, uint dwEventType, uint dwMessageId, uint dwSubStringCount, IntPtr plpszSubStringArray, uint dwDataBytes, IntPtr lpDataBytes);
"@
$api = Add-Type -MemberDefinition $sig -Name 'rtutils_RouterLogEventDataA' -Namespace Win32 -PassThru
# $api::RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)#uselib "rtutils.dll"
#func global RouterLogEventDataA "RouterLogEventDataA" sptr, sptr, sptr, sptr, sptr, sptr, sptr
; RouterLogEventDataA hLogHandle, dwEventType, dwMessageId, dwSubStringCount, varptr(plpszSubStringArray), dwDataBytes, varptr(lpDataBytes)
; hLogHandle : HANDLE -> "sptr"
; dwEventType : DWORD -> "sptr"
; dwMessageId : DWORD -> "sptr"
; dwSubStringCount : DWORD -> "sptr"
; plpszSubStringArray : LPSTR* optional -> "sptr"
; dwDataBytes : DWORD -> "sptr"
; lpDataBytes : BYTE* in/out -> "sptr"出力引数:
#uselib "rtutils.dll" #func global RouterLogEventDataA "RouterLogEventDataA" sptr, int, int, int, var, int, var ; RouterLogEventDataA hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes ; hLogHandle : HANDLE -> "sptr" ; dwEventType : DWORD -> "int" ; dwMessageId : DWORD -> "int" ; dwSubStringCount : DWORD -> "int" ; plpszSubStringArray : LPSTR* optional -> "var" ; dwDataBytes : DWORD -> "int" ; lpDataBytes : BYTE* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "rtutils.dll" #func global RouterLogEventDataA "RouterLogEventDataA" sptr, int, int, int, sptr, int, sptr ; RouterLogEventDataA hLogHandle, dwEventType, dwMessageId, dwSubStringCount, varptr(plpszSubStringArray), dwDataBytes, varptr(lpDataBytes) ; hLogHandle : HANDLE -> "sptr" ; dwEventType : DWORD -> "int" ; dwMessageId : DWORD -> "int" ; dwSubStringCount : DWORD -> "int" ; plpszSubStringArray : LPSTR* optional -> "sptr" ; dwDataBytes : DWORD -> "int" ; lpDataBytes : BYTE* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; void RouterLogEventDataA(HANDLE hLogHandle, DWORD dwEventType, DWORD dwMessageId, DWORD dwSubStringCount, LPSTR* plpszSubStringArray, DWORD dwDataBytes, BYTE* lpDataBytes) #uselib "rtutils.dll" #func global RouterLogEventDataA "RouterLogEventDataA" intptr, int, int, int, var, int, var ; RouterLogEventDataA hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes ; hLogHandle : HANDLE -> "intptr" ; dwEventType : DWORD -> "int" ; dwMessageId : DWORD -> "int" ; dwSubStringCount : DWORD -> "int" ; plpszSubStringArray : LPSTR* optional -> "var" ; dwDataBytes : DWORD -> "int" ; lpDataBytes : BYTE* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; void RouterLogEventDataA(HANDLE hLogHandle, DWORD dwEventType, DWORD dwMessageId, DWORD dwSubStringCount, LPSTR* plpszSubStringArray, DWORD dwDataBytes, BYTE* lpDataBytes) #uselib "rtutils.dll" #func global RouterLogEventDataA "RouterLogEventDataA" intptr, int, int, int, intptr, int, intptr ; RouterLogEventDataA hLogHandle, dwEventType, dwMessageId, dwSubStringCount, varptr(plpszSubStringArray), dwDataBytes, varptr(lpDataBytes) ; hLogHandle : HANDLE -> "intptr" ; dwEventType : DWORD -> "int" ; dwMessageId : DWORD -> "int" ; dwSubStringCount : DWORD -> "int" ; plpszSubStringArray : LPSTR* optional -> "intptr" ; dwDataBytes : DWORD -> "int" ; lpDataBytes : BYTE* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
rtutils = windows.NewLazySystemDLL("rtutils.dll")
procRouterLogEventDataA = rtutils.NewProc("RouterLogEventDataA")
)
// hLogHandle (HANDLE), dwEventType (DWORD), dwMessageId (DWORD), dwSubStringCount (DWORD), plpszSubStringArray (LPSTR* optional), dwDataBytes (DWORD), lpDataBytes (BYTE* in/out)
r1, _, err := procRouterLogEventDataA.Call(
uintptr(hLogHandle),
uintptr(dwEventType),
uintptr(dwMessageId),
uintptr(dwSubStringCount),
uintptr(plpszSubStringArray),
uintptr(dwDataBytes),
uintptr(lpDataBytes),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure RouterLogEventDataA(
hLogHandle: THandle; // HANDLE
dwEventType: DWORD; // DWORD
dwMessageId: DWORD; // DWORD
dwSubStringCount: DWORD; // DWORD
plpszSubStringArray: PPAnsiChar; // LPSTR* optional
dwDataBytes: DWORD; // DWORD
lpDataBytes: Pointer // BYTE* in/out
); stdcall;
external 'rtutils.dll' name 'RouterLogEventDataA';result := DllCall("rtutils\RouterLogEventDataA"
, "Ptr", hLogHandle ; HANDLE
, "UInt", dwEventType ; DWORD
, "UInt", dwMessageId ; DWORD
, "UInt", dwSubStringCount ; DWORD
, "Ptr", plpszSubStringArray ; LPSTR* optional
, "UInt", dwDataBytes ; DWORD
, "Ptr", lpDataBytes ; BYTE* in/out
, "Int") ; return: void●RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes) = DLL("rtutils.dll", "int RouterLogEventDataA(void*, dword, dword, dword, void*, dword, void*)")
# 呼び出し: RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)
# hLogHandle : HANDLE -> "void*"
# dwEventType : DWORD -> "dword"
# dwMessageId : DWORD -> "dword"
# dwSubStringCount : DWORD -> "dword"
# plpszSubStringArray : LPSTR* optional -> "void*"
# dwDataBytes : DWORD -> "dword"
# lpDataBytes : BYTE* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "rtutils" fn RouterLogEventDataA(
hLogHandle: ?*anyopaque, // HANDLE
dwEventType: u32, // DWORD
dwMessageId: u32, // DWORD
dwSubStringCount: u32, // DWORD
plpszSubStringArray: [*c][*c]u8, // LPSTR* optional
dwDataBytes: u32, // DWORD
lpDataBytes: [*c]u8 // BYTE* in/out
) callconv(std.os.windows.WINAPI) void;proc RouterLogEventDataA(
hLogHandle: pointer, # HANDLE
dwEventType: uint32, # DWORD
dwMessageId: uint32, # DWORD
dwSubStringCount: uint32, # DWORD
plpszSubStringArray: ptr cstring, # LPSTR* optional
dwDataBytes: uint32, # DWORD
lpDataBytes: ptr uint8 # BYTE* in/out
) {.importc: "RouterLogEventDataA", stdcall, dynlib: "rtutils.dll".}pragma(lib, "rtutils");
extern(Windows)
void RouterLogEventDataA(
void* hLogHandle, // HANDLE
uint dwEventType, // DWORD
uint dwMessageId, // DWORD
uint dwSubStringCount, // DWORD
char** plpszSubStringArray, // LPSTR* optional
uint dwDataBytes, // DWORD
ubyte* lpDataBytes // BYTE* in/out
);ccall((:RouterLogEventDataA, "rtutils.dll"), stdcall, Cvoid,
(Ptr{Cvoid}, UInt32, UInt32, UInt32, Ptr{Ptr{UInt8}}, UInt32, Ptr{UInt8}),
hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)
# hLogHandle : HANDLE -> Ptr{Cvoid}
# dwEventType : DWORD -> UInt32
# dwMessageId : DWORD -> UInt32
# dwSubStringCount : DWORD -> UInt32
# plpszSubStringArray : LPSTR* optional -> Ptr{Ptr{UInt8}}
# dwDataBytes : DWORD -> UInt32
# lpDataBytes : BYTE* in/out -> Ptr{UInt8}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
void RouterLogEventDataA(
void* hLogHandle,
uint32_t dwEventType,
uint32_t dwMessageId,
uint32_t dwSubStringCount,
char** plpszSubStringArray,
uint32_t dwDataBytes,
uint8_t* lpDataBytes);
]]
local rtutils = ffi.load("rtutils")
-- rtutils.RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)
-- hLogHandle : HANDLE
-- dwEventType : DWORD
-- dwMessageId : DWORD
-- dwSubStringCount : DWORD
-- plpszSubStringArray : LPSTR* optional
-- dwDataBytes : DWORD
-- lpDataBytes : BYTE* in/out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('rtutils.dll');
const RouterLogEventDataA = lib.func('__stdcall', 'RouterLogEventDataA', 'void', ['void *', 'uint32_t', 'uint32_t', 'uint32_t', 'void *', 'uint32_t', 'uint8_t *']);
// RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)
// hLogHandle : HANDLE -> 'void *'
// dwEventType : DWORD -> 'uint32_t'
// dwMessageId : DWORD -> 'uint32_t'
// dwSubStringCount : DWORD -> 'uint32_t'
// plpszSubStringArray : LPSTR* optional -> 'void *'
// dwDataBytes : DWORD -> 'uint32_t'
// lpDataBytes : BYTE* in/out -> 'uint8_t *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("rtutils.dll", {
RouterLogEventDataA: { parameters: ["pointer", "u32", "u32", "u32", "pointer", "u32", "pointer"], result: "void" },
});
// lib.symbols.RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes)
// hLogHandle : HANDLE -> "pointer"
// dwEventType : DWORD -> "u32"
// dwMessageId : DWORD -> "u32"
// dwSubStringCount : DWORD -> "u32"
// plpszSubStringArray : LPSTR* optional -> "pointer"
// dwDataBytes : DWORD -> "u32"
// lpDataBytes : BYTE* in/out -> "pointer"
// 文字列は "buffer"。ANSI(-A) は new TextEncoder() で UTF-8/ANSI バイト列(末尾に \x00)を渡す。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
void RouterLogEventDataA(
void* hLogHandle,
uint32_t dwEventType,
uint32_t dwMessageId,
uint32_t dwSubStringCount,
char** plpszSubStringArray,
uint32_t dwDataBytes,
uint8_t* lpDataBytes);
C, "rtutils.dll");
// $ffi->RouterLogEventDataA(hLogHandle, dwEventType, dwMessageId, dwSubStringCount, plpszSubStringArray, dwDataBytes, lpDataBytes);
// hLogHandle : HANDLE
// dwEventType : DWORD
// dwMessageId : DWORD
// dwSubStringCount : DWORD
// plpszSubStringArray : LPSTR* optional
// dwDataBytes : DWORD
// lpDataBytes : BYTE* in/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 Rtutils extends StdCallLibrary {
Rtutils INSTANCE = Native.load("rtutils", Rtutils.class, W32APIOptions.ASCII_OPTIONS);
void RouterLogEventDataA(
Pointer hLogHandle, // HANDLE
int dwEventType, // DWORD
int dwMessageId, // DWORD
int dwSubStringCount, // DWORD
PointerByReference plpszSubStringArray, // LPSTR* optional
int dwDataBytes, // DWORD
byte[] lpDataBytes // BYTE* in/out
);
}@[Link("rtutils")]
lib Librtutils
fun RouterLogEventDataA = RouterLogEventDataA(
hLogHandle : Void*, # HANDLE
dwEventType : UInt32, # DWORD
dwMessageId : UInt32, # DWORD
dwSubStringCount : UInt32, # DWORD
plpszSubStringArray : UInt8**, # LPSTR* optional
dwDataBytes : UInt32, # DWORD
lpDataBytes : UInt8* # BYTE* in/out
) : Void
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef RouterLogEventDataANative = Void Function(Pointer<Void>, Uint32, Uint32, Uint32, Pointer<Pointer<Utf8>>, Uint32, Pointer<Uint8>);
typedef RouterLogEventDataADart = void Function(Pointer<Void>, int, int, int, Pointer<Pointer<Utf8>>, int, Pointer<Uint8>);
final RouterLogEventDataA = DynamicLibrary.open('rtutils.dll')
.lookupFunction<RouterLogEventDataANative, RouterLogEventDataADart>('RouterLogEventDataA');
// hLogHandle : HANDLE -> Pointer<Void>
// dwEventType : DWORD -> Uint32
// dwMessageId : DWORD -> Uint32
// dwSubStringCount : DWORD -> Uint32
// plpszSubStringArray : LPSTR* optional -> Pointer<Pointer<Utf8>>
// dwDataBytes : DWORD -> Uint32
// lpDataBytes : BYTE* in/out -> Pointer<Uint8>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
procedure RouterLogEventDataA(
hLogHandle: THandle; // HANDLE
dwEventType: DWORD; // DWORD
dwMessageId: DWORD; // DWORD
dwSubStringCount: DWORD; // DWORD
plpszSubStringArray: PPAnsiChar; // LPSTR* optional
dwDataBytes: DWORD; // DWORD
lpDataBytes: Pointer // BYTE* in/out
); stdcall;
external 'rtutils.dll' name 'RouterLogEventDataA';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "RouterLogEventDataA"
c_RouterLogEventDataA :: Ptr () -> Word32 -> Word32 -> Word32 -> Ptr CString -> Word32 -> Ptr Word8 -> IO ()
-- hLogHandle : HANDLE -> Ptr ()
-- dwEventType : DWORD -> Word32
-- dwMessageId : DWORD -> Word32
-- dwSubStringCount : DWORD -> Word32
-- plpszSubStringArray : LPSTR* optional -> Ptr CString
-- dwDataBytes : DWORD -> Word32
-- lpDataBytes : BYTE* in/out -> Ptr Word8
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let routerlogeventdataa =
foreign "RouterLogEventDataA"
((ptr void) @-> uint32_t @-> uint32_t @-> uint32_t @-> (ptr string) @-> uint32_t @-> (ptr uint8_t) @-> returning void)
(* hLogHandle : HANDLE -> (ptr void) *)
(* dwEventType : DWORD -> uint32_t *)
(* dwMessageId : DWORD -> uint32_t *)
(* dwSubStringCount : DWORD -> uint32_t *)
(* plpszSubStringArray : LPSTR* optional -> (ptr string) *)
(* dwDataBytes : DWORD -> uint32_t *)
(* lpDataBytes : BYTE* in/out -> (ptr uint8_t) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library rtutils (t "rtutils.dll"))
(cffi:use-foreign-library rtutils)
(cffi:defcfun ("RouterLogEventDataA" router-log-event-data-a :convention :stdcall) :void
(h-log-handle :pointer) ; HANDLE
(dw-event-type :uint32) ; DWORD
(dw-message-id :uint32) ; DWORD
(dw-sub-string-count :uint32) ; DWORD
(plpsz-sub-string-array :pointer) ; LPSTR* optional
(dw-data-bytes :uint32) ; DWORD
(lp-data-bytes :pointer)) ; BYTE* in/out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $RouterLogEventDataA = Win32::API::More->new('rtutils',
'void RouterLogEventDataA(HANDLE hLogHandle, DWORD dwEventType, DWORD dwMessageId, DWORD dwSubStringCount, LPVOID plpszSubStringArray, DWORD dwDataBytes, LPVOID lpDataBytes)');
# my $ret = $RouterLogEventDataA->Call($hLogHandle, $dwEventType, $dwMessageId, $dwSubStringCount, $plpszSubStringArray, $dwDataBytes, $lpDataBytes);
# hLogHandle : HANDLE -> HANDLE
# dwEventType : DWORD -> DWORD
# dwMessageId : DWORD -> DWORD
# dwSubStringCount : DWORD -> DWORD
# plpszSubStringArray : LPSTR* optional -> LPVOID
# dwDataBytes : DWORD -> DWORD
# lpDataBytes : BYTE* in/out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。関連項目
文字セット違い
- f RouterLogEventDataW (Unicode版) — バイナリデータ付きでルーターのイベントをログに記録する(Unicode版)。