Win32 API 日本語リファレンス
ホームGraphics.GdiPlus › GdipPathIterNextMarkerPath

GdipPathIterNextMarkerPath

関数
パスイテレータで次のマーカー間をパスとして取得する。
DLLgdiplus.dll呼出規約winapi

シグネチャ

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

Status GdipPathIterNextMarkerPath(
    GpPathIterator* iterator,
    INT* resultCount,
    GpPath* path
);

パラメーター

名前方向
iteratorGpPathIterator*inout
resultCountINT*inout
pathGpPath*inout

戻り値の型: Status

各言語での呼び出し定義

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

Status GdipPathIterNextMarkerPath(
    GpPathIterator* iterator,
    INT* resultCount,
    GpPath* path
);
[DllImport("gdiplus.dll", ExactSpelling = true)]
static extern int GdipPathIterNextMarkerPath(
    IntPtr iterator,   // GpPathIterator* in/out
    ref int resultCount,   // INT* in/out
    IntPtr path   // GpPath* in/out
);
<DllImport("gdiplus.dll", ExactSpelling:=True)>
Public Shared Function GdipPathIterNextMarkerPath(
    iterator As IntPtr,   ' GpPathIterator* in/out
    ByRef resultCount As Integer,   ' INT* in/out
    path As IntPtr   ' GpPath* in/out
) As Integer
End Function
' iterator : GpPathIterator* in/out
' resultCount : INT* in/out
' path : GpPath* in/out
Declare PtrSafe Function GdipPathIterNextMarkerPath Lib "gdiplus" ( _
    ByVal iterator As LongPtr, _
    ByRef resultCount As Long, _
    ByVal path As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

GdipPathIterNextMarkerPath = ctypes.windll.gdiplus.GdipPathIterNextMarkerPath
GdipPathIterNextMarkerPath.restype = ctypes.c_int
GdipPathIterNextMarkerPath.argtypes = [
    ctypes.c_void_p,  # iterator : GpPathIterator* in/out
    ctypes.POINTER(ctypes.c_int),  # resultCount : INT* in/out
    ctypes.c_void_p,  # path : GpPath* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('gdiplus.dll')
GdipPathIterNextMarkerPath = Fiddle::Function.new(
  lib['GdipPathIterNextMarkerPath'],
  [
    Fiddle::TYPE_VOIDP,  # iterator : GpPathIterator* in/out
    Fiddle::TYPE_VOIDP,  # resultCount : INT* in/out
    Fiddle::TYPE_VOIDP,  # path : GpPath* in/out
  ],
  Fiddle::TYPE_INT)
#[link(name = "gdiplus")]
extern "system" {
    fn GdipPathIterNextMarkerPath(
        iterator: *mut GpPathIterator,  // GpPathIterator* in/out
        resultCount: *mut i32,  // INT* in/out
        path: *mut GpPath  // GpPath* in/out
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("gdiplus.dll")]
public static extern int GdipPathIterNextMarkerPath(IntPtr iterator, ref int resultCount, IntPtr path);
"@
$api = Add-Type -MemberDefinition $sig -Name 'gdiplus_GdipPathIterNextMarkerPath' -Namespace Win32 -PassThru
# $api::GdipPathIterNextMarkerPath(iterator, resultCount, path)
#uselib "gdiplus.dll"
#func global GdipPathIterNextMarkerPath "GdipPathIterNextMarkerPath" sptr, sptr, sptr
; GdipPathIterNextMarkerPath varptr(iterator), varptr(resultCount), varptr(path)   ; 戻り値は stat
; iterator : GpPathIterator* in/out -> "sptr"
; resultCount : INT* in/out -> "sptr"
; path : GpPath* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "gdiplus.dll"
#cfunc global GdipPathIterNextMarkerPath "GdipPathIterNextMarkerPath" var, var, var
; res = GdipPathIterNextMarkerPath(iterator, resultCount, path)
; iterator : GpPathIterator* in/out -> "var"
; resultCount : INT* in/out -> "var"
; path : GpPath* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; Status GdipPathIterNextMarkerPath(GpPathIterator* iterator, INT* resultCount, GpPath* path)
#uselib "gdiplus.dll"
#cfunc global GdipPathIterNextMarkerPath "GdipPathIterNextMarkerPath" var, var, var
; res = GdipPathIterNextMarkerPath(iterator, resultCount, path)
; iterator : GpPathIterator* in/out -> "var"
; resultCount : INT* in/out -> "var"
; path : GpPath* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	gdiplus = windows.NewLazySystemDLL("gdiplus.dll")
	procGdipPathIterNextMarkerPath = gdiplus.NewProc("GdipPathIterNextMarkerPath")
)

// iterator (GpPathIterator* in/out), resultCount (INT* in/out), path (GpPath* in/out)
r1, _, err := procGdipPathIterNextMarkerPath.Call(
	uintptr(iterator),
	uintptr(resultCount),
	uintptr(path),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // Status
function GdipPathIterNextMarkerPath(
  iterator: Pointer;   // GpPathIterator* in/out
  resultCount: Pointer;   // INT* in/out
  path: Pointer   // GpPath* in/out
): Integer; stdcall;
  external 'gdiplus.dll' name 'GdipPathIterNextMarkerPath';
result := DllCall("gdiplus\GdipPathIterNextMarkerPath"
    , "Ptr", iterator   ; GpPathIterator* in/out
    , "Ptr", resultCount   ; INT* in/out
    , "Ptr", path   ; GpPath* in/out
    , "Int")   ; return: Status
●GdipPathIterNextMarkerPath(iterator, resultCount, path) = DLL("gdiplus.dll", "int GdipPathIterNextMarkerPath(void*, void*, void*)")
# 呼び出し: GdipPathIterNextMarkerPath(iterator, resultCount, path)
# iterator : GpPathIterator* in/out -> "void*"
# resultCount : INT* in/out -> "void*"
# path : GpPath* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。