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

ClusterRemoveGroupFromGroupSet

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

シグネチャ

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

DWORD ClusterRemoveGroupFromGroupSet(
    HGROUP hGroup
);

パラメーター

名前方向
hGroupHGROUPin

戻り値の型: DWORD

各言語での呼び出し定義

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

DWORD ClusterRemoveGroupFromGroupSet(
    HGROUP hGroup
);
[DllImport("CLUSAPI.dll", ExactSpelling = true)]
static extern uint ClusterRemoveGroupFromGroupSet(
    IntPtr hGroup   // HGROUP
);
<DllImport("CLUSAPI.dll", ExactSpelling:=True)>
Public Shared Function ClusterRemoveGroupFromGroupSet(
    hGroup As IntPtr   ' HGROUP
) As UInteger
End Function
' hGroup : HGROUP
Declare PtrSafe Function ClusterRemoveGroupFromGroupSet 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

ClusterRemoveGroupFromGroupSet = ctypes.windll.clusapi.ClusterRemoveGroupFromGroupSet
ClusterRemoveGroupFromGroupSet.restype = wintypes.DWORD
ClusterRemoveGroupFromGroupSet.argtypes = [
    ctypes.c_ssize_t,  # hGroup : HGROUP
]
require 'fiddle'
require 'fiddle/import'

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

var (
	clusapi = windows.NewLazySystemDLL("CLUSAPI.dll")
	procClusterRemoveGroupFromGroupSet = clusapi.NewProc("ClusterRemoveGroupFromGroupSet")
)

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