ホーム › NetworkManagement.NetManagement › REPL_EDIR_INFO_1
REPL_EDIR_INFO_1
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| rped1_dirname | LPWSTR | 8/4 | +0 | +0 | エクスポート対象ディレクトリ名を示すUnicode文字列。 |
| rped1_integrity | DWORD | 4 | +8 | +4 | ディレクトリの整合性レベルを示す。ツリー/ファイル単位の更新方式を表す。 |
| rped1_extent | DWORD | 4 | +12 | +8 | 複製範囲を示す。ディレクトリ単体かサブツリー全体かを表す。 |
各言語での定義
#include <windows.h>
// REPL_EDIR_INFO_1 (x64 16 / x86 12 バイト)
typedef struct REPL_EDIR_INFO_1 {
LPWSTR rped1_dirname;
DWORD rped1_integrity;
DWORD rped1_extent;
} REPL_EDIR_INFO_1;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct REPL_EDIR_INFO_1
{
public IntPtr rped1_dirname;
public uint rped1_integrity;
public uint rped1_extent;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure REPL_EDIR_INFO_1
Public rped1_dirname As IntPtr
Public rped1_integrity As UInteger
Public rped1_extent As UInteger
End Structureimport ctypes
from ctypes import wintypes
class REPL_EDIR_INFO_1(ctypes.Structure):
_fields_ = [
("rped1_dirname", ctypes.c_void_p),
("rped1_integrity", wintypes.DWORD),
("rped1_extent", wintypes.DWORD),
]#[repr(C)]
pub struct REPL_EDIR_INFO_1 {
pub rped1_dirname: *mut core::ffi::c_void,
pub rped1_integrity: u32,
pub rped1_extent: u32,
}import "golang.org/x/sys/windows"
type REPL_EDIR_INFO_1 struct {
rped1_dirname uintptr
rped1_integrity uint32
rped1_extent uint32
}type
REPL_EDIR_INFO_1 = record
rped1_dirname: Pointer;
rped1_integrity: DWORD;
rped1_extent: DWORD;
end;const REPL_EDIR_INFO_1 = extern struct {
rped1_dirname: ?*anyopaque,
rped1_integrity: u32,
rped1_extent: u32,
};type
REPL_EDIR_INFO_1 {.bycopy.} = object
rped1_dirname: pointer
rped1_integrity: uint32
rped1_extent: uint32struct REPL_EDIR_INFO_1
{
void* rped1_dirname;
uint rped1_integrity;
uint rped1_extent;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; REPL_EDIR_INFO_1 サイズ: 12 バイト(x86)
dim st, 3 ; 4byte整数×3(構造体サイズ 12 / 4 切り上げ)
; rped1_dirname : LPWSTR (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; rped1_integrity : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; rped1_extent : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; REPL_EDIR_INFO_1 サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; rped1_dirname : LPWSTR (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; rped1_integrity : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; rped1_extent : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global REPL_EDIR_INFO_1
#field intptr rped1_dirname
#field int rped1_integrity
#field int rped1_extent
#endstruct
stdim st, REPL_EDIR_INFO_1 ; NSTRUCT 変数を確保
st->rped1_integrity = 100
mes "rped1_integrity=" + st->rped1_integrity