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