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

MI_ApplicationFT

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

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

フィールド

フィールドサイズx64x86説明
CloseINT_PTR8/4+0+0管理インフラストラクチャの初期化を解除します。 MI_Application_Close を参照してください。
NewSessionINT_PTR8/4+8+4同じ宛先に対する一連の操作をグループ化して接続を共有できるようにするセッションを作成します。 MI_Application_NewSession を参照してください。
NewHostedProviderINT_PTR8/4+16+8新しいホスト型プロバイダーを作成します。 MI_Application_NewHostedProvider を参照してください。
NewInstanceINT_PTR8/4+24+12インスタンスを作成します。 MI_Application_NewInstance を参照してください。
NewDestinationOptionsINT_PTR8/4+32+16MI_DestinationOptions オブジェクトを作成します。 MI_Application_NewDestinationOptions を参照してください。
NewOperationOptionsINT_PTR8/4+40+20MI_OperationOptions オブジェクトを作成します。 MI_Application_NewOperationOptions を参照してください。
NewSubscriptionDeliveryOptionsINT_PTR8/4+48+24MI_Application_NewSubscriptionDeliveryOptions を参照してください。
NewSerializerINT_PTR8/4+56+28MI_Instance または MI_Class を、ディスクに保存したりトランスポート経由で転送したりできる形式で永続化するためのシリアライザーを作成します。 MI_Application_NewSerializer を参照してください。
NewDeserializerINT_PTR8/4+64+32MI_Instance または MI_Class を再作成するために使用できるデシリアライザーを作成します。 MI_Application_NewDeserializer を参照してください。
NewInstanceFromClassINT_PTR8/4+72+36未定です。
NewClassINT_PTR8/4+80+40未定です。

公式ドキュメント

MI_Application 構造体で使用されるサポート構造体です。これらの構造体を操作するには、名前が "MI_Application_" で始まる関数を使用します。

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

各言語での定義

#include <windows.h>

// MI_ApplicationFT  (x64 88 / x86 44 バイト)
typedef struct MI_ApplicationFT {
    INT_PTR Close;
    INT_PTR NewSession;
    INT_PTR NewHostedProvider;
    INT_PTR NewInstance;
    INT_PTR NewDestinationOptions;
    INT_PTR NewOperationOptions;
    INT_PTR NewSubscriptionDeliveryOptions;
    INT_PTR NewSerializer;
    INT_PTR NewDeserializer;
    INT_PTR NewInstanceFromClass;
    INT_PTR NewClass;
} MI_ApplicationFT;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct MI_ApplicationFT
{
    public IntPtr Close;
    public IntPtr NewSession;
    public IntPtr NewHostedProvider;
    public IntPtr NewInstance;
    public IntPtr NewDestinationOptions;
    public IntPtr NewOperationOptions;
    public IntPtr NewSubscriptionDeliveryOptions;
    public IntPtr NewSerializer;
    public IntPtr NewDeserializer;
    public IntPtr NewInstanceFromClass;
    public IntPtr NewClass;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure MI_ApplicationFT
    Public Close As IntPtr
    Public NewSession As IntPtr
    Public NewHostedProvider As IntPtr
    Public NewInstance As IntPtr
    Public NewDestinationOptions As IntPtr
    Public NewOperationOptions As IntPtr
    Public NewSubscriptionDeliveryOptions As IntPtr
    Public NewSerializer As IntPtr
    Public NewDeserializer As IntPtr
    Public NewInstanceFromClass As IntPtr
    Public NewClass As IntPtr
End Structure
import ctypes
from ctypes import wintypes

class MI_ApplicationFT(ctypes.Structure):
    _fields_ = [
        ("Close", ctypes.c_ssize_t),
        ("NewSession", ctypes.c_ssize_t),
        ("NewHostedProvider", ctypes.c_ssize_t),
        ("NewInstance", ctypes.c_ssize_t),
        ("NewDestinationOptions", ctypes.c_ssize_t),
        ("NewOperationOptions", ctypes.c_ssize_t),
        ("NewSubscriptionDeliveryOptions", ctypes.c_ssize_t),
        ("NewSerializer", ctypes.c_ssize_t),
        ("NewDeserializer", ctypes.c_ssize_t),
        ("NewInstanceFromClass", ctypes.c_ssize_t),
        ("NewClass", ctypes.c_ssize_t),
    ]
#[repr(C)]
pub struct MI_ApplicationFT {
    pub Close: isize,
    pub NewSession: isize,
    pub NewHostedProvider: isize,
    pub NewInstance: isize,
    pub NewDestinationOptions: isize,
    pub NewOperationOptions: isize,
    pub NewSubscriptionDeliveryOptions: isize,
    pub NewSerializer: isize,
    pub NewDeserializer: isize,
    pub NewInstanceFromClass: isize,
    pub NewClass: isize,
}
import "golang.org/x/sys/windows"

type MI_ApplicationFT struct {
	Close uintptr
	NewSession uintptr
	NewHostedProvider uintptr
	NewInstance uintptr
	NewDestinationOptions uintptr
	NewOperationOptions uintptr
	NewSubscriptionDeliveryOptions uintptr
	NewSerializer uintptr
	NewDeserializer uintptr
	NewInstanceFromClass uintptr
	NewClass uintptr
}
type
  MI_ApplicationFT = record
    Close: NativeInt;
    NewSession: NativeInt;
    NewHostedProvider: NativeInt;
    NewInstance: NativeInt;
    NewDestinationOptions: NativeInt;
    NewOperationOptions: NativeInt;
    NewSubscriptionDeliveryOptions: NativeInt;
    NewSerializer: NativeInt;
    NewDeserializer: NativeInt;
    NewInstanceFromClass: NativeInt;
    NewClass: NativeInt;
  end;
const MI_ApplicationFT = extern struct {
    Close: isize,
    NewSession: isize,
    NewHostedProvider: isize,
    NewInstance: isize,
    NewDestinationOptions: isize,
    NewOperationOptions: isize,
    NewSubscriptionDeliveryOptions: isize,
    NewSerializer: isize,
    NewDeserializer: isize,
    NewInstanceFromClass: isize,
    NewClass: isize,
};
type
  MI_ApplicationFT {.bycopy.} = object
    Close: int
    NewSession: int
    NewHostedProvider: int
    NewInstance: int
    NewDestinationOptions: int
    NewOperationOptions: int
    NewSubscriptionDeliveryOptions: int
    NewSerializer: int
    NewDeserializer: int
    NewInstanceFromClass: int
    NewClass: int
struct MI_ApplicationFT
{
    ptrdiff_t Close;
    ptrdiff_t NewSession;
    ptrdiff_t NewHostedProvider;
    ptrdiff_t NewInstance;
    ptrdiff_t NewDestinationOptions;
    ptrdiff_t NewOperationOptions;
    ptrdiff_t NewSubscriptionDeliveryOptions;
    ptrdiff_t NewSerializer;
    ptrdiff_t NewDeserializer;
    ptrdiff_t NewInstanceFromClass;
    ptrdiff_t NewClass;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; MI_ApplicationFT サイズ: 44 バイト(x86)
dim st, 11    ; 4byte整数×11(構造体サイズ 44 / 4 切り上げ)
; Close : INT_PTR (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; NewSession : INT_PTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; NewHostedProvider : INT_PTR (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; NewInstance : INT_PTR (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; NewDestinationOptions : INT_PTR (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; NewOperationOptions : INT_PTR (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; NewSubscriptionDeliveryOptions : INT_PTR (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; NewSerializer : INT_PTR (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; NewDeserializer : INT_PTR (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; NewInstanceFromClass : INT_PTR (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; NewClass : INT_PTR (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; MI_ApplicationFT サイズ: 88 バイト(x64)
dim st, 22    ; 4byte整数×22(構造体サイズ 88 / 4 切り上げ)
; Close : INT_PTR (+0, 8byte)  qpoke st,0,値 / qpeek(st,0)  ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; NewSession : INT_PTR (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; NewHostedProvider : INT_PTR (+16, 8byte)  qpoke st,16,値 / qpeek(st,16)  ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; NewInstance : INT_PTR (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; NewDestinationOptions : INT_PTR (+32, 8byte)  qpoke st,32,値 / qpeek(st,32)  ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; NewOperationOptions : INT_PTR (+40, 8byte)  qpoke st,40,値 / qpeek(st,40)  ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; NewSubscriptionDeliveryOptions : INT_PTR (+48, 8byte)  qpoke st,48,値 / qpeek(st,48)  ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; NewSerializer : INT_PTR (+56, 8byte)  qpoke st,56,値 / qpeek(st,56)  ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; NewDeserializer : INT_PTR (+64, 8byte)  qpoke st,64,値 / qpeek(st,64)  ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; NewInstanceFromClass : INT_PTR (+72, 8byte)  qpoke st,72,値 / qpeek(st,72)  ※IronHSPのみ。3.7/3.8は lpoke st,72,下位 : lpoke st,76,上位
; NewClass : INT_PTR (+80, 8byte)  qpoke st,80,値 / qpeek(st,80)  ※IronHSPのみ。3.7/3.8は lpoke st,80,下位 : lpoke st,84,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global MI_ApplicationFT
    #field intptr Close
    #field intptr NewSession
    #field intptr NewHostedProvider
    #field intptr NewInstance
    #field intptr NewDestinationOptions
    #field intptr NewOperationOptions
    #field intptr NewSubscriptionDeliveryOptions
    #field intptr NewSerializer
    #field intptr NewDeserializer
    #field intptr NewInstanceFromClass
    #field intptr NewClass
#endstruct

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