Win32 API 日本語リファレンス
ホームSystem.RemoteDesktop › BITMAP_RENDERER_STATISTICS

BITMAP_RENDERER_STATISTICS

構造体
サイズx64: 8 バイト / x86: 8 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
dwFramesDeliveredDWORD4+0+0正常に描画されたフレームの累積数。
dwFramesDroppedDWORD4+4+4破棄(ドロップ)されたフレームの累積数。

各言語での定義

#include <windows.h>

// BITMAP_RENDERER_STATISTICS  (x64 8 / x86 8 バイト)
typedef struct BITMAP_RENDERER_STATISTICS {
    DWORD dwFramesDelivered;
    DWORD dwFramesDropped;
} BITMAP_RENDERER_STATISTICS;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct BITMAP_RENDERER_STATISTICS
{
    public uint dwFramesDelivered;
    public uint dwFramesDropped;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure BITMAP_RENDERER_STATISTICS
    Public dwFramesDelivered As UInteger
    Public dwFramesDropped As UInteger
End Structure
import ctypes
from ctypes import wintypes

class BITMAP_RENDERER_STATISTICS(ctypes.Structure):
    _fields_ = [
        ("dwFramesDelivered", wintypes.DWORD),
        ("dwFramesDropped", wintypes.DWORD),
    ]
#[repr(C)]
pub struct BITMAP_RENDERER_STATISTICS {
    pub dwFramesDelivered: u32,
    pub dwFramesDropped: u32,
}
import "golang.org/x/sys/windows"

type BITMAP_RENDERER_STATISTICS struct {
	dwFramesDelivered uint32
	dwFramesDropped uint32
}
type
  BITMAP_RENDERER_STATISTICS = record
    dwFramesDelivered: DWORD;
    dwFramesDropped: DWORD;
  end;
const BITMAP_RENDERER_STATISTICS = extern struct {
    dwFramesDelivered: u32,
    dwFramesDropped: u32,
};
type
  BITMAP_RENDERER_STATISTICS {.bycopy.} = object
    dwFramesDelivered: uint32
    dwFramesDropped: uint32
struct BITMAP_RENDERER_STATISTICS
{
    uint dwFramesDelivered;
    uint dwFramesDropped;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; BITMAP_RENDERER_STATISTICS サイズ: 8 バイト(x64)
dim st, 2    ; 4byte整数×2(構造体サイズ 8 / 4 切り上げ)
; dwFramesDelivered : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; dwFramesDropped : DWORD (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global BITMAP_RENDERER_STATISTICS
    #field int dwFramesDelivered
    #field int dwFramesDropped
#endstruct

stdim st, BITMAP_RENDERER_STATISTICS        ; NSTRUCT 変数を確保
st->dwFramesDelivered = 100
mes "dwFramesDelivered=" + st->dwFramesDelivered