ホーム › Storage.FileSystem › LsnRecordSequence
LsnRecordSequence
関数ログシーケンス番号からレコードシーケンスを取得する。
シグネチャ
// clfsw32.dll
#include <windows.h>
DWORD LsnRecordSequence(
const CLS_LSN* plsn
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| plsn | CLS_LSN* | in |
戻り値の型: DWORD
各言語での呼び出し定義
// clfsw32.dll
#include <windows.h>
DWORD LsnRecordSequence(
const CLS_LSN* plsn
);[DllImport("clfsw32.dll", ExactSpelling = true)]
static extern uint LsnRecordSequence(
IntPtr plsn // CLS_LSN*
);<DllImport("clfsw32.dll", ExactSpelling:=True)>
Public Shared Function LsnRecordSequence(
plsn As IntPtr ' CLS_LSN*
) As UInteger
End Function' plsn : CLS_LSN*
Declare PtrSafe Function LsnRecordSequence Lib "clfsw32" ( _
ByVal plsn As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
LsnRecordSequence = ctypes.windll.clfsw32.LsnRecordSequence
LsnRecordSequence.restype = wintypes.DWORD
LsnRecordSequence.argtypes = [
ctypes.c_void_p, # plsn : CLS_LSN*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('clfsw32.dll')
LsnRecordSequence = Fiddle::Function.new(
lib['LsnRecordSequence'],
[
Fiddle::TYPE_VOIDP, # plsn : CLS_LSN*
],
-Fiddle::TYPE_INT)#[link(name = "clfsw32")]
extern "system" {
fn LsnRecordSequence(
plsn: *const CLS_LSN // CLS_LSN*
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("clfsw32.dll")]
public static extern uint LsnRecordSequence(IntPtr plsn);
"@
$api = Add-Type -MemberDefinition $sig -Name 'clfsw32_LsnRecordSequence' -Namespace Win32 -PassThru
# $api::LsnRecordSequence(plsn)#uselib "clfsw32.dll"
#func global LsnRecordSequence "LsnRecordSequence" sptr
; LsnRecordSequence varptr(plsn) ; 戻り値は stat
; plsn : CLS_LSN* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "clfsw32.dll" #cfunc global LsnRecordSequence "LsnRecordSequence" var ; res = LsnRecordSequence(plsn) ; plsn : CLS_LSN* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "clfsw32.dll" #cfunc global LsnRecordSequence "LsnRecordSequence" sptr ; res = LsnRecordSequence(varptr(plsn)) ; plsn : CLS_LSN* -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD LsnRecordSequence(CLS_LSN* plsn) #uselib "clfsw32.dll" #cfunc global LsnRecordSequence "LsnRecordSequence" var ; res = LsnRecordSequence(plsn) ; plsn : CLS_LSN* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD LsnRecordSequence(CLS_LSN* plsn) #uselib "clfsw32.dll" #cfunc global LsnRecordSequence "LsnRecordSequence" intptr ; res = LsnRecordSequence(varptr(plsn)) ; plsn : CLS_LSN* -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
clfsw32 = windows.NewLazySystemDLL("clfsw32.dll")
procLsnRecordSequence = clfsw32.NewProc("LsnRecordSequence")
)
// plsn (CLS_LSN*)
r1, _, err := procLsnRecordSequence.Call(
uintptr(plsn),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction LsnRecordSequence(
plsn: Pointer // CLS_LSN*
): DWORD; stdcall;
external 'clfsw32.dll' name 'LsnRecordSequence';result := DllCall("clfsw32\LsnRecordSequence"
, "Ptr", plsn ; CLS_LSN*
, "UInt") ; return: DWORD●LsnRecordSequence(plsn) = DLL("clfsw32.dll", "dword LsnRecordSequence(void*)")
# 呼び出し: LsnRecordSequence(plsn)
# plsn : CLS_LSN* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。