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