Win32 API 日本語リファレンス
ホームMedia.MediaFoundation › OPMGetVideoOutputsFromIDirect3DDevice9Object

OPMGetVideoOutputsFromIDirect3DDevice9Object

関数
Direct3D9デバイスから出力保護管理用のビデオ出力を取得する。
DLLdxva2.dll呼出規約winapi対応OSWindows Vista 以降

シグネチャ

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

HRESULT OPMGetVideoOutputsFromIDirect3DDevice9Object(
    IDirect3DDevice9* pDirect3DDevice9,
    OPM_VIDEO_OUTPUT_SEMANTICS vos,
    DWORD* pulNumVideoOutputs,
    IOPMVideoOutput*** pppOPMVideoOutputArray
);

パラメーター

名前方向説明
pDirect3DDevice9IDirect3DDevice9*inDirect3D デバイスの IDirect3DDevice9 インターフェイスへのポインター。
vosOPM_VIDEO_OUTPUT_SEMANTICSin

OPM_VIDEO_OUTPUT_SEMANTICS 列挙体のメンバー。

意味
OPM_VOS_OPM_SEMANTICS
返される IOPMVideoOutput ポインターは OPM セマンティクスを使用します。
OPM_VOS_COPP_SEMANTICS
返される IOPMVideoOutput ポインターは Certified Output Protection Protocol (COPP) セマンティクスを使用します。
pulNumVideoOutputsDWORD*outpppOPMVideoOutputArray パラメーターで返される IOPMVideoOutput ポインターの数を受け取ります。
pppOPMVideoOutputArrayIOPMVideoOutput***outIOPMVideoOutput ポインターの配列へのポインターを受け取ります。各 IOPMVideoOutput ポインターは、単一の物理モニターに関連付けられています。呼び出し元は、配列内の各ポインターを解放し、CoTaskMemFree を呼び出して配列を解放する必要があります。

戻り値の型: HRESULT

公式ドキュメント

特定の Direct3D デバイスに関連付けられた各物理モニターに対して、Output Protection Manager (OPM) オブジェクトを作成します。

戻り値

この関数が成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

解説(Remarks)

単一の Direct3D デバイスを複数の物理モニターに関連付けることができます。各物理モニターには独自のコネクターがあります。アプリケーションは、pppOPMVideoOutputArray で返される IOPMVideoOutput ポインターを使用して、各物理モニターに対して個別に保護メカニズムを設定する必要があります。

IOPMVideoOutput インターフェイスには、vos パラメーターの値に応じて 2 つの動作モードがあります。vosOPM_VOS_COPP_SEMANTICS の場合、IOPMVideoOutput は COPP セマンティクスを使用します。このモードは COPP との下位互換性を目的としています。vosOPM_VOS_OPM_SEMANTICS の場合、IOPMVideoOutput は新しい OPM セマンティクスを使用します。動作の違いは、各メソッドのリファレンスページに記載されています。モードはオブジェクトの有効期間中に変更されることはありません。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での呼び出し定義

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

