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