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