HRESULT OPMGetVideoOutputsFromIDirect3DDevice9Object(
    IDirect3DDevice9* pDirect3DDevice9,
    OPM_VIDEO_OUTPUT_SEMANTICS vos,
    DWORD* pulNumVideoOutputs,
    IOPMVideoOutput*** pppOPMVideoOutputArray
);
[DllImport("dxva2.dll", ExactSpelling = true)]
static extern int OPMGetVideoOutputsFromIDirect3DDevice9Object(
    IntPtr pDirect3DDevice9,   // IDirect3DDevice9*
    int vos,   // OPM_VIDEO_OUTPUT_SEMANTICS
    out uint pulNumVideoOutputs,   // DWORD* out
    IntPtr pppOPMVideoOutputArray   // IOPMVideoOutput*** out
);
<DllImport("dxva2.dll", ExactSpelling:=True)>
Public Shared Function OPMGetVideoOutputsFromIDirect3DDevice9Object(
    pDirect3DDevice9 As IntPtr,   ' IDirect3DDevice9*
    vos As Integer,   ' OPM_VIDEO_OUTPUT_SEMANTICS
    <Out> ByRef pulNumVideoOutputs As UInteger,   ' DWORD* out
    pppOPMVideoOutputArray As IntPtr   ' IOPMVideoOutput*** out
) As Integer
End Function
' pDirect3DDevice9 : IDirect3DDevice9*
' vos : OPM_VIDEO_OUTPUT_SEMANTICS
' pulNumVideoOutputs : DWORD* out
' pppOPMVideoOutputArray : IOPMVideoOutput*** out
Declare PtrSafe Function OPMGetVideoOutputsFromIDirect3DDevice9Object Lib "dxva2" ( _
    ByVal pDirect3DDevice9 As LongPtr, _
    ByVal vos As Long, _
    ByRef pulNumVideoOutputs As Long, _
    ByVal pppOPMVideoOutputArray As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

OPMGetVideoOutputsFromIDirect3DDevice9Object = ctypes.windll.dxva2.OPMGetVideoOutputsFromIDirect3DDevice9Object
OPMGetVideoOutputsFromIDirect3DDevice9Object.restype = ctypes.c_int
OPMGetVideoOutputsFromIDirect3DDevice9Object.argtypes = [
    ctypes.c_void_p,  # pDirect3DDevice9 : IDirect3DDevice9*
    ctypes.c_int,  # vos : OPM_VIDEO_OUTPUT_SEMANTICS
    ctypes.POINTER(wintypes.DWORD),  # pulNumVideoOutputs : DWORD* out
    ctypes.c_void_p,  # pppOPMVideoOutputArray : IOPMVideoOutput*** out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('dxva2.dll')
OPMGetVideoOutputsFromIDirect3DDevice9Object = Fiddle::Function.new(
  lib['OPMGetVideoOutputsFromIDirect3DDevice9Object'],
  [
    Fiddle::TYPE_VOIDP,  # pDirect3DDevice9 : IDirect3DDevice9*
    Fiddle::TYPE_INT,  # vos : OPM_VIDEO_OUTPUT_SEMANTICS
    Fiddle::TYPE_VOIDP,  # pulNumVideoOutputs : DWORD* out
    Fiddle::TYPE_VOIDP,  # pppOPMVideoOutputArray : IOPMVideoOutput*** out
  ],
  Fiddle::TYPE_INT)
#[link(name = "dxva2")]
extern "system" {
    fn OPMGetVideoOutputsFromIDirect3DDevice9Object(
        pDirect3DDevice9: *mut core::ffi::c_void,  // IDirect3DDevice9*
        vos: i32,  // OPM_VIDEO_OUTPUT_SEMANTICS
        pulNumVideoOutputs: *mut u32,  // DWORD* out
        pppOPMVideoOutputArray: *mut *mut *mut core::ffi::c_void  // IOPMVideoOutput*** out
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("dxva2.dll")]
public static extern int OPMGetVideoOutputsFromIDirect3DDevice9Object(IntPtr pDirect3DDevice9, int vos, out uint pulNumVideoOutputs, IntPtr pppOPMVideoOutputArray);
"@
$api = Add-Type -MemberDefinition $sig -Name 'dxva2_OPMGetVideoOutputsFromIDirect3DDevice9Object' -Namespace Win32 -PassThru
# $api::OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
#uselib "dxva2.dll"
#func global OPMGetVideoOutputsFromIDirect3DDevice9Object "OPMGetVideoOutputsFromIDirect3DDevice9Object" sptr, sptr, sptr, sptr
; OPMGetVideoOutputsFromIDirect3DDevice9Object pDirect3DDevice9, vos, varptr(pulNumVideoOutputs), pppOPMVideoOutputArray   ; 戻り値は stat
; pDirect3DDevice9 : IDirect3DDevice9* -> "sptr"
; vos : OPM_VIDEO_OUTPUT_SEMANTICS -> "sptr"
; pulNumVideoOutputs : DWORD* out -> "sptr"
; pppOPMVideoOutputArray : IOPMVideoOutput*** out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "dxva2.dll"
#cfunc global OPMGetVideoOutputsFromIDirect3DDevice9Object "OPMGetVideoOutputsFromIDirect3DDevice9Object" sptr, int, var, sptr
; res = OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
; pDirect3DDevice9 : IDirect3DDevice9* -> "sptr"
; vos : OPM_VIDEO_OUTPUT_SEMANTICS -> "int"
; pulNumVideoOutputs : DWORD* out -> "var"
; pppOPMVideoOutputArray : IOPMVideoOutput*** out -> "sptr"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; HRESULT OPMGetVideoOutputsFromIDirect3DDevice9Object(IDirect3DDevice9* pDirect3DDevice9, OPM_VIDEO_OUTPUT_SEMANTICS vos, DWORD* pulNumVideoOutputs, IOPMVideoOutput*** pppOPMVideoOutputArray)
#uselib "dxva2.dll"
#cfunc global OPMGetVideoOutputsFromIDirect3DDevice9Object "OPMGetVideoOutputsFromIDirect3DDevice9Object" intptr, int, var, intptr
; res = OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
; pDirect3DDevice9 : IDirect3DDevice9* -> "intptr"
; vos : OPM_VIDEO_OUTPUT_SEMANTICS -> "int"
; pulNumVideoOutputs : DWORD* out -> "var"
; pppOPMVideoOutputArray : IOPMVideoOutput*** out -> "intptr"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	dxva2 = windows.NewLazySystemDLL("dxva2.dll")
	procOPMGetVideoOutputsFromIDirect3DDevice9Object = dxva2.NewProc("OPMGetVideoOutputsFromIDirect3DDevice9Object")
)

// pDirect3DDevice9 (IDirect3DDevice9*), vos (OPM_VIDEO_OUTPUT_SEMANTICS), pulNumVideoOutputs (DWORD* out), pppOPMVideoOutputArray (IOPMVideoOutput*** out)
r1, _, err := procOPMGetVideoOutputsFromIDirect3DDevice9Object.Call(
	uintptr(pDirect3DDevice9),
	uintptr(vos),
	uintptr(pulNumVideoOutputs),
	uintptr(pppOPMVideoOutputArray),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function OPMGetVideoOutputsFromIDirect3DDevice9Object(
  pDirect3DDevice9: Pointer;   // IDirect3DDevice9*
  vos: Integer;   // OPM_VIDEO_OUTPUT_SEMANTICS
  pulNumVideoOutputs: Pointer;   // DWORD* out
  pppOPMVideoOutputArray: Pointer   // IOPMVideoOutput*** out
): Integer; stdcall;
  external 'dxva2.dll' name 'OPMGetVideoOutputsFromIDirect3DDevice9Object';
result := DllCall("dxva2\OPMGetVideoOutputsFromIDirect3DDevice9Object"
    , "Ptr", pDirect3DDevice9   ; IDirect3DDevice9*
    , "Int", vos   ; OPM_VIDEO_OUTPUT_SEMANTICS
    , "Ptr", pulNumVideoOutputs   ; DWORD* out
    , "Ptr", pppOPMVideoOutputArray   ; IOPMVideoOutput*** out
    , "Int")   ; return: HRESULT
●OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray) = DLL("dxva2.dll", "int OPMGetVideoOutputsFromIDirect3DDevice9Object(void*, int, void*, void*)")
# 呼び出し: OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
# pDirect3DDevice9 : IDirect3DDevice9* -> "void*"
# vos : OPM_VIDEO_OUTPUT_SEMANTICS -> "int"
# pulNumVideoOutputs : DWORD* out -> "void*"
# pppOPMVideoOutputArray : IOPMVideoOutput*** out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "dxva2" fn OPMGetVideoOutputsFromIDirect3DDevice9Object(
    pDirect3DDevice9: ?*anyopaque, // IDirect3DDevice9*
    vos: i32, // OPM_VIDEO_OUTPUT_SEMANTICS
    pulNumVideoOutputs: [*c]u32, // DWORD* out
    pppOPMVideoOutputArray: ?*anyopaque // IOPMVideoOutput*** out
) callconv(std.os.windows.WINAPI) i32;
proc OPMGetVideoOutputsFromIDirect3DDevice9Object(
    pDirect3DDevice9: pointer,  # IDirect3DDevice9*
    vos: int32,  # OPM_VIDEO_OUTPUT_SEMANTICS
    pulNumVideoOutputs: ptr uint32,  # DWORD* out
    pppOPMVideoOutputArray: pointer  # IOPMVideoOutput*** out
): int32 {.importc: "OPMGetVideoOutputsFromIDirect3DDevice9Object", stdcall, dynlib: "dxva2.dll".}
pragma(lib, "dxva2");
extern(Windows)
int OPMGetVideoOutputsFromIDirect3DDevice9Object(
    void* pDirect3DDevice9,   // IDirect3DDevice9*
    int vos,   // OPM_VIDEO_OUTPUT_SEMANTICS
    uint* pulNumVideoOutputs,   // DWORD* out
    void* pppOPMVideoOutputArray   // IOPMVideoOutput*** out
);
ccall((:OPMGetVideoOutputsFromIDirect3DDevice9Object, "dxva2.dll"), stdcall, Int32,
      (Ptr{Cvoid}, Int32, Ptr{UInt32}, Ptr{Cvoid}),
      pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
# pDirect3DDevice9 : IDirect3DDevice9* -> Ptr{Cvoid}
# vos : OPM_VIDEO_OUTPUT_SEMANTICS -> Int32
# pulNumVideoOutputs : DWORD* out -> Ptr{UInt32}
# pppOPMVideoOutputArray : IOPMVideoOutput*** out -> Ptr{Cvoid}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
int32_t OPMGetVideoOutputsFromIDirect3DDevice9Object(
    void* pDirect3DDevice9,
    int32_t vos,
    uint32_t* pulNumVideoOutputs,
    void* pppOPMVideoOutputArray);
]]
local dxva2 = ffi.load("dxva2")
-- dxva2.OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
-- pDirect3DDevice9 : IDirect3DDevice9*
-- vos : OPM_VIDEO_OUTPUT_SEMANTICS
-- pulNumVideoOutputs : DWORD* out
-- pppOPMVideoOutputArray : IOPMVideoOutput*** out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('dxva2.dll');
const OPMGetVideoOutputsFromIDirect3DDevice9Object = lib.func('__stdcall', 'OPMGetVideoOutputsFromIDirect3DDevice9Object', 'int32_t', ['void *', 'int32_t', 'uint32_t *', 'void *']);
// OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
// pDirect3DDevice9 : IDirect3DDevice9* -> 'void *'
// vos : OPM_VIDEO_OUTPUT_SEMANTICS -> 'int32_t'
// pulNumVideoOutputs : DWORD* out -> 'uint32_t *'
// pppOPMVideoOutputArray : IOPMVideoOutput*** out -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("dxva2.dll", {
  OPMGetVideoOutputsFromIDirect3DDevice9Object: { parameters: ["pointer", "i32", "pointer", "pointer"], result: "i32" },
});
// lib.symbols.OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray)
// pDirect3DDevice9 : IDirect3DDevice9* -> "pointer"
// vos : OPM_VIDEO_OUTPUT_SEMANTICS -> "i32"
// pulNumVideoOutputs : DWORD* out -> "pointer"
// pppOPMVideoOutputArray : IOPMVideoOutput*** out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
int32_t OPMGetVideoOutputsFromIDirect3DDevice9Object(
    void* pDirect3DDevice9,
    int32_t vos,
    uint32_t* pulNumVideoOutputs,
    void* pppOPMVideoOutputArray);
