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

udatpg_openBaseSkeletons

関数
生成器が保持する基本スケルトンの列挙子を作成する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

UEnumeration* udatpg_openBaseSkeletons(
    const void** dtpg,
    UErrorCode* pErrorCode
);

パラメーター

名前方向
dtpgvoid**in
pErrorCodeUErrorCode*inout

戻り値の型: UEnumeration*

各言語での呼び出し定義

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

UEnumeration* udatpg_openBaseSkeletons(
    const void** dtpg,
    UErrorCode* pErrorCode
);
[DllImport("icuin.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr udatpg_openBaseSkeletons(
    IntPtr dtpg,   // void**
    ref int pErrorCode   // UErrorCode* in/out
);
<DllImport("icuin.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Function udatpg_openBaseSkeletons(
    dtpg As IntPtr,   ' void**
    ByRef pErrorCode As Integer   ' UErrorCode* in/out
) As IntPtr
End Function
' dtpg : void**
' pErrorCode : UErrorCode* in/out
Declare PtrSafe Function udatpg_openBaseSkeletons Lib "icuin" ( _
    ByVal dtpg As LongPtr, _
    ByRef pErrorCode As Long) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

udatpg_openBaseSkeletons = ctypes.cdll.icuin.udatpg_openBaseSkeletons
udatpg_openBaseSkeletons.restype = ctypes.c_void_p
udatpg_openBaseSkeletons.argtypes = [
    ctypes.c_void_p,  # dtpg : void**
    ctypes.c_void_p,  # pErrorCode : UErrorCode* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procudatpg_openBaseSkeletons = icuin.NewProc("udatpg_openBaseSkeletons")
)

// dtpg (void**), pErrorCode (UErrorCode* in/out)
r1, _, err := procudatpg_openBaseSkeletons.Call(
	uintptr(dtpg),
	uintptr(pErrorCode),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // UEnumeration*
function udatpg_openBaseSkeletons(
  dtpg: Pointer;   // void**
  pErrorCode: Pointer   // UErrorCode* in/out
): Pointer; cdecl;
  external 'icuin.dll' name 'udatpg_openBaseSkeletons';
result := DllCall("icuin\udatpg_openBaseSkeletons"
    , "Ptr", dtpg   ; void**
    , "Ptr", pErrorCode   ; UErrorCode* in/out
    , "Cdecl Ptr")   ; return: UEnumeration*
●udatpg_openBaseSkeletons(dtpg, pErrorCode) = DLL("icuin.dll", "void* udatpg_openBaseSkeletons(void*, void*)")
# 呼び出し: udatpg_openBaseSkeletons(dtpg, pErrorCode)
# dtpg : void** -> "void*"
# pErrorCode : UErrorCode* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。