ホーム › Security.Isolation › IsolatedAppLauncherTelemetryParameters
IsolatedAppLauncherTelemetryParameters
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| EnableForLaunch | BOOL | 4 | +0 | +0 | 起動時にテレメトリを有効化するかを示す真偽値。 |
| CorrelationGUID | GUID | 16 | +4 | +4 | テレメトリイベントを関連付ける相関GUID。 |
各言語での定義
#include <windows.h>
// IsolatedAppLauncherTelemetryParameters (x64 20 / x86 20 バイト)
typedef struct IsolatedAppLauncherTelemetryParameters {
BOOL EnableForLaunch;
GUID CorrelationGUID;
} IsolatedAppLauncherTelemetryParameters;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct IsolatedAppLauncherTelemetryParameters
{
[MarshalAs(UnmanagedType.Bool)] public bool EnableForLaunch;
public Guid CorrelationGUID;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure IsolatedAppLauncherTelemetryParameters
<MarshalAs(UnmanagedType.Bool)> Public EnableForLaunch As Boolean
Public CorrelationGUID As Guid
End Structureimport ctypes
from ctypes import wintypes
class IsolatedAppLauncherTelemetryParameters(ctypes.Structure):
_fields_ = [
("EnableForLaunch", wintypes.BOOL),
("CorrelationGUID", GUID),
]#[repr(C)]
pub struct IsolatedAppLauncherTelemetryParameters {
pub EnableForLaunch: i32,
pub CorrelationGUID: GUID,
}import "golang.org/x/sys/windows"
type IsolatedAppLauncherTelemetryParameters struct {
EnableForLaunch int32
CorrelationGUID windows.GUID
}type
IsolatedAppLauncherTelemetryParameters = record
EnableForLaunch: BOOL;
CorrelationGUID: TGUID;
end;const IsolatedAppLauncherTelemetryParameters = extern struct {
EnableForLaunch: i32,
CorrelationGUID: GUID,
};type
IsolatedAppLauncherTelemetryParameters {.bycopy.} = object
EnableForLaunch: int32
CorrelationGUID: GUIDstruct IsolatedAppLauncherTelemetryParameters
{
int EnableForLaunch;
GUID CorrelationGUID;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; IsolatedAppLauncherTelemetryParameters サイズ: 20 バイト(x64)
dim st, 5 ; 4byte整数×5(構造体サイズ 20 / 4 切り上げ)
; EnableForLaunch : BOOL (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; CorrelationGUID : GUID (+4, 16byte) varptr(st)+4 を基点に操作(16byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
; ※GUID・入れ子構造体はデフォルト型でないため、依存する #defstruct を先に定義(下記に同梱)。
#defstruct global GUID, pack=1
#field int Data1
#field short Data2
#field short Data3
#field byte Data4 8
#endstruct
#defstruct global IsolatedAppLauncherTelemetryParameters
#field bool EnableForLaunch
#field GUID CorrelationGUID
#endstruct
stdim st, IsolatedAppLauncherTelemetryParameters ; NSTRUCT 変数を確保
st->EnableForLaunch = 100
mes "EnableForLaunch=" + st->EnableForLaunch