ホーム › Globalization › uloc_getISOLanguages
uloc_getISOLanguages
関数ISO 639で定義された全言語コードの配列を取得する。
シグネチャ
// icuuc.dll
#include <windows.h>
CHAR** uloc_getISOLanguages(void);パラメーターなし。戻り値: CHAR**
各言語での呼び出し定義
// icuuc.dll
#include <windows.h>
CHAR** uloc_getISOLanguages(void);[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr uloc_getISOLanguages();<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Function uloc_getISOLanguages() As IntPtr
End FunctionDeclare PtrSafe Function uloc_getISOLanguages Lib "icuuc" () As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
uloc_getISOLanguages = ctypes.cdll.icuuc.uloc_getISOLanguages
uloc_getISOLanguages.restype = ctypes.c_void_p
uloc_getISOLanguages.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuuc.dll')
uloc_getISOLanguages = Fiddle::Function.new(
lib['uloc_getISOLanguages'],
[],
Fiddle::TYPE_VOIDP, Fiddle::Function::CDECL)#[link(name = "icuuc")]
extern "C" {
fn uloc_getISOLanguages() -> *mut *mut i8;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr uloc_getISOLanguages();
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_uloc_getISOLanguages' -Namespace Win32 -PassThru
# $api::uloc_getISOLanguages()#uselib "icuuc.dll"
#func global uloc_getISOLanguages "uloc_getISOLanguages"
; uloc_getISOLanguages ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "icuuc.dll"
#cfunc global uloc_getISOLanguages "uloc_getISOLanguages"
; res = uloc_getISOLanguages(); CHAR** uloc_getISOLanguages()
#uselib "icuuc.dll"
#cfunc global uloc_getISOLanguages "uloc_getISOLanguages"
; res = uloc_getISOLanguages()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuuc = windows.NewLazySystemDLL("icuuc.dll")
proculoc_getISOLanguages = icuuc.NewProc("uloc_getISOLanguages")
)
r1, _, err := proculoc_getISOLanguages.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // CHAR**function uloc_getISOLanguages: Pointer; cdecl;
external 'icuuc.dll' name 'uloc_getISOLanguages';result := DllCall("icuuc\uloc_getISOLanguages", "Cdecl Ptr")●uloc_getISOLanguages() = DLL("icuuc.dll", "void* uloc_getISOLanguages()")
# 呼び出し: uloc_getISOLanguages()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。