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