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