C, "dxva2.dll");
// $ffi->OPMGetVideoOutputsFromIDirect3DDevice9Object(pDirect3DDevice9, vos, pulNumVideoOutputs, pppOPMVideoOutputArray);
// pDirect3DDevice9 : IDirect3DDevice9*
// vos : OPM_VIDEO_OUTPUT_SEMANTICS
// pulNumVideoOutputs : DWORD* out
// pppOPMVideoOutputArray : IOPMVideoOutput*** out
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Dxva2 extends StdCallLibrary {
    Dxva2 INSTANCE = Native.load("dxva2", Dxva2.class);
    int OPMGetVideoOutputsFromIDirect3DDevice9Object(
        Pointer pDirect3DDevice9,   // IDirect3DDevice9*
        int vos,   // OPM_VIDEO_OUTPUT_SEMANTICS
        IntByReference pulNumVideoOutputs,   // DWORD* out
        Pointer pppOPMVideoOutputArray   // IOPMVideoOutput*** out
    );
}
@[Link("dxva2")]
lib Libdxva2
  fun OPMGetVideoOutputsFromIDirect3DDevice9Object = OPMGetVideoOutputsFromIDirect3DDevice9Object(
    pDirect3DDevice9 : Void*,   # IDirect3DDevice9*
    vos : Int32,   # OPM_VIDEO_OUTPUT_SEMANTICS
    pulNumVideoOutputs : UInt32*,   # DWORD* out
    pppOPMVideoOutputArray : Void*   # IOPMVideoOutput*** out
  ) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef OPMGetVideoOutputsFromIDirect3DDevice9ObjectNative = Int32 Function(Pointer<Void>, Int32, Pointer<Uint32>, Pointer<Void>);
typedef OPMGetVideoOutputsFromIDirect3DDevice9ObjectDart = int Function(Pointer<Void>, int, Pointer<Uint32>, Pointer<Void>);
final OPMGetVideoOutputsFromIDirect3DDevice9Object = DynamicLibrary.open('dxva2.dll')
    .lookupFunction<OPMGetVideoOutputsFromIDirect3DDevice9ObjectNative, OPMGetVideoOutputsFromIDirect3DDevice9ObjectDart>('OPMGetVideoOutputsFromIDirect3DDevice9Object');
// pDirect3DDevice9 : IDirect3DDevice9* -> Pointer<Void>
// vos : OPM_VIDEO_OUTPUT_SEMANTICS -> Int32
// pulNumVideoOutputs : DWORD* out -> Pointer<Uint32>
// pppOPMVideoOutputArray : IOPMVideoOutput*** out -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function OPMGetVideoOutputsFromIDirect3DDevice9Object(
  pDirect3DDevice9: Pointer;   // IDirect3DDevice9*
  vos: Integer;   // OPM_VIDEO_OUTPUT_SEMANTICS
  pulNumVideoOutputs: Pointer;   // DWORD* out
  pppOPMVideoOutputArray: Pointer   // IOPMVideoOutput*** out
): Integer; stdcall;
  external 'dxva2.dll' name 'OPMGetVideoOutputsFromIDirect3DDevice9Object';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "OPMGetVideoOutputsFromIDirect3DDevice9Object"
  c_OPMGetVideoOutputsFromIDirect3DDevice9Object :: Ptr () -> Int32 -> Ptr Word32 -> Ptr () -> IO Int32
-- pDirect3DDevice9 : IDirect3DDevice9* -> Ptr ()
-- vos : OPM_VIDEO_OUTPUT_SEMANTICS -> Int32
-- pulNumVideoOutputs : DWORD* out -> Ptr Word32
-- pppOPMVideoOutputArray : IOPMVideoOutput*** out -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let opmgetvideooutputsfromidirect3ddevice9object =
  foreign "OPMGetVideoOutputsFromIDirect3DDevice9Object"
    ((ptr void) @-> int32_t @-> (ptr uint32_t) @-> (ptr void) @-> returning int32_t)
(* pDirect3DDevice9 : IDirect3DDevice9* -> (ptr void) *)
(* vos : OPM_VIDEO_OUTPUT_SEMANTICS -> int32_t *)
(* pulNumVideoOutputs : DWORD* out -> (ptr uint32_t) *)
(* pppOPMVideoOutputArray : IOPMVideoOutput*** out -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library dxva2 (t "dxva2.dll"))
(cffi:use-foreign-library dxva2)

(cffi:defcfun ("OPMGetVideoOutputsFromIDirect3DDevice9Object" opmget-video-outputs-from-idirect3-ddevice9-object :convention :stdcall) :int32
  (p-direct3-ddevice9 :pointer)   ; IDirect3DDevice9*
  (vos :int32)   ; OPM_VIDEO_OUTPUT_SEMANTICS
  (pul-num-video-outputs :pointer)   ; DWORD* out
  (ppp-opmvideo-output-array :pointer))   ; IOPMVideoOutput*** out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $OPMGetVideoOutputsFromIDirect3DDevice9Object = Win32::API::More->new('dxva2',
    'int OPMGetVideoOutputsFromIDirect3DDevice9Object(LPVOID pDirect3DDevice9, int vos, LPVOID pulNumVideoOutputs, LPVOID pppOPMVideoOutputArray)');
# my $ret = $OPMGetVideoOutputsFromIDirect3DDevice9Object->Call($pDirect3DDevice9, $vos, $pulNumVideoOutputs, $pppOPMVideoOutputArray);
# pDirect3DDevice9 : IDirect3DDevice9* -> LPVOID
# vos : OPM_VIDEO_OUTPUT_SEMANTICS -> int
# pulNumVideoOutputs : DWORD* out -> LPVOID
# pppOPMVideoOutputArray : IOPMVideoOutput*** out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

使用する型