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

HSE_EXEC_URL_INFO

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

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

フィールド

フィールドサイズx64x86説明
pszUrlLPSTR8/4+0+0実行(子リクエスト)する対象URLを示すLPSTRである。
pszMethodLPSTR8/4+8+4子リクエストのHTTPメソッドを示すLPSTRである。NULLで継承する。
pszChildHeadersLPSTR8/4+16+8子リクエストに付加するヘッダを示すLPSTRである。NULL可。
pUserInfoHSE_EXEC_URL_USER_INFO*8/4+24+12実行ユーザー情報を示すHSE_EXEC_URL_USER_INFOへのポインタである。NULL可。
pEntityHSE_EXEC_URL_ENTITY_INFO*8/4+32+16子リクエストのエンティティボディを示すHSE_EXEC_URL_ENTITY_INFOへのポインタである。NULL可。
dwExecUrlFlagsDWORD4+40+20実行動作を制御するフラグ(HSE_EXEC_URL_*)を示すDWORDである。

各言語での定義

#include <windows.h>

// HSE_EXEC_URL_INFO  (x64 48 / x86 24 バイト)
typedef struct HSE_EXEC_URL_INFO {
    LPSTR pszUrl;
    LPSTR pszMethod;
    LPSTR pszChildHeaders;
    HSE_EXEC_URL_USER_INFO* pUserInfo;
    HSE_EXEC_URL_ENTITY_INFO* pEntity;
    DWORD dwExecUrlFlags;
} HSE_EXEC_URL_INFO;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct HSE_EXEC_URL_INFO
{
    public IntPtr pszUrl;
    public IntPtr pszMethod;
    public IntPtr pszChildHeaders;
    public IntPtr pUserInfo;
    public IntPtr pEntity;
    public uint dwExecUrlFlags;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure HSE_EXEC_URL_INFO
    Public pszUrl As IntPtr
    Public pszMethod As IntPtr
    Public pszChildHeaders As IntPtr
    Public pUserInfo As IntPtr
    Public pEntity As IntPtr
    Public dwExecUrlFlags As UInteger
End Structure
import ctypes
from ctypes import wintypes

class HSE_EXEC_URL_INFO(ctypes.Structure):
    _fields_ = [
        ("pszUrl", ctypes.c_void_p),
        ("pszMethod", ctypes.c_void_p),
        ("pszChildHeaders", ctypes.c_void_p),
        ("pUserInfo", ctypes.c_void_p),
        ("pEntity", ctypes.c_void_p),
        ("dwExecUrlFlags", wintypes.DWORD),
    ]
#[repr(C)]
pub struct HSE_EXEC_URL_INFO {
    pub pszUrl: *mut core::ffi::c_void,
    pub pszMethod: *mut core::ffi::c_void,
    pub pszChildHeaders: *mut core::ffi::c_void,
    pub pUserInfo: *mut core::ffi::c_void,
    pub pEntity: *mut core::ffi::c_void,
    pub dwExecUrlFlags: u32,
}
import "golang.org/x/sys/windows"

type HSE_EXEC_URL_INFO struct {
	pszUrl uintptr
	pszMethod uintptr
	pszChildHeaders uintptr
	pUserInfo uintptr
	pEntity uintptr
	dwExecUrlFlags uint32
}
type
  HSE_EXEC_URL_INFO = record
    pszUrl: Pointer;
    pszMethod: Pointer;
    pszChildHeaders: Pointer;
    pUserInfo: Pointer;
    pEntity: Pointer;
    dwExecUrlFlags: DWORD;
  end;
const HSE_EXEC_URL_INFO = extern struct {
    pszUrl: ?*anyopaque,
    pszMethod: ?*anyopaque,
    pszChildHeaders: ?*anyopaque,
    pUserInfo: ?*anyopaque,
    pEntity: ?*anyopaque,
    dwExecUrlFlags: u32,
};
type
  HSE_EXEC_URL_INFO {.bycopy.} = object
    pszUrl: pointer
    pszMethod: pointer
    pszChildHeaders: pointer
    pUserInfo: pointer
    pEntity: pointer
    dwExecUrlFlags: uint32
struct HSE_EXEC_URL_INFO
{
    void* pszUrl;
    void* pszMethod;
    void* pszChildHeaders;
    void* pUserInfo;
    void* pEntity;
    uint dwExecUrlFlags;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; HSE_EXEC_URL_INFO サイズ: 24 バイト(x86)
dim st, 6    ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; pszUrl : LPSTR (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; pszMethod : LPSTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; pszChildHeaders : LPSTR (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; pUserInfo : HSE_EXEC_URL_USER_INFO* (+12, 4byte)  varptr(st)+12 を基点に操作(4byte:入れ子/配列)
; pEntity : HSE_EXEC_URL_ENTITY_INFO* (+16, 4byte)  varptr(st)+16 を基点に操作(4byte:入れ子/配列)
; dwExecUrlFlags : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; HSE_EXEC_URL_INFO サイズ: 48 バイト(x64)
dim st, 12    ; 4byte整数×12(構造体サイズ 48 / 4 切り上げ)
; pszUrl : LPSTR (+0, 8byte)  qpoke st,0,値 / qpeek(st,0)  ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; pszMethod : LPSTR (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; pszChildHeaders : LPSTR (+16, 8byte)  qpoke st,16,値 / qpeek(st,16)  ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; pUserInfo : HSE_EXEC_URL_USER_INFO* (+24, 8byte)  varptr(st)+24 を基点に操作(8byte:入れ子/配列)
; pEntity : HSE_EXEC_URL_ENTITY_INFO* (+32, 8byte)  varptr(st)+32 を基点に操作(8byte:入れ子/配列)
; dwExecUrlFlags : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global HSE_EXEC_URL_INFO
    #field intptr pszUrl
    #field intptr pszMethod
    #field intptr pszChildHeaders
    #field intptr pUserInfo
    #field intptr pEntity
    #field int dwExecUrlFlags
#endstruct

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