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

WICCreateBitmapFromSectionEx

関数
アクセスレベルを指定しセクションからWICビットマップを作成する。
DLLWindowsCodecs.dll呼出規約winapi対応OSWindows 7 以降

シグネチャ

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

HRESULT WICCreateBitmapFromSectionEx(
    DWORD width,
    DWORD height,
    GUID* pixelFormat,
    HANDLE hSection,
    DWORD stride,
    DWORD offset,
    WICSectionAccessLevel desiredAccessLevel,
    IWICBitmap** ppIBitmap
);

パラメーター

名前方向説明
widthDWORDin作成するビットマップの幅(ピクセル)を示すDWORD値。
heightDWORDin作成するビットマップの高さ(ピクセル)を示すDWORD値。
pixelFormatGUID*inビットマップのピクセル形式を示すGUIDへのポインタ。
hSectionHANDLEinピクセルデータの元となるファイルマッピングセクションのHANDLE。NULLで内部割当。
strideDWORDin1行あたりのバイト数(ストライド)を示すDWORD値。
offsetDWORDinセクション先頭からピクセルデータ開始位置までのオフセット(バイト)を示すDWORD値。
desiredAccessLevelWICSectionAccessLevelinセクションへの希望アクセスレベルを示すWICSectionAccessLevel列挙値。
ppIBitmapIWICBitmap**out作成されたIWICBitmapを受け取る出力先のポインタアドレス。

戻り値の型: HRESULT

各言語での呼び出し定義

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

