ホーム › System.Iis › HTTP_FILTER_URL_MAP_EX
HTTP_FILTER_URL_MAP_EX
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| pszURL | LPSTR | 8/4 | +0 | +0 | マッピング対象のURLを示すLPSTRである。 |
| pszPhysicalPath | LPSTR | 8/4 | +8 | +4 | URLに対応する物理パスを格納するバッファを示すLPSTRである。 |
| cbPathBuff | DWORD | 4 | +16 | +8 | pszPhysicalPathバッファのバイトサイズを示すDWORDである。 |
| dwFlags | DWORD | 4 | +20 | +12 | マッピングのアクセスフラグを示すDWORDである。 |
| cchMatchingPath | DWORD | 4 | +24 | +16 | 一致した物理パスの文字数を示すDWORDである。 |
| cchMatchingURL | DWORD | 4 | +28 | +20 | 一致したURLの文字数を示すDWORDである。 |
| pszScriptMapEntry | LPSTR | 8/4 | +32 | +24 | 対応するスクリプトマップエントリを示すLPSTRである。 |
各言語での定義
#include <windows.h>
// HTTP_FILTER_URL_MAP_EX (x64 40 / x86 28 バイト)
typedef struct HTTP_FILTER_URL_MAP_EX {
LPSTR pszURL;
LPSTR pszPhysicalPath;
DWORD cbPathBuff;
DWORD dwFlags;
DWORD cchMatchingPath;
DWORD cchMatchingURL;
LPSTR pszScriptMapEntry;
} HTTP_FILTER_URL_MAP_EX;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct HTTP_FILTER_URL_MAP_EX
{
public IntPtr pszURL;
public IntPtr pszPhysicalPath;
public uint cbPathBuff;
public uint dwFlags;
public uint cchMatchingPath;
public uint cchMatchingURL;
public IntPtr pszScriptMapEntry;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure HTTP_FILTER_URL_MAP_EX
Public pszURL As IntPtr
Public pszPhysicalPath As IntPtr
Public cbPathBuff As UInteger
Public dwFlags As UInteger
Public cchMatchingPath As UInteger
Public cchMatchingURL As UInteger
Public pszScriptMapEntry As IntPtr
End Structureimport ctypes
from ctypes import wintypes
class HTTP_FILTER_URL_MAP_EX(ctypes.Structure):
_fields_ = [
("pszURL", ctypes.c_void_p),
("pszPhysicalPath", ctypes.c_void_p),
("cbPathBuff", wintypes.DWORD),
("dwFlags", wintypes.DWORD),
("cchMatchingPath", wintypes.DWORD),
("cchMatchingURL", wintypes.DWORD),
("pszScriptMapEntry", ctypes.c_void_p),
]#[repr(C)]
pub struct HTTP_FILTER_URL_MAP_EX {
pub pszURL: *mut core::ffi::c_void,
pub pszPhysicalPath: *mut core::ffi::c_void,
pub cbPathBuff: u32,
pub dwFlags: u32,
pub cchMatchingPath: u32,
pub cchMatchingURL: u32,
pub pszScriptMapEntry: *mut core::ffi::c_void,
}import "golang.org/x/sys/windows"
type HTTP_FILTER_URL_MAP_EX struct {
pszURL uintptr
pszPhysicalPath uintptr
cbPathBuff uint32
dwFlags uint32
cchMatchingPath uint32
cchMatchingURL uint32
pszScriptMapEntry uintptr
}type
HTTP_FILTER_URL_MAP_EX = record
pszURL: Pointer;
pszPhysicalPath: Pointer;
cbPathBuff: DWORD;
dwFlags: DWORD;
cchMatchingPath: DWORD;
cchMatchingURL: DWORD;
pszScriptMapEntry: Pointer;
end;const HTTP_FILTER_URL_MAP_EX = extern struct {
pszURL: ?*anyopaque,
pszPhysicalPath: ?*anyopaque,
cbPathBuff: u32,
dwFlags: u32,
cchMatchingPath: u32,
cchMatchingURL: u32,
pszScriptMapEntry: ?*anyopaque,
};type
HTTP_FILTER_URL_MAP_EX {.bycopy.} = object
pszURL: pointer
pszPhysicalPath: pointer
cbPathBuff: uint32
dwFlags: uint32
cchMatchingPath: uint32
cchMatchingURL: uint32
pszScriptMapEntry: pointerstruct HTTP_FILTER_URL_MAP_EX
{
void* pszURL;
void* pszPhysicalPath;
uint cbPathBuff;
uint dwFlags;
uint cchMatchingPath;
uint cchMatchingURL;
void* pszScriptMapEntry;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; HTTP_FILTER_URL_MAP_EX サイズ: 28 バイト(x86)
dim st, 7 ; 4byte整数×7(構造体サイズ 28 / 4 切り上げ)
; pszURL : LPSTR (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; pszPhysicalPath : LPSTR (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; cbPathBuff : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; dwFlags : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; cchMatchingPath : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; cchMatchingURL : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; pszScriptMapEntry : LPSTR (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; HTTP_FILTER_URL_MAP_EX サイズ: 40 バイト(x64)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; pszURL : LPSTR (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; pszPhysicalPath : LPSTR (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; cbPathBuff : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; dwFlags : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; cchMatchingPath : DWORD (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; cchMatchingURL : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; pszScriptMapEntry : LPSTR (+32, 8byte) qpoke st,32,値 / qpeek(st,32) ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global HTTP_FILTER_URL_MAP_EX
#field intptr pszURL
#field intptr pszPhysicalPath
#field int cbPathBuff
#field int dwFlags
#field int cchMatchingPath
#field int cchMatchingURL
#field intptr pszScriptMapEntry
#endstruct
stdim st, HTTP_FILTER_URL_MAP_EX ; NSTRUCT 変数を確保
st->cbPathBuff = 100
mes "cbPathBuff=" + st->cbPathBuff