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