ホーム › NetworkManagement.WindowsFirewall › NetworkIsolationFreeAppContainers
NetworkIsolationFreeAppContainers
関数アプリコンテナー一覧に割り当てたメモリを解放する。
シグネチャ
// api-ms-win-net-isolation-l1-1-0.dll
#include <windows.h>
DWORD NetworkIsolationFreeAppContainers(
INET_FIREWALL_APP_CONTAINER* pPublicAppCs
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pPublicAppCs | INET_FIREWALL_APP_CONTAINER* | in |
戻り値の型: DWORD
各言語での呼び出し定義
// api-ms-win-net-isolation-l1-1-0.dll
#include <windows.h>
DWORD NetworkIsolationFreeAppContainers(
INET_FIREWALL_APP_CONTAINER* pPublicAppCs
);[DllImport("api-ms-win-net-isolation-l1-1-0.dll", ExactSpelling = true)]
static extern uint NetworkIsolationFreeAppContainers(
IntPtr pPublicAppCs // INET_FIREWALL_APP_CONTAINER*
);<DllImport("api-ms-win-net-isolation-l1-1-0.dll", ExactSpelling:=True)>
Public Shared Function NetworkIsolationFreeAppContainers(
pPublicAppCs As IntPtr ' INET_FIREWALL_APP_CONTAINER*
) As UInteger
End Function' pPublicAppCs : INET_FIREWALL_APP_CONTAINER*
Declare PtrSafe Function NetworkIsolationFreeAppContainers Lib "api-ms-win-net-isolation-l1-1-0" ( _
ByVal pPublicAppCs As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
NetworkIsolationFreeAppContainers = ctypes.windll.LoadLibrary("api-ms-win-net-isolation-l1-1-0.dll").NetworkIsolationFreeAppContainers
NetworkIsolationFreeAppContainers.restype = wintypes.DWORD
NetworkIsolationFreeAppContainers.argtypes = [
ctypes.c_void_p, # pPublicAppCs : INET_FIREWALL_APP_CONTAINER*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('api-ms-win-net-isolation-l1-1-0.dll')
NetworkIsolationFreeAppContainers = Fiddle::Function.new(
lib['NetworkIsolationFreeAppContainers'],
[
Fiddle::TYPE_VOIDP, # pPublicAppCs : INET_FIREWALL_APP_CONTAINER*
],
-Fiddle::TYPE_INT)#[link(name = "api-ms-win-net-isolation-l1-1-0")]
extern "system" {
fn NetworkIsolationFreeAppContainers(
pPublicAppCs: *mut INET_FIREWALL_APP_CONTAINER // INET_FIREWALL_APP_CONTAINER*
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("api-ms-win-net-isolation-l1-1-0.dll")]
public static extern uint NetworkIsolationFreeAppContainers(IntPtr pPublicAppCs);
"@
$api = Add-Type -MemberDefinition $sig -Name 'api-ms-win-net-isolation-l1-1-0_NetworkIsolationFreeAppContainers' -Namespace Win32 -PassThru
# $api::NetworkIsolationFreeAppContainers(pPublicAppCs)#uselib "api-ms-win-net-isolation-l1-1-0.dll"
#func global NetworkIsolationFreeAppContainers "NetworkIsolationFreeAppContainers" sptr
; NetworkIsolationFreeAppContainers varptr(pPublicAppCs) ; 戻り値は stat
; pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "api-ms-win-net-isolation-l1-1-0.dll" #cfunc global NetworkIsolationFreeAppContainers "NetworkIsolationFreeAppContainers" var ; res = NetworkIsolationFreeAppContainers(pPublicAppCs) ; pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "api-ms-win-net-isolation-l1-1-0.dll" #cfunc global NetworkIsolationFreeAppContainers "NetworkIsolationFreeAppContainers" sptr ; res = NetworkIsolationFreeAppContainers(varptr(pPublicAppCs)) ; pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD NetworkIsolationFreeAppContainers(INET_FIREWALL_APP_CONTAINER* pPublicAppCs) #uselib "api-ms-win-net-isolation-l1-1-0.dll" #cfunc global NetworkIsolationFreeAppContainers "NetworkIsolationFreeAppContainers" var ; res = NetworkIsolationFreeAppContainers(pPublicAppCs) ; pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD NetworkIsolationFreeAppContainers(INET_FIREWALL_APP_CONTAINER* pPublicAppCs) #uselib "api-ms-win-net-isolation-l1-1-0.dll" #cfunc global NetworkIsolationFreeAppContainers "NetworkIsolationFreeAppContainers" intptr ; res = NetworkIsolationFreeAppContainers(varptr(pPublicAppCs)) ; pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
api_ms_win_net_isolation_l1_1_0 = windows.NewLazySystemDLL("api-ms-win-net-isolation-l1-1-0.dll")
procNetworkIsolationFreeAppContainers = api_ms_win_net_isolation_l1_1_0.NewProc("NetworkIsolationFreeAppContainers")
)
// pPublicAppCs (INET_FIREWALL_APP_CONTAINER*)
r1, _, err := procNetworkIsolationFreeAppContainers.Call(
uintptr(pPublicAppCs),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction NetworkIsolationFreeAppContainers(
pPublicAppCs: Pointer // INET_FIREWALL_APP_CONTAINER*
): DWORD; stdcall;
external 'api-ms-win-net-isolation-l1-1-0.dll' name 'NetworkIsolationFreeAppContainers';result := DllCall("api-ms-win-net-isolation-l1-1-0\NetworkIsolationFreeAppContainers"
, "Ptr", pPublicAppCs ; INET_FIREWALL_APP_CONTAINER*
, "UInt") ; return: DWORD●NetworkIsolationFreeAppContainers(pPublicAppCs) = DLL("api-ms-win-net-isolation-l1-1-0.dll", "dword NetworkIsolationFreeAppContainers(void*)")
# 呼び出し: NetworkIsolationFreeAppContainers(pPublicAppCs)
# pPublicAppCs : INET_FIREWALL_APP_CONTAINER* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。