HRESULT WICCreateBitmapFromSectionEx(
    DWORD width,
    DWORD height,
    GUID* pixelFormat,
    HANDLE hSection,
    DWORD stride,
    DWORD offset,
    WICSectionAccessLevel desiredAccessLevel,
    IWICBitmap** ppIBitmap
);
[DllImport("WindowsCodecs.dll", ExactSpelling = true)]
static extern int WICCreateBitmapFromSectionEx(
    uint width,   // DWORD
    uint height,   // DWORD
    ref Guid pixelFormat,   // GUID*
    IntPtr hSection,   // HANDLE
    uint stride,   // DWORD
    uint offset,   // DWORD
    int desiredAccessLevel,   // WICSectionAccessLevel
    IntPtr ppIBitmap   // IWICBitmap** out
);
<DllImport("WindowsCodecs.dll", ExactSpelling:=True)>
Public Shared Function WICCreateBitmapFromSectionEx(
    width As UInteger,   ' DWORD
    height As UInteger,   ' DWORD
    ByRef pixelFormat As Guid,   ' GUID*
    hSection As IntPtr,   ' HANDLE
    stride As UInteger,   ' DWORD
    offset As UInteger,   ' DWORD
    desiredAccessLevel As Integer,   ' WICSectionAccessLevel
    ppIBitmap As IntPtr   ' IWICBitmap** out
) As Integer
End Function
' width : DWORD
' height : DWORD
' pixelFormat : GUID*
' hSection : HANDLE
' stride : DWORD
' offset : DWORD
' desiredAccessLevel : WICSectionAccessLevel
' ppIBitmap : IWICBitmap** out
Declare PtrSafe Function WICCreateBitmapFromSectionEx Lib "windowscodecs" ( _
    ByVal width As Long, _
    ByVal height As Long, _
    ByVal pixelFormat As LongPtr, _
    ByVal hSection As LongPtr, _
    ByVal stride As Long, _
    ByVal offset As Long, _
    ByVal desiredAccessLevel As Long, _
    ByVal ppIBitmap As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

WICCreateBitmapFromSectionEx = ctypes.windll.windowscodecs.WICCreateBitmapFromSectionEx
WICCreateBitmapFromSectionEx.restype = ctypes.c_int
WICCreateBitmapFromSectionEx.argtypes = [
    wintypes.DWORD,  # width : DWORD
    wintypes.DWORD,  # height : DWORD
    ctypes.c_void_p,  # pixelFormat : GUID*
    wintypes.HANDLE,  # hSection : HANDLE
    wintypes.DWORD,  # stride : DWORD
    wintypes.DWORD,  # offset : DWORD
    ctypes.c_int,  # desiredAccessLevel : WICSectionAccessLevel
    ctypes.c_void_p,  # ppIBitmap : IWICBitmap** out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	windowscodecs = windows.NewLazySystemDLL("WindowsCodecs.dll")
	procWICCreateBitmapFromSectionEx = windowscodecs.NewProc("WICCreateBitmapFromSectionEx")
)

// width (DWORD), height (DWORD), pixelFormat (GUID*), hSection (HANDLE), stride (DWORD), offset (DWORD), desiredAccessLevel (WICSectionAccessLevel), ppIBitmap (IWICBitmap** out)
r1, _, err := procWICCreateBitmapFromSectionEx.Call(
	uintptr(width),
	uintptr(height),
	uintptr(pixelFormat),
	uintptr(hSection),
	uintptr(stride),
	uintptr(offset),
	uintptr(desiredAccessLevel),
	uintptr(ppIBitmap),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function WICCreateBitmapFromSectionEx(
  width: DWORD;   // DWORD
  height: DWORD;   // DWORD
  pixelFormat: PGUID;   // GUID*
  hSection: THandle;   // HANDLE
  stride: DWORD;   // DWORD
  offset: DWORD;   // DWORD
  desiredAccessLevel: Integer;   // WICSectionAccessLevel
  ppIBitmap: Pointer   // IWICBitmap** out
): Integer; stdcall;
  external 'WindowsCodecs.dll' name 'WICCreateBitmapFromSectionEx';
result := DllCall("WindowsCodecs\WICCreateBitmapFromSectionEx"
    , "UInt", width   ; DWORD
    , "UInt", height   ; DWORD
    , "Ptr", pixelFormat   ; GUID*
    , "Ptr", hSection   ; HANDLE
    , "UInt", stride   ; DWORD
    , "UInt", offset   ; DWORD
    , "Int", desiredAccessLevel   ; WICSectionAccessLevel
    , "Ptr", ppIBitmap   ; IWICBitmap** out
    , "Int")   ; return: HRESULT
●WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap) = DLL("WindowsCodecs.dll", "int WICCreateBitmapFromSectionEx(dword, dword, void*, void*, dword, dword, int, void*)")
# 呼び出し: WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap)
# width : DWORD -> "dword"
# height : DWORD -> "dword"
# pixelFormat : GUID* -> "void*"
# hSection : HANDLE -> "void*"
# stride : DWORD -> "dword"
# offset : DWORD -> "dword"
# desiredAccessLevel : WICSectionAccessLevel -> "int"
# ppIBitmap : IWICBitmap** out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "windowscodecs" fn WICCreateBitmapFromSectionEx(
    width: u32, // DWORD
    height: u32, // DWORD
    pixelFormat: [*c]GUID, // GUID*
    hSection: ?*anyopaque, // HANDLE
    stride: u32, // DWORD
    offset: u32, // DWORD
    desiredAccessLevel: i32, // WICSectionAccessLevel
    ppIBitmap: ?*anyopaque // IWICBitmap** out
) callconv(std.os.windows.WINAPI) i32;
proc WICCreateBitmapFromSectionEx(
    width: uint32,  # DWORD
    height: uint32,  # DWORD
    pixelFormat: ptr GUID,  # GUID*
    hSection: pointer,  # HANDLE
    stride: uint32,  # DWORD
    offset: uint32,  # DWORD
    desiredAccessLevel: int32,  # WICSectionAccessLevel
    ppIBitmap: pointer  # IWICBitmap** out
): int32 {.importc: "WICCreateBitmapFromSectionEx", stdcall, dynlib: "WindowsCodecs.dll".}
pragma(lib, "windowscodecs");
extern(Windows)
int WICCreateBitmapFromSectionEx(
    uint width,   // DWORD
    uint height,   // DWORD
    GUID* pixelFormat,   // GUID*
    void* hSection,   // HANDLE
    uint stride,   // DWORD
    uint offset,   // DWORD
    int desiredAccessLevel,   // WICSectionAccessLevel
    void* ppIBitmap   // IWICBitmap** out
);
ccall((:WICCreateBitmapFromSectionEx, "WindowsCodecs.dll"), stdcall, Int32,
      (UInt32, UInt32, Ptr{GUID}, Ptr{Cvoid}, UInt32, UInt32, Int32, Ptr{Cvoid}),
      width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap)
# width : DWORD -> UInt32
# height : DWORD -> UInt32
# pixelFormat : GUID* -> Ptr{GUID}
# hSection : HANDLE -> Ptr{Cvoid}
# stride : DWORD -> UInt32
# offset : DWORD -> UInt32
# desiredAccessLevel : WICSectionAccessLevel -> Int32
# ppIBitmap : IWICBitmap** out -> Ptr{Cvoid}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
int32_t WICCreateBitmapFromSectionEx(
    uint32_t width,
    uint32_t height,
    void* pixelFormat,
    void* hSection,
    uint32_t stride,
    uint32_t offset,
    int32_t desiredAccessLevel,
    void* ppIBitmap);
]]
local windowscodecs = ffi.load("windowscodecs")
-- windowscodecs.WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap)
-- width : DWORD
-- height : DWORD
-- pixelFormat : GUID*
-- hSection : HANDLE
-- stride : DWORD
-- offset : DWORD
-- desiredAccessLevel : WICSectionAccessLevel
-- ppIBitmap : IWICBitmap** out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('WindowsCodecs.dll');
const WICCreateBitmapFromSectionEx = lib.func('__stdcall', 'WICCreateBitmapFromSectionEx', 'int32_t', ['uint32_t', 'uint32_t', 'void *', 'void *', 'uint32_t', 'uint32_t', 'int32_t', 'void *']);
// WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap)
// width : DWORD -> 'uint32_t'
// height : DWORD -> 'uint32_t'
// pixelFormat : GUID* -> 'void *'
// hSection : HANDLE -> 'void *'
// stride : DWORD -> 'uint32_t'
// offset : DWORD -> 'uint32_t'
// desiredAccessLevel : WICSectionAccessLevel -> 'int32_t'
// ppIBitmap : IWICBitmap** out -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("WindowsCodecs.dll", {
  WICCreateBitmapFromSectionEx: { parameters: ["u32", "u32", "pointer", "pointer", "u32", "u32", "i32", "pointer"], result: "i32" },
});
// lib.symbols.WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap)
// width : DWORD -> "u32"
// height : DWORD -> "u32"
// pixelFormat : GUID* -> "pointer"
// hSection : HANDLE -> "pointer"
// stride : DWORD -> "u32"
// offset : DWORD -> "u32"
// desiredAccessLevel : WICSectionAccessLevel -> "i32"
// ppIBitmap : IWICBitmap** out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
int32_t WICCreateBitmapFromSectionEx(
    uint32_t width,
    uint32_t height,
    void* pixelFormat,
    void* hSection,
    uint32_t stride,
    uint32_t offset,
    int32_t desiredAccessLevel,
    void* ppIBitmap);
C, "WindowsCodecs.dll");
// $ffi->WICCreateBitmapFromSectionEx(width, height, pixelFormat, hSection, stride, offset, desiredAccessLevel, ppIBitmap);
// width : DWORD
// height : DWORD
// pixelFormat : GUID*
// hSection : HANDLE
// stride : DWORD
// offset : DWORD
// desiredAccessLevel : WICSectionAccessLevel
// ppIBitmap : IWICBitmap** 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 Windowscodecs extends StdCallLibrary {
    Windowscodecs INSTANCE = Native.load("windowscodecs", Windowscodecs.class);
    int WICCreateBitmapFromSectionEx(
        int width,   // DWORD
        int height,   // DWORD
        Pointer pixelFormat,   // GUID*
        Pointer hSection,   // HANDLE
        int stride,   // DWORD
        int offset,   // DWORD
        int desiredAccessLevel,   // WICSectionAccessLevel
        Pointer ppIBitmap   // IWICBitmap** out
    );
}
@[Link("windowscodecs")]
lib LibWindowsCodecs
  fun WICCreateBitmapFromSectionEx = WICCreateBitmapFromSectionEx(
    width : UInt32,   # DWORD
    height : UInt32,   # DWORD
    pixelFormat : GUID*,   # GUID*
    hSection : Void*,   # HANDLE
    stride : UInt32,   # DWORD
    offset : UInt32,   # DWORD
    desiredAccessLevel : Int32,   # WICSectionAccessLevel
    ppIBitmap : Void*   # IWICBitmap** out
  ) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef WICCreateBitmapFromSectionExNative = Int32 Function(Uint32, Uint32, Pointer<Void>, Pointer<Void>, Uint32, Uint32, Int32, Pointer<Void>);
typedef WICCreateBitmapFromSectionExDart = int Function(int, int, Pointer<Void>, Pointer<Void>, int, int, int, Pointer<Void>);
final WICCreateBitmapFromSectionEx = DynamicLibrary.open('WindowsCodecs.dll')
    .lookupFunction<WICCreateBitmapFromSectionExNative, WICCreateBitmapFromSectionExDart>('WICCreateBitmapFromSectionEx');
// width : DWORD -> Uint32
// height : DWORD -> Uint32
// pixelFormat : GUID* -> Pointer<Void>
// hSection : HANDLE -> Pointer<Void>
// stride : DWORD -> Uint32
// offset : DWORD -> Uint32
// desiredAccessLevel : WICSectionAccessLevel -> Int32
// ppIBitmap : IWICBitmap** out -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function WICCreateBitmapFromSectionEx(
  width: DWORD;   // DWORD
  height: DWORD;   // DWORD
  pixelFormat: PGUID;   // GUID*
  hSection: THandle;   // HANDLE
  stride: DWORD;   // DWORD
  offset: DWORD;   // DWORD
  desiredAccessLevel: Integer;   // WICSectionAccessLevel
  ppIBitmap: Pointer   // IWICBitmap** out
): Integer; stdcall;
  external 'WindowsCodecs.dll' name 'WICCreateBitmapFromSectionEx';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "WICCreateBitmapFromSectionEx"
  c_WICCreateBitmapFromSectionEx :: Word32 -> Word32 -> Ptr () -> Ptr () -> Word32 -> Word32 -> Int32 -> Ptr () -> IO Int32
-- width : DWORD -> Word32
-- height : DWORD -> Word32
-- pixelFormat : GUID* -> Ptr ()
-- hSection : HANDLE -> Ptr ()
-- stride : DWORD -> Word32
-- offset : DWORD -> Word32
-- desiredAccessLevel : WICSectionAccessLevel -> Int32
-- ppIBitmap : IWICBitmap** out -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let wiccreatebitmapfromsectionex =
  foreign "WICCreateBitmapFromSectionEx"
    (uint32_t @-> uint32_t @-> (ptr void) @-> (ptr void) @-> uint32_t @-> uint32_t @-> int32_t @-> (ptr void) @-> returning int32_t)
(* width : DWORD -> uint32_t *)
(* height : DWORD -> uint32_t *)
(* pixelFormat : GUID* -> (ptr void) *)
(* hSection : HANDLE -> (ptr void) *)
(* stride : DWORD -> uint32_t *)
(* offset : DWORD -> uint32_t *)
(* desiredAccessLevel : WICSectionAccessLevel -> int32_t *)
(* ppIBitmap : IWICBitmap** out -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library windowscodecs (t "WindowsCodecs.dll"))
(cffi:use-foreign-library windowscodecs)

(cffi:defcfun ("WICCreateBitmapFromSectionEx" wiccreate-bitmap-from-section-ex :convention :stdcall) :int32
  (width :uint32)   ; DWORD
  (height :uint32)   ; DWORD
  (pixel-format :pointer)   ; GUID*
  (h-section :pointer)   ; HANDLE
  (stride :uint32)   ; DWORD
  (offset :uint32)   ; DWORD
  (desired-access-level :int32)   ; WICSectionAccessLevel
  (pp-ibitmap :pointer))   ; IWICBitmap** out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $WICCreateBitmapFromSectionEx = Win32::API::More->new('WindowsCodecs',
    'int WICCreateBitmapFromSectionEx(DWORD width, DWORD height, LPVOID pixelFormat, HANDLE hSection, DWORD stride, DWORD offset, int desiredAccessLevel, LPVOID ppIBitmap)');
# my $ret = $WICCreateBitmapFromSectionEx->Call($width, $height, $pixelFormat, $hSection, $stride, $offset, $desiredAccessLevel, $ppIBitmap);
# width : DWORD -> DWORD
# height : DWORD -> DWORD
# pixelFormat : GUID* -> LPVOID
# hSection : HANDLE -> HANDLE
# stride : DWORD -> DWORD
# offset : DWORD -> DWORD
# desiredAccessLevel : WICSectionAccessLevel -> int
# ppIBitmap : IWICBitmap** out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

類似 API
使用する型