Win32 API 日本語リファレンス
ホームNetworking.Clustering › DeleteClusterGroupSet

DeleteClusterGroupSet

関数
クラスターグループセットを削除する。
DLLCLUSAPI.dll呼出規約winapi対応OSwindowsserver2016

シグネチャ

// CLUSAPI.dll
#include <windows.h>

DWORD DeleteClusterGroupSet(
    HGROUPSET hGroupSet
);

パラメーター

名前方向
hGroupSetHGROUPSETin

戻り値の型: DWORD

各言語での呼び出し定義

// CLUSAPI.dll
#include <windows.h>

DWORD DeleteClusterGroupSet(
    HGROUPSET hGroupSet
);
[DllImport("CLUSAPI.dll", ExactSpelling = true)]
static extern uint DeleteClusterGroupSet(
    IntPtr hGroupSet   // HGROUPSET
);
<DllImport("CLUSAPI.dll", ExactSpelling:=True)>
Public Shared Function DeleteClusterGroupSet(
    hGroupSet As IntPtr   ' HGROUPSET
) As UInteger
End Function
' hGroupSet : HGROUPSET
Declare PtrSafe Function DeleteClusterGroupSet Lib "clusapi" ( _
    ByVal hGroupSet As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

DeleteClusterGroupSet = ctypes.windll.clusapi.DeleteClusterGroupSet
DeleteClusterGroupSet.restype = wintypes.DWORD
DeleteClusterGroupSet.argtypes = [
    ctypes.c_ssize_t,  # hGroupSet : HGROUPSET
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('CLUSAPI.dll')
DeleteClusterGroupSet = Fiddle::Function.new(
  lib['DeleteClusterGroupSet'],
  [
    Fiddle::TYPE_INTPTR_T,  # hGroupSet : HGROUPSET
  ],
  -Fiddle::TYPE_INT)
#[link(name = "clusapi")]
extern "system" {
    fn DeleteClusterGroupSet(
        hGroupSet: isize  // HGROUPSET
    ) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("CLUSAPI.dll")]
public static extern uint DeleteClusterGroupSet(IntPtr hGroupSet);
"@
$api = Add-Type -MemberDefinition $sig -Name 'CLUSAPI_DeleteClusterGroupSet' -Namespace Win32 -PassThru
# $api::DeleteClusterGroupSet(hGroupSet)
#uselib "CLUSAPI.dll"
#func global DeleteClusterGroupSet "DeleteClusterGroupSet" sptr
; DeleteClusterGroupSet hGroupSet   ; 戻り値は stat
; hGroupSet : HGROUPSET -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "CLUSAPI.dll"
#cfunc global DeleteClusterGroupSet "DeleteClusterGroupSet" sptr
; res = DeleteClusterGroupSet(hGroupSet)
; hGroupSet : HGROUPSET -> "sptr"
; DWORD DeleteClusterGroupSet(HGROUPSET hGroupSet)
#uselib "CLUSAPI.dll"
#cfunc global DeleteClusterGroupSet "DeleteClusterGroupSet" intptr
; res = DeleteClusterGroupSet(hGroupSet)
; hGroupSet : HGROUPSET -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	clusapi = windows.NewLazySystemDLL("CLUSAPI.dll")
	procDeleteClusterGroupSet = clusapi.NewProc("DeleteClusterGroupSet")
)

// hGroupSet (HGROUPSET)
r1, _, err := procDeleteClusterGroupSet.Call(
	uintptr(hGroupSet),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // DWORD
function DeleteClusterGroupSet(
  hGroupSet: NativeInt   // HGROUPSET
): DWORD; stdcall;
  external 'CLUSAPI.dll' name 'DeleteClusterGroupSet';
result := DllCall("CLUSAPI\DeleteClusterGroupSet"
    , "Ptr", hGroupSet   ; HGROUPSET
    , "UInt")   ; return: DWORD
●DeleteClusterGroupSet(hGroupSet) = DLL("CLUSAPI.dll", "dword DeleteClusterGroupSet(int)")
# 呼び出し: DeleteClusterGroupSet(hGroupSet)
# hGroupSet : HGROUPSET -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。