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

SyncProviderConfigUIConfiguration

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

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

フィールド

フィールドサイズx64x86説明
dwVersionDWORD4+0+0構成 UI のバージョンです。
guidInstanceIdGUID16+4+4構成 UI の一意なインスタンス ID です。
clsidConfigUIGUID16+20+20構成 UI の COM CLSID です。
guidContentTypeGUID16+36+36構成 UI によって作成される同期プロバイダーがサポートするコンテンツ タイプを識別する GUID です。
dwCapabilitiesDWORD4+52+52

同期プロバイダー構成 UI の機能を表す次の定数のいずれかを指定します。これらの値は組み合わせ可能なマスクです。

dwSupportedArchitectureDWORD4+56+56

同期プロバイダー構成 UI がサポートするアーキテクチャを表す次の定数のいずれかを指定します。この値は、同期プロバイダー構成 UI の CLSID (clsidConfigUI) が登録されているアーキテクチャに対応します。これらの値は組み合わせることができ、ビットマスクとして使用できます。

fIsGlobalBOOL4+60+60将来の使用のために予約済みです。現時点では、値は常に FALSE でなければなりません。

公式ドキュメント

同期プロバイダー構成 UI の情報を表します。

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

各言語での定義

#include <windows.h>

// SyncProviderConfigUIConfiguration  (x64 64 / x86 64 バイト)
typedef struct SyncProviderConfigUIConfiguration {
    DWORD dwVersion;
    GUID guidInstanceId;
    GUID clsidConfigUI;
    GUID guidContentType;
    DWORD dwCapabilities;
    DWORD dwSupportedArchitecture;
    BOOL fIsGlobal;
} SyncProviderConfigUIConfiguration;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct SyncProviderConfigUIConfiguration
{
    public uint dwVersion;
    public Guid guidInstanceId;
    public Guid clsidConfigUI;
    public Guid guidContentType;
    public uint dwCapabilities;
    public uint dwSupportedArchitecture;
    [MarshalAs(UnmanagedType.Bool)] public bool fIsGlobal;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure SyncProviderConfigUIConfiguration
    Public dwVersion As UInteger
    Public guidInstanceId As Guid
    Public clsidConfigUI As Guid
    Public guidContentType As Guid
    Public dwCapabilities As UInteger
    Public dwSupportedArchitecture As UInteger
    <MarshalAs(UnmanagedType.Bool)> Public fIsGlobal As Boolean
End Structure
import ctypes
from ctypes import wintypes

class SyncProviderConfigUIConfiguration(ctypes.Structure):
    _fields_ = [
        ("dwVersion", wintypes.DWORD),
        ("guidInstanceId", GUID),
        ("clsidConfigUI", GUID),
        ("guidContentType", GUID),
        ("dwCapabilities", wintypes.DWORD),
        ("dwSupportedArchitecture", wintypes.DWORD),
        ("fIsGlobal", wintypes.BOOL),
    ]
#[repr(C)]
pub struct SyncProviderConfigUIConfiguration {
    pub dwVersion: u32,
    pub guidInstanceId: GUID,
    pub clsidConfigUI: GUID,
    pub guidContentType: GUID,
    pub dwCapabilities: u32,
    pub dwSupportedArchitecture: u32,
    pub fIsGlobal: i32,
}
import "golang.org/x/sys/windows"

type SyncProviderConfigUIConfiguration struct {
	dwVersion uint32
	guidInstanceId windows.GUID
	clsidConfigUI windows.GUID
	guidContentType windows.GUID
	dwCapabilities uint32
	dwSupportedArchitecture uint32
	fIsGlobal int32
}
type
  SyncProviderConfigUIConfiguration = record
    dwVersion: DWORD;
    guidInstanceId: TGUID;
    clsidConfigUI: TGUID;
    guidContentType: TGUID;
    dwCapabilities: DWORD;
    dwSupportedArchitecture: DWORD;
    fIsGlobal: BOOL;
  end;
const SyncProviderConfigUIConfiguration = extern struct {
    dwVersion: u32,
    guidInstanceId: GUID,
    clsidConfigUI: GUID,
    guidContentType: GUID,
    dwCapabilities: u32,
    dwSupportedArchitecture: u32,
    fIsGlobal: i32,
};
type
  SyncProviderConfigUIConfiguration {.bycopy.} = object
    dwVersion: uint32
    guidInstanceId: GUID
    clsidConfigUI: GUID
    guidContentType: GUID
    dwCapabilities: uint32
    dwSupportedArchitecture: uint32
    fIsGlobal: int32
struct SyncProviderConfigUIConfiguration
{
    uint dwVersion;
    GUID guidInstanceId;
    GUID clsidConfigUI;
    GUID guidContentType;
    uint dwCapabilities;
    uint dwSupportedArchitecture;
    int fIsGlobal;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; SyncProviderConfigUIConfiguration サイズ: 64 バイト(x64)
dim st, 16    ; 4byte整数×16(構造体サイズ 64 / 4 切り上げ)
; dwVersion : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; guidInstanceId : GUID (+4, 16byte)  varptr(st)+4 を基点に操作(16byte:入れ子/配列)
; clsidConfigUI : GUID (+20, 16byte)  varptr(st)+20 を基点に操作(16byte:入れ子/配列)
; guidContentType : GUID (+36, 16byte)  varptr(st)+36 を基点に操作(16byte:入れ子/配列)
; dwCapabilities : DWORD (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; dwSupportedArchitecture : DWORD (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; fIsGlobal : BOOL (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; ※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 SyncProviderConfigUIConfiguration
    #field int dwVersion
    #field GUID guidInstanceId
    #field GUID clsidConfigUI
    #field GUID guidContentType
    #field int dwCapabilities
    #field int dwSupportedArchitecture
    #field bool fIsGlobal
#endstruct

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