ホーム › Networking.WindowsWebServices › WsFreeMessage
WsFreeMessage
関数メッセージオブジェクトを解放する。
シグネチャ
// webservices.dll
#include <windows.h>
void WsFreeMessage(
WS_MESSAGE* message
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| message | WS_MESSAGE* | in |
戻り値の型: void
各言語での呼び出し定義
// webservices.dll
#include <windows.h>
void WsFreeMessage(
WS_MESSAGE* message
);[DllImport("webservices.dll", ExactSpelling = true)]
static extern void WsFreeMessage(
ref IntPtr message // WS_MESSAGE*
);<DllImport("webservices.dll", ExactSpelling:=True)>
Public Shared Sub WsFreeMessage(
ByRef message As IntPtr ' WS_MESSAGE*
)
End Sub' message : WS_MESSAGE*
Declare PtrSafe Sub WsFreeMessage Lib "webservices" ( _
ByRef message As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
WsFreeMessage = ctypes.windll.webservices.WsFreeMessage
WsFreeMessage.restype = None
WsFreeMessage.argtypes = [
ctypes.c_void_p, # message : WS_MESSAGE*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('webservices.dll')
WsFreeMessage = Fiddle::Function.new(
lib['WsFreeMessage'],
[
Fiddle::TYPE_VOIDP, # message : WS_MESSAGE*
],
Fiddle::TYPE_VOID)#[link(name = "webservices")]
extern "system" {
fn WsFreeMessage(
message: *mut isize // WS_MESSAGE*
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("webservices.dll")]
public static extern void WsFreeMessage(ref IntPtr message);
"@
$api = Add-Type -MemberDefinition $sig -Name 'webservices_WsFreeMessage' -Namespace Win32 -PassThru
# $api::WsFreeMessage(message)#uselib "webservices.dll"
#func global WsFreeMessage "WsFreeMessage" sptr
; WsFreeMessage message
; message : WS_MESSAGE* -> "sptr"#uselib "webservices.dll"
#func global WsFreeMessage "WsFreeMessage" int
; WsFreeMessage message
; message : WS_MESSAGE* -> "int"; void WsFreeMessage(WS_MESSAGE* message)
#uselib "webservices.dll"
#func global WsFreeMessage "WsFreeMessage" int
; WsFreeMessage message
; message : WS_MESSAGE* -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
webservices = windows.NewLazySystemDLL("webservices.dll")
procWsFreeMessage = webservices.NewProc("WsFreeMessage")
)
// message (WS_MESSAGE*)
r1, _, err := procWsFreeMessage.Call(
uintptr(message),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure WsFreeMessage(
message: Pointer // WS_MESSAGE*
); stdcall;
external 'webservices.dll' name 'WsFreeMessage';result := DllCall("webservices\WsFreeMessage"
, "Ptr", message ; WS_MESSAGE*
, "Int") ; return: void●WsFreeMessage(message) = DLL("webservices.dll", "int WsFreeMessage(void*)")
# 呼び出し: WsFreeMessage(message)
# message : WS_MESSAGE* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。