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