ホーム › Devices.Display › EngCreateClip
EngCreateClip
関数新しいクリップオブジェクトを作成する。
シグネチャ
// GDI32.dll
#include <windows.h>
CLIPOBJ* EngCreateClip(void);パラメーターなし。戻り値: CLIPOBJ*
各言語での呼び出し定義
// GDI32.dll
#include <windows.h>
CLIPOBJ* EngCreateClip(void);[DllImport("GDI32.dll", ExactSpelling = true)]
static extern IntPtr EngCreateClip();<DllImport("GDI32.dll", ExactSpelling:=True)>
Public Shared Function EngCreateClip() As IntPtr
End FunctionDeclare PtrSafe Function EngCreateClip Lib "gdi32" () As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
EngCreateClip = ctypes.windll.gdi32.EngCreateClip
EngCreateClip.restype = ctypes.c_void_p
EngCreateClip.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('GDI32.dll')
EngCreateClip = Fiddle::Function.new(
lib['EngCreateClip'],
[],
Fiddle::TYPE_VOIDP)#[link(name = "gdi32")]
extern "system" {
fn EngCreateClip() -> *mut CLIPOBJ;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("GDI32.dll")]
public static extern IntPtr EngCreateClip();
"@
$api = Add-Type -MemberDefinition $sig -Name 'GDI32_EngCreateClip' -Namespace Win32 -PassThru
# $api::EngCreateClip()#uselib "GDI32.dll"
#func global EngCreateClip "EngCreateClip"
; EngCreateClip ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "GDI32.dll"
#cfunc global EngCreateClip "EngCreateClip"
; res = EngCreateClip(); CLIPOBJ* EngCreateClip()
#uselib "GDI32.dll"
#cfunc global EngCreateClip "EngCreateClip"
; res = EngCreateClip()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
gdi32 = windows.NewLazySystemDLL("GDI32.dll")
procEngCreateClip = gdi32.NewProc("EngCreateClip")
)
r1, _, err := procEngCreateClip.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // CLIPOBJ*function EngCreateClip: Pointer; stdcall;
external 'GDI32.dll' name 'EngCreateClip';result := DllCall("GDI32\EngCreateClip", "Ptr")●EngCreateClip() = DLL("GDI32.dll", "void* EngCreateClip()")
# 呼び出し: EngCreateClip()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。