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