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

uset_setSerializedToOne

関数
USerializedSetを単一コードポイントの集合に設定する。
DLLicuuc.dll呼出規約cdecl

シグネチャ

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

void uset_setSerializedToOne(
    USerializedSet* fillSet,
    INT c
);

パラメーター

名前方向
fillSetUSerializedSet*inout
cINTin

戻り値の型: void

各言語での呼び出し定義

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

void uset_setSerializedToOne(
    USerializedSet* fillSet,
    INT c
);
[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void uset_setSerializedToOne(
    IntPtr fillSet,   // USerializedSet* in/out
    int c   // INT
);
<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub uset_setSerializedToOne(
    fillSet As IntPtr,   ' USerializedSet* in/out
    c As Integer   ' INT
)
End Sub
' fillSet : USerializedSet* in/out
' c : INT
Declare PtrSafe Sub uset_setSerializedToOne Lib "icuuc" ( _
    ByVal fillSet As LongPtr, _
    ByVal c As Long)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

uset_setSerializedToOne = ctypes.cdll.icuuc.uset_setSerializedToOne
uset_setSerializedToOne.restype = None
uset_setSerializedToOne.argtypes = [
    ctypes.c_void_p,  # fillSet : USerializedSet* in/out
    ctypes.c_int,  # c : INT
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('icuuc.dll')
uset_setSerializedToOne = Fiddle::Function.new(
  lib['uset_setSerializedToOne'],
  [
    Fiddle::TYPE_VOIDP,  # fillSet : USerializedSet* in/out
    Fiddle::TYPE_INT,  # c : INT
  ],
  Fiddle::TYPE_VOID, Fiddle::Function::CDECL)
#[link(name = "icuuc")]
extern "C" {
    fn uset_setSerializedToOne(
        fillSet: *mut USerializedSet,  // USerializedSet* in/out
        c: i32  // INT
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void uset_setSerializedToOne(IntPtr fillSet, int c);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_uset_setSerializedToOne' -Namespace Win32 -PassThru
# $api::uset_setSerializedToOne(fillSet, c)
#uselib "icuuc.dll"
#func global uset_setSerializedToOne "uset_setSerializedToOne" sptr, sptr
; uset_setSerializedToOne varptr(fillSet), c
; fillSet : USerializedSet* in/out -> "sptr"
; c : INT -> "sptr"
出力引数:
#uselib "icuuc.dll"
#func global uset_setSerializedToOne "uset_setSerializedToOne" var, int
; uset_setSerializedToOne fillSet, c
; fillSet : USerializedSet* in/out -> "var"
; c : INT -> "int"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; void uset_setSerializedToOne(USerializedSet* fillSet, INT c)
#uselib "icuuc.dll"
#func global uset_setSerializedToOne "uset_setSerializedToOne" var, int
; uset_setSerializedToOne fillSet, c
; fillSet : USerializedSet* in/out -> "var"
; c : INT -> "int"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	icuuc = windows.NewLazySystemDLL("icuuc.dll")
	procuset_setSerializedToOne = icuuc.NewProc("uset_setSerializedToOne")
)

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