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