ホーム › Globalization › ScriptString_pLogAttr
ScriptString_pLogAttr
関数解析済み文字列の論理属性配列へのポインタを取得する。
シグネチャ
// USP10.dll
#include <windows.h>
SCRIPT_LOGATTR* ScriptString_pLogAttr(
void* ssa
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| ssa | void* | in |
戻り値の型: SCRIPT_LOGATTR*
各言語での呼び出し定義
// USP10.dll
#include <windows.h>
SCRIPT_LOGATTR* ScriptString_pLogAttr(
void* ssa
);[DllImport("USP10.dll", ExactSpelling = true)]
static extern IntPtr ScriptString_pLogAttr(
IntPtr ssa // void*
);<DllImport("USP10.dll", ExactSpelling:=True)>
Public Shared Function ScriptString_pLogAttr(
ssa As IntPtr ' void*
) As IntPtr
End Function' ssa : void*
Declare PtrSafe Function ScriptString_pLogAttr Lib "usp10" ( _
ByVal ssa As LongPtr) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ScriptString_pLogAttr = ctypes.windll.usp10.ScriptString_pLogAttr
ScriptString_pLogAttr.restype = ctypes.c_void_p
ScriptString_pLogAttr.argtypes = [
ctypes.POINTER(None), # ssa : void*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('USP10.dll')
ScriptString_pLogAttr = Fiddle::Function.new(
lib['ScriptString_pLogAttr'],
[
Fiddle::TYPE_VOIDP, # ssa : void*
],
Fiddle::TYPE_VOIDP)#[link(name = "usp10")]
extern "system" {
fn ScriptString_pLogAttr(
ssa: *mut () // void*
) -> *mut SCRIPT_LOGATTR;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("USP10.dll")]
public static extern IntPtr ScriptString_pLogAttr(IntPtr ssa);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USP10_ScriptString_pLogAttr' -Namespace Win32 -PassThru
# $api::ScriptString_pLogAttr(ssa)#uselib "USP10.dll"
#func global ScriptString_pLogAttr "ScriptString_pLogAttr" sptr
; ScriptString_pLogAttr ssa ; 戻り値は stat
; ssa : void* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "USP10.dll"
#cfunc global ScriptString_pLogAttr "ScriptString_pLogAttr" sptr
; res = ScriptString_pLogAttr(ssa)
; ssa : void* -> "sptr"; SCRIPT_LOGATTR* ScriptString_pLogAttr(void* ssa)
#uselib "USP10.dll"
#cfunc global ScriptString_pLogAttr "ScriptString_pLogAttr" intptr
; res = ScriptString_pLogAttr(ssa)
; ssa : void* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
usp10 = windows.NewLazySystemDLL("USP10.dll")
procScriptString_pLogAttr = usp10.NewProc("ScriptString_pLogAttr")
)
// ssa (void*)
r1, _, err := procScriptString_pLogAttr.Call(
uintptr(ssa),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // SCRIPT_LOGATTR*function ScriptString_pLogAttr(
ssa: Pointer // void*
): Pointer; stdcall;
external 'USP10.dll' name 'ScriptString_pLogAttr';result := DllCall("USP10\ScriptString_pLogAttr"
, "Ptr", ssa ; void*
, "Ptr") ; return: SCRIPT_LOGATTR*●ScriptString_pLogAttr(ssa) = DLL("USP10.dll", "void* ScriptString_pLogAttr(void*)")
# 呼び出し: ScriptString_pLogAttr(ssa)
# ssa : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。