ホーム › NetworkManagement.P2P › PeerGraphShutdown
PeerGraphShutdown
関数ピアグラフィングインフラを終了し解放する。
シグネチャ
// P2PGRAPH.dll
#include <windows.h>
HRESULT PeerGraphShutdown(void);パラメーターなし。戻り値: HRESULT
各言語での呼び出し定義
// P2PGRAPH.dll
#include <windows.h>
HRESULT PeerGraphShutdown(void);[DllImport("P2PGRAPH.dll", ExactSpelling = true)]
static extern int PeerGraphShutdown();<DllImport("P2PGRAPH.dll", ExactSpelling:=True)>
Public Shared Function PeerGraphShutdown() As Integer
End FunctionDeclare PtrSafe Function PeerGraphShutdown Lib "p2pgraph" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
PeerGraphShutdown = ctypes.windll.p2pgraph.PeerGraphShutdown
PeerGraphShutdown.restype = ctypes.c_int
PeerGraphShutdown.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('P2PGRAPH.dll')
PeerGraphShutdown = Fiddle::Function.new(
lib['PeerGraphShutdown'],
[],
Fiddle::TYPE_INT)#[link(name = "p2pgraph")]
extern "system" {
fn PeerGraphShutdown() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("P2PGRAPH.dll")]
public static extern int PeerGraphShutdown();
"@
$api = Add-Type -MemberDefinition $sig -Name 'P2PGRAPH_PeerGraphShutdown' -Namespace Win32 -PassThru
# $api::PeerGraphShutdown()#uselib "P2PGRAPH.dll"
#func global PeerGraphShutdown "PeerGraphShutdown"
; PeerGraphShutdown ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "P2PGRAPH.dll"
#cfunc global PeerGraphShutdown "PeerGraphShutdown"
; res = PeerGraphShutdown(); HRESULT PeerGraphShutdown()
#uselib "P2PGRAPH.dll"
#cfunc global PeerGraphShutdown "PeerGraphShutdown"
; res = PeerGraphShutdown()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
p2pgraph = windows.NewLazySystemDLL("P2PGRAPH.dll")
procPeerGraphShutdown = p2pgraph.NewProc("PeerGraphShutdown")
)
r1, _, err := procPeerGraphShutdown.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction PeerGraphShutdown: Integer; stdcall;
external 'P2PGRAPH.dll' name 'PeerGraphShutdown';result := DllCall("P2PGRAPH\PeerGraphShutdown", "Int")●PeerGraphShutdown() = DLL("P2PGRAPH.dll", "int PeerGraphShutdown()")
# 呼び出し: PeerGraphShutdown()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。