ホーム › Globalization › ScriptPlaceOpenType
ScriptPlaceOpenType
関数OpenType機能を用いてグリフの位置と幅を算出する。
シグネチャ
// USP10.dll
#include <windows.h>
HRESULT ScriptPlaceOpenType(
HDC hdc, // optional
void** psc,
SCRIPT_ANALYSIS* psa,
DWORD tagScript,
DWORD tagLangSys,
INT* rcRangeChars, // optional
TEXTRANGE_PROPERTIES** rpRangeProperties, // optional
INT cRanges,
LPCWSTR pwcChars,
WORD* pwLogClust,
SCRIPT_CHARPROP* pCharProps,
INT cChars,
const WORD* pwGlyphs,
const SCRIPT_GLYPHPROP* pGlyphProps,
INT cGlyphs,
INT* piAdvance,
GOFFSET* pGoffset,
ABC* pABC // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hdc | HDC | inoptional |
| psc | void** | inout |
| psa | SCRIPT_ANALYSIS* | inout |
| tagScript | DWORD | in |
| tagLangSys | DWORD | in |
| rcRangeChars | INT* | inoptional |
| rpRangeProperties | TEXTRANGE_PROPERTIES** | inoptional |
| cRanges | INT | in |
| pwcChars | LPCWSTR | in |
| pwLogClust | WORD* | in |
| pCharProps | SCRIPT_CHARPROP* | in |
| cChars | INT | in |
| pwGlyphs | WORD* | in |
| pGlyphProps | SCRIPT_GLYPHPROP* | in |
| cGlyphs | INT | in |
| piAdvance | INT* | out |
| pGoffset | GOFFSET* | out |
| pABC | ABC* | outoptional |
戻り値の型: HRESULT
各言語での呼び出し定義
// USP10.dll
#include <windows.h>
HRESULT ScriptPlaceOpenType(
HDC hdc, // optional
void** psc,
SCRIPT_ANALYSIS* psa,
DWORD tagScript,
DWORD tagLangSys,
INT* rcRangeChars, // optional
TEXTRANGE_PROPERTIES** rpRangeProperties, // optional
INT cRanges,
LPCWSTR pwcChars,
WORD* pwLogClust,
SCRIPT_CHARPROP* pCharProps,
INT cChars,
const WORD* pwGlyphs,
const SCRIPT_GLYPHPROP* pGlyphProps,
INT cGlyphs,
INT* piAdvance,
GOFFSET* pGoffset,
ABC* pABC // optional
);[DllImport("USP10.dll", ExactSpelling = true)]
static extern int ScriptPlaceOpenType(
IntPtr hdc, // HDC optional
IntPtr psc, // void** in/out
IntPtr psa, // SCRIPT_ANALYSIS* in/out
uint tagScript, // DWORD
uint tagLangSys, // DWORD
IntPtr rcRangeChars, // INT* optional
IntPtr rpRangeProperties, // TEXTRANGE_PROPERTIES** optional
int cRanges, // INT
[MarshalAs(UnmanagedType.LPWStr)] string pwcChars, // LPCWSTR
ref ushort pwLogClust, // WORD*
IntPtr pCharProps, // SCRIPT_CHARPROP*
int cChars, // INT
ref ushort pwGlyphs, // WORD*
IntPtr pGlyphProps, // SCRIPT_GLYPHPROP*
int cGlyphs, // INT
out int piAdvance, // INT* out
IntPtr pGoffset, // GOFFSET* out
IntPtr pABC // ABC* optional, out
);<DllImport("USP10.dll", ExactSpelling:=True)>
Public Shared Function ScriptPlaceOpenType(
hdc As IntPtr, ' HDC optional
psc As IntPtr, ' void** in/out
psa As IntPtr, ' SCRIPT_ANALYSIS* in/out
tagScript As UInteger, ' DWORD
tagLangSys As UInteger, ' DWORD
rcRangeChars As IntPtr, ' INT* optional
rpRangeProperties As IntPtr, ' TEXTRANGE_PROPERTIES** optional
cRanges As Integer, ' INT
<MarshalAs(UnmanagedType.LPWStr)> pwcChars As String, ' LPCWSTR
ByRef pwLogClust As UShort, ' WORD*
pCharProps As IntPtr, ' SCRIPT_CHARPROP*
cChars As Integer, ' INT
ByRef pwGlyphs As UShort, ' WORD*
pGlyphProps As IntPtr, ' SCRIPT_GLYPHPROP*
cGlyphs As Integer, ' INT
<Out> ByRef piAdvance As Integer, ' INT* out
pGoffset As IntPtr, ' GOFFSET* out
pABC As IntPtr ' ABC* optional, out
) As Integer
End Function' hdc : HDC optional
' psc : void** in/out
' psa : SCRIPT_ANALYSIS* in/out
' tagScript : DWORD
' tagLangSys : DWORD
' rcRangeChars : INT* optional
' rpRangeProperties : TEXTRANGE_PROPERTIES** optional
' cRanges : INT
' pwcChars : LPCWSTR
' pwLogClust : WORD*
' pCharProps : SCRIPT_CHARPROP*
' cChars : INT
' pwGlyphs : WORD*
' pGlyphProps : SCRIPT_GLYPHPROP*
' cGlyphs : INT
' piAdvance : INT* out
' pGoffset : GOFFSET* out
' pABC : ABC* optional, out
Declare PtrSafe Function ScriptPlaceOpenType Lib "usp10" ( _
ByVal hdc As LongPtr, _
ByVal psc As LongPtr, _
ByVal psa As LongPtr, _
ByVal tagScript As Long, _
ByVal tagLangSys As Long, _
ByVal rcRangeChars As LongPtr, _
ByVal rpRangeProperties As LongPtr, _
ByVal cRanges As Long, _
ByVal pwcChars As LongPtr, _
ByRef pwLogClust As Integer, _
ByVal pCharProps As LongPtr, _
ByVal cChars As Long, _
ByRef pwGlyphs As Integer, _
ByVal pGlyphProps As LongPtr, _
ByVal cGlyphs As Long, _
ByRef piAdvance As Long, _
ByVal pGoffset As LongPtr, _
ByVal pABC As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ScriptPlaceOpenType = ctypes.windll.usp10.ScriptPlaceOpenType
ScriptPlaceOpenType.restype = ctypes.c_int
ScriptPlaceOpenType.argtypes = [
wintypes.HANDLE, # hdc : HDC optional
ctypes.c_void_p, # psc : void** in/out
ctypes.c_void_p, # psa : SCRIPT_ANALYSIS* in/out
wintypes.DWORD, # tagScript : DWORD
wintypes.DWORD, # tagLangSys : DWORD
ctypes.POINTER(ctypes.c_int), # rcRangeChars : INT* optional
ctypes.c_void_p, # rpRangeProperties : TEXTRANGE_PROPERTIES** optional
ctypes.c_int, # cRanges : INT
wintypes.LPCWSTR, # pwcChars : LPCWSTR
ctypes.POINTER(ctypes.c_ushort), # pwLogClust : WORD*
ctypes.c_void_p, # pCharProps : SCRIPT_CHARPROP*
ctypes.c_int, # cChars : INT
ctypes.POINTER(ctypes.c_ushort), # pwGlyphs : WORD*
ctypes.c_void_p, # pGlyphProps : SCRIPT_GLYPHPROP*
ctypes.c_int, # cGlyphs : INT
ctypes.POINTER(ctypes.c_int), # piAdvance : INT* out
ctypes.c_void_p, # pGoffset : GOFFSET* out
ctypes.c_void_p, # pABC : ABC* optional, out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('USP10.dll')
ScriptPlaceOpenType = Fiddle::Function.new(
lib['ScriptPlaceOpenType'],
[
Fiddle::TYPE_VOIDP, # hdc : HDC optional
Fiddle::TYPE_VOIDP, # psc : void** in/out
Fiddle::TYPE_VOIDP, # psa : SCRIPT_ANALYSIS* in/out
-Fiddle::TYPE_INT, # tagScript : DWORD
-Fiddle::TYPE_INT, # tagLangSys : DWORD
Fiddle::TYPE_VOIDP, # rcRangeChars : INT* optional
Fiddle::TYPE_VOIDP, # rpRangeProperties : TEXTRANGE_PROPERTIES** optional
Fiddle::TYPE_INT, # cRanges : INT
Fiddle::TYPE_VOIDP, # pwcChars : LPCWSTR
Fiddle::TYPE_VOIDP, # pwLogClust : WORD*
Fiddle::TYPE_VOIDP, # pCharProps : SCRIPT_CHARPROP*
Fiddle::TYPE_INT, # cChars : INT
Fiddle::TYPE_VOIDP, # pwGlyphs : WORD*
Fiddle::TYPE_VOIDP, # pGlyphProps : SCRIPT_GLYPHPROP*
Fiddle::TYPE_INT, # cGlyphs : INT
Fiddle::TYPE_VOIDP, # piAdvance : INT* out
Fiddle::TYPE_VOIDP, # pGoffset : GOFFSET* out
Fiddle::TYPE_VOIDP, # pABC : ABC* optional, out
],
Fiddle::TYPE_INT)#[link(name = "usp10")]
extern "system" {
fn ScriptPlaceOpenType(
hdc: *mut core::ffi::c_void, // HDC optional
psc: *mut *mut (), // void** in/out
psa: *mut SCRIPT_ANALYSIS, // SCRIPT_ANALYSIS* in/out
tagScript: u32, // DWORD
tagLangSys: u32, // DWORD
rcRangeChars: *mut i32, // INT* optional
rpRangeProperties: *mut *mut TEXTRANGE_PROPERTIES, // TEXTRANGE_PROPERTIES** optional
cRanges: i32, // INT
pwcChars: *const u16, // LPCWSTR
pwLogClust: *mut u16, // WORD*
pCharProps: *mut SCRIPT_CHARPROP, // SCRIPT_CHARPROP*
cChars: i32, // INT
pwGlyphs: *const u16, // WORD*
pGlyphProps: *const SCRIPT_GLYPHPROP, // SCRIPT_GLYPHPROP*
cGlyphs: i32, // INT
piAdvance: *mut i32, // INT* out
pGoffset: *mut GOFFSET, // GOFFSET* out
pABC: *mut ABC // ABC* optional, out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("USP10.dll")]
public static extern int ScriptPlaceOpenType(IntPtr hdc, IntPtr psc, IntPtr psa, uint tagScript, uint tagLangSys, IntPtr rcRangeChars, IntPtr rpRangeProperties, int cRanges, [MarshalAs(UnmanagedType.LPWStr)] string pwcChars, ref ushort pwLogClust, IntPtr pCharProps, int cChars, ref ushort pwGlyphs, IntPtr pGlyphProps, int cGlyphs, out int piAdvance, IntPtr pGoffset, IntPtr pABC);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USP10_ScriptPlaceOpenType' -Namespace Win32 -PassThru
# $api::ScriptPlaceOpenType(hdc, psc, psa, tagScript, tagLangSys, rcRangeChars, rpRangeProperties, cRanges, pwcChars, pwLogClust, pCharProps, cChars, pwGlyphs, pGlyphProps, cGlyphs, piAdvance, pGoffset, pABC)#uselib "USP10.dll"
#func global ScriptPlaceOpenType "ScriptPlaceOpenType" sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr, sptr
; ScriptPlaceOpenType hdc, psc, varptr(psa), tagScript, tagLangSys, varptr(rcRangeChars), varptr(rpRangeProperties), cRanges, pwcChars, varptr(pwLogClust), varptr(pCharProps), cChars, varptr(pwGlyphs), varptr(pGlyphProps), cGlyphs, varptr(piAdvance), varptr(pGoffset), varptr(pABC) ; 戻り値は stat
; hdc : HDC optional -> "sptr"
; psc : void** in/out -> "sptr"
; psa : SCRIPT_ANALYSIS* in/out -> "sptr"
; tagScript : DWORD -> "sptr"
; tagLangSys : DWORD -> "sptr"
; rcRangeChars : INT* optional -> "sptr"
; rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "sptr"
; cRanges : INT -> "sptr"
; pwcChars : LPCWSTR -> "sptr"
; pwLogClust : WORD* -> "sptr"
; pCharProps : SCRIPT_CHARPROP* -> "sptr"
; cChars : INT -> "sptr"
; pwGlyphs : WORD* -> "sptr"
; pGlyphProps : SCRIPT_GLYPHPROP* -> "sptr"
; cGlyphs : INT -> "sptr"
; piAdvance : INT* out -> "sptr"
; pGoffset : GOFFSET* out -> "sptr"
; pABC : ABC* optional, out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "USP10.dll" #cfunc global ScriptPlaceOpenType "ScriptPlaceOpenType" sptr, sptr, var, int, int, var, var, int, wstr, var, var, int, var, var, int, var, var, var ; res = ScriptPlaceOpenType(hdc, psc, psa, tagScript, tagLangSys, rcRangeChars, rpRangeProperties, cRanges, pwcChars, pwLogClust, pCharProps, cChars, pwGlyphs, pGlyphProps, cGlyphs, piAdvance, pGoffset, pABC) ; hdc : HDC optional -> "sptr" ; psc : void** in/out -> "sptr" ; psa : SCRIPT_ANALYSIS* in/out -> "var" ; tagScript : DWORD -> "int" ; tagLangSys : DWORD -> "int" ; rcRangeChars : INT* optional -> "var" ; rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "var" ; cRanges : INT -> "int" ; pwcChars : LPCWSTR -> "wstr" ; pwLogClust : WORD* -> "var" ; pCharProps : SCRIPT_CHARPROP* -> "var" ; cChars : INT -> "int" ; pwGlyphs : WORD* -> "var" ; pGlyphProps : SCRIPT_GLYPHPROP* -> "var" ; cGlyphs : INT -> "int" ; piAdvance : INT* out -> "var" ; pGoffset : GOFFSET* out -> "var" ; pABC : ABC* optional, out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "USP10.dll" #cfunc global ScriptPlaceOpenType "ScriptPlaceOpenType" sptr, sptr, sptr, int, int, sptr, sptr, int, wstr, sptr, sptr, int, sptr, sptr, int, sptr, sptr, sptr ; res = ScriptPlaceOpenType(hdc, psc, varptr(psa), tagScript, tagLangSys, varptr(rcRangeChars), varptr(rpRangeProperties), cRanges, pwcChars, varptr(pwLogClust), varptr(pCharProps), cChars, varptr(pwGlyphs), varptr(pGlyphProps), cGlyphs, varptr(piAdvance), varptr(pGoffset), varptr(pABC)) ; hdc : HDC optional -> "sptr" ; psc : void** in/out -> "sptr" ; psa : SCRIPT_ANALYSIS* in/out -> "sptr" ; tagScript : DWORD -> "int" ; tagLangSys : DWORD -> "int" ; rcRangeChars : INT* optional -> "sptr" ; rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "sptr" ; cRanges : INT -> "int" ; pwcChars : LPCWSTR -> "wstr" ; pwLogClust : WORD* -> "sptr" ; pCharProps : SCRIPT_CHARPROP* -> "sptr" ; cChars : INT -> "int" ; pwGlyphs : WORD* -> "sptr" ; pGlyphProps : SCRIPT_GLYPHPROP* -> "sptr" ; cGlyphs : INT -> "int" ; piAdvance : INT* out -> "sptr" ; pGoffset : GOFFSET* out -> "sptr" ; pABC : ABC* optional, out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; HRESULT ScriptPlaceOpenType(HDC hdc, void** psc, SCRIPT_ANALYSIS* psa, DWORD tagScript, DWORD tagLangSys, INT* rcRangeChars, TEXTRANGE_PROPERTIES** rpRangeProperties, INT cRanges, LPCWSTR pwcChars, WORD* pwLogClust, SCRIPT_CHARPROP* pCharProps, INT cChars, WORD* pwGlyphs, SCRIPT_GLYPHPROP* pGlyphProps, INT cGlyphs, INT* piAdvance, GOFFSET* pGoffset, ABC* pABC) #uselib "USP10.dll" #cfunc global ScriptPlaceOpenType "ScriptPlaceOpenType" intptr, intptr, var, int, int, var, var, int, wstr, var, var, int, var, var, int, var, var, var ; res = ScriptPlaceOpenType(hdc, psc, psa, tagScript, tagLangSys, rcRangeChars, rpRangeProperties, cRanges, pwcChars, pwLogClust, pCharProps, cChars, pwGlyphs, pGlyphProps, cGlyphs, piAdvance, pGoffset, pABC) ; hdc : HDC optional -> "intptr" ; psc : void** in/out -> "intptr" ; psa : SCRIPT_ANALYSIS* in/out -> "var" ; tagScript : DWORD -> "int" ; tagLangSys : DWORD -> "int" ; rcRangeChars : INT* optional -> "var" ; rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "var" ; cRanges : INT -> "int" ; pwcChars : LPCWSTR -> "wstr" ; pwLogClust : WORD* -> "var" ; pCharProps : SCRIPT_CHARPROP* -> "var" ; cChars : INT -> "int" ; pwGlyphs : WORD* -> "var" ; pGlyphProps : SCRIPT_GLYPHPROP* -> "var" ; cGlyphs : INT -> "int" ; piAdvance : INT* out -> "var" ; pGoffset : GOFFSET* out -> "var" ; pABC : ABC* optional, out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; HRESULT ScriptPlaceOpenType(HDC hdc, void** psc, SCRIPT_ANALYSIS* psa, DWORD tagScript, DWORD tagLangSys, INT* rcRangeChars, TEXTRANGE_PROPERTIES** rpRangeProperties, INT cRanges, LPCWSTR pwcChars, WORD* pwLogClust, SCRIPT_CHARPROP* pCharProps, INT cChars, WORD* pwGlyphs, SCRIPT_GLYPHPROP* pGlyphProps, INT cGlyphs, INT* piAdvance, GOFFSET* pGoffset, ABC* pABC) #uselib "USP10.dll" #cfunc global ScriptPlaceOpenType "ScriptPlaceOpenType" intptr, intptr, intptr, int, int, intptr, intptr, int, wstr, intptr, intptr, int, intptr, intptr, int, intptr, intptr, intptr ; res = ScriptPlaceOpenType(hdc, psc, varptr(psa), tagScript, tagLangSys, varptr(rcRangeChars), varptr(rpRangeProperties), cRanges, pwcChars, varptr(pwLogClust), varptr(pCharProps), cChars, varptr(pwGlyphs), varptr(pGlyphProps), cGlyphs, varptr(piAdvance), varptr(pGoffset), varptr(pABC)) ; hdc : HDC optional -> "intptr" ; psc : void** in/out -> "intptr" ; psa : SCRIPT_ANALYSIS* in/out -> "intptr" ; tagScript : DWORD -> "int" ; tagLangSys : DWORD -> "int" ; rcRangeChars : INT* optional -> "intptr" ; rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "intptr" ; cRanges : INT -> "int" ; pwcChars : LPCWSTR -> "wstr" ; pwLogClust : WORD* -> "intptr" ; pCharProps : SCRIPT_CHARPROP* -> "intptr" ; cChars : INT -> "int" ; pwGlyphs : WORD* -> "intptr" ; pGlyphProps : SCRIPT_GLYPHPROP* -> "intptr" ; cGlyphs : INT -> "int" ; piAdvance : INT* out -> "intptr" ; pGoffset : GOFFSET* out -> "intptr" ; pABC : ABC* optional, out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
usp10 = windows.NewLazySystemDLL("USP10.dll")
procScriptPlaceOpenType = usp10.NewProc("ScriptPlaceOpenType")
)
// hdc (HDC optional), psc (void** in/out), psa (SCRIPT_ANALYSIS* in/out), tagScript (DWORD), tagLangSys (DWORD), rcRangeChars (INT* optional), rpRangeProperties (TEXTRANGE_PROPERTIES** optional), cRanges (INT), pwcChars (LPCWSTR), pwLogClust (WORD*), pCharProps (SCRIPT_CHARPROP*), cChars (INT), pwGlyphs (WORD*), pGlyphProps (SCRIPT_GLYPHPROP*), cGlyphs (INT), piAdvance (INT* out), pGoffset (GOFFSET* out), pABC (ABC* optional, out)
r1, _, err := procScriptPlaceOpenType.Call(
uintptr(hdc),
uintptr(psc),
uintptr(psa),
uintptr(tagScript),
uintptr(tagLangSys),
uintptr(rcRangeChars),
uintptr(rpRangeProperties),
uintptr(cRanges),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(pwcChars))),
uintptr(pwLogClust),
uintptr(pCharProps),
uintptr(cChars),
uintptr(pwGlyphs),
uintptr(pGlyphProps),
uintptr(cGlyphs),
uintptr(piAdvance),
uintptr(pGoffset),
uintptr(pABC),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction ScriptPlaceOpenType(
hdc: THandle; // HDC optional
psc: Pointer; // void** in/out
psa: Pointer; // SCRIPT_ANALYSIS* in/out
tagScript: DWORD; // DWORD
tagLangSys: DWORD; // DWORD
rcRangeChars: Pointer; // INT* optional
rpRangeProperties: Pointer; // TEXTRANGE_PROPERTIES** optional
cRanges: Integer; // INT
pwcChars: PWideChar; // LPCWSTR
pwLogClust: Pointer; // WORD*
pCharProps: Pointer; // SCRIPT_CHARPROP*
cChars: Integer; // INT
pwGlyphs: Pointer; // WORD*
pGlyphProps: Pointer; // SCRIPT_GLYPHPROP*
cGlyphs: Integer; // INT
piAdvance: Pointer; // INT* out
pGoffset: Pointer; // GOFFSET* out
pABC: Pointer // ABC* optional, out
): Integer; stdcall;
external 'USP10.dll' name 'ScriptPlaceOpenType';result := DllCall("USP10\ScriptPlaceOpenType"
, "Ptr", hdc ; HDC optional
, "Ptr", psc ; void** in/out
, "Ptr", psa ; SCRIPT_ANALYSIS* in/out
, "UInt", tagScript ; DWORD
, "UInt", tagLangSys ; DWORD
, "Ptr", rcRangeChars ; INT* optional
, "Ptr", rpRangeProperties ; TEXTRANGE_PROPERTIES** optional
, "Int", cRanges ; INT
, "WStr", pwcChars ; LPCWSTR
, "Ptr", pwLogClust ; WORD*
, "Ptr", pCharProps ; SCRIPT_CHARPROP*
, "Int", cChars ; INT
, "Ptr", pwGlyphs ; WORD*
, "Ptr", pGlyphProps ; SCRIPT_GLYPHPROP*
, "Int", cGlyphs ; INT
, "Ptr", piAdvance ; INT* out
, "Ptr", pGoffset ; GOFFSET* out
, "Ptr", pABC ; ABC* optional, out
, "Int") ; return: HRESULT●ScriptPlaceOpenType(hdc, psc, psa, tagScript, tagLangSys, rcRangeChars, rpRangeProperties, cRanges, pwcChars, pwLogClust, pCharProps, cChars, pwGlyphs, pGlyphProps, cGlyphs, piAdvance, pGoffset, pABC) = DLL("USP10.dll", "int ScriptPlaceOpenType(void*, void*, void*, dword, dword, void*, void*, int, char*, void*, void*, int, void*, void*, int, void*, void*, void*)")
# 呼び出し: ScriptPlaceOpenType(hdc, psc, psa, tagScript, tagLangSys, rcRangeChars, rpRangeProperties, cRanges, pwcChars, pwLogClust, pCharProps, cChars, pwGlyphs, pGlyphProps, cGlyphs, piAdvance, pGoffset, pABC)
# hdc : HDC optional -> "void*"
# psc : void** in/out -> "void*"
# psa : SCRIPT_ANALYSIS* in/out -> "void*"
# tagScript : DWORD -> "dword"
# tagLangSys : DWORD -> "dword"
# rcRangeChars : INT* optional -> "void*"
# rpRangeProperties : TEXTRANGE_PROPERTIES** optional -> "void*"
# cRanges : INT -> "int"
# pwcChars : LPCWSTR -> "char*"
# pwLogClust : WORD* -> "void*"
# pCharProps : SCRIPT_CHARPROP* -> "void*"
# cChars : INT -> "int"
# pwGlyphs : WORD* -> "void*"
# pGlyphProps : SCRIPT_GLYPHPROP* -> "void*"
# cGlyphs : INT -> "int"
# piAdvance : INT* out -> "void*"
# pGoffset : GOFFSET* out -> "void*"
# pABC : ABC* optional, out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。