Win32 API 日本語リファレンス
ホームGlobalization › ScriptStringFree

ScriptStringFree

関数
ScriptStringAnalyseの状態オブジェクトを解放する。
DLLUSP10.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

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

HRESULT ScriptStringFree(
    void** pssa
);

パラメーター

名前方向
pssavoid**inout

戻り値の型: HRESULT

各言語での呼び出し定義

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

HRESULT ScriptStringFree(
    void** pssa
);
[DllImport("USP10.dll", ExactSpelling = true)]
static extern int ScriptStringFree(
    IntPtr pssa   // void** in/out
);
<DllImport("USP10.dll", ExactSpelling:=True)>
Public Shared Function ScriptStringFree(
    pssa As IntPtr   ' void** in/out
) As Integer
End Function
' pssa : void** in/out
Declare PtrSafe Function ScriptStringFree Lib "usp10" ( _
    ByVal pssa As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ScriptStringFree = ctypes.windll.usp10.ScriptStringFree
ScriptStringFree.restype = ctypes.c_int
ScriptStringFree.argtypes = [
    ctypes.c_void_p,  # pssa : void** in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('USP10.dll')
ScriptStringFree = Fiddle::Function.new(
  lib['ScriptStringFree'],
  [
    Fiddle::TYPE_VOIDP,  # pssa : void** in/out
  ],
  Fiddle::TYPE_INT)
#[link(name = "usp10")]
extern "system" {
    fn ScriptStringFree(
        pssa: *mut *mut ()  // void** in/out
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("USP10.dll")]
public static extern int ScriptStringFree(IntPtr pssa);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USP10_ScriptStringFree' -Namespace Win32 -PassThru
# $api::ScriptStringFree(pssa)
#uselib "USP10.dll"
#func global ScriptStringFree "ScriptStringFree" sptr
; ScriptStringFree pssa   ; 戻り値は stat
; pssa : void** in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "USP10.dll"
#cfunc global ScriptStringFree "ScriptStringFree" sptr
; res = ScriptStringFree(pssa)
; pssa : void** in/out -> "sptr"
; HRESULT ScriptStringFree(void** pssa)
#uselib "USP10.dll"
#cfunc global ScriptStringFree "ScriptStringFree" intptr
; res = ScriptStringFree(pssa)
; pssa : void** in/out -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	usp10 = windows.NewLazySystemDLL("USP10.dll")
	procScriptStringFree = usp10.NewProc("ScriptStringFree")
)

// pssa (void** in/out)
r1, _, err := procScriptStringFree.Call(
	uintptr(pssa),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function ScriptStringFree(
  pssa: Pointer   // void** in/out
): Integer; stdcall;
  external 'USP10.dll' name 'ScriptStringFree';
result := DllCall("USP10\ScriptStringFree"
    , "Ptr", pssa   ; void** in/out
    , "Int")   ; return: HRESULT
●ScriptStringFree(pssa) = DLL("USP10.dll", "int ScriptStringFree(void*)")
# 呼び出し: ScriptStringFree(pssa)
# pssa : void** in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。