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

D3DPERF_EndEvent

関数
プロファイラ用に名前付きイベント区間の終了をマークする。
DLLd3d9.dll呼出規約winapi

シグネチャ

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

INT D3DPERF_EndEvent(void);

パラメーターなし。戻り値: INT

各言語での呼び出し定義

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

INT D3DPERF_EndEvent(void);
[DllImport("d3d9.dll", ExactSpelling = true)]
static extern int D3DPERF_EndEvent();
<DllImport("d3d9.dll", ExactSpelling:=True)>
Public Shared Function D3DPERF_EndEvent() As Integer
End Function
Declare PtrSafe Function D3DPERF_EndEvent Lib "d3d9" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

D3DPERF_EndEvent = ctypes.windll.d3d9.D3DPERF_EndEvent
D3DPERF_EndEvent.restype = ctypes.c_int
D3DPERF_EndEvent.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('d3d9.dll')
D3DPERF_EndEvent = Fiddle::Function.new(
  lib['D3DPERF_EndEvent'],
  [],
  Fiddle::TYPE_INT)
#[link(name = "d3d9")]
extern "system" {
    fn D3DPERF_EndEvent() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("d3d9.dll")]
public static extern int D3DPERF_EndEvent();
"@
$api = Add-Type -MemberDefinition $sig -Name 'd3d9_D3DPERF_EndEvent' -Namespace Win32 -PassThru
# $api::D3DPERF_EndEvent()
#uselib "d3d9.dll"
#func global D3DPERF_EndEvent "D3DPERF_EndEvent"
; D3DPERF_EndEvent   ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "d3d9.dll"
#cfunc global D3DPERF_EndEvent "D3DPERF_EndEvent"
; res = D3DPERF_EndEvent()
; INT D3DPERF_EndEvent()
#uselib "d3d9.dll"
#cfunc global D3DPERF_EndEvent "D3DPERF_EndEvent"
; res = D3DPERF_EndEvent()
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	d3d9 = windows.NewLazySystemDLL("d3d9.dll")
	procD3DPERF_EndEvent = d3d9.NewProc("D3DPERF_EndEvent")
)

r1, _, err := procD3DPERF_EndEvent.Call()
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // INT
function D3DPERF_EndEvent: Integer; stdcall;
  external 'd3d9.dll' name 'D3DPERF_EndEvent';
result := DllCall("d3d9\D3DPERF_EndEvent", "Int")
●D3DPERF_EndEvent() = DLL("d3d9.dll", "int D3DPERF_EndEvent()")
# 呼び出し: D3DPERF_EndEvent()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。