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