ホーム › Networking.WinInet › UrlCacheCloseEntryHandle
UrlCacheCloseEntryHandle
関数URLキャッシュエントリのファイルハンドルを閉じる。
シグネチャ
// WININET.dll
#include <windows.h>
void UrlCacheCloseEntryHandle(
void* hEntryFile
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hEntryFile | void* | in |
戻り値の型: void
各言語での呼び出し定義
// WININET.dll
#include <windows.h>
void UrlCacheCloseEntryHandle(
void* hEntryFile
);[DllImport("WININET.dll", ExactSpelling = true)]
static extern void UrlCacheCloseEntryHandle(
IntPtr hEntryFile // void*
);<DllImport("WININET.dll", ExactSpelling:=True)>
Public Shared Sub UrlCacheCloseEntryHandle(
hEntryFile As IntPtr ' void*
)
End Sub' hEntryFile : void*
Declare PtrSafe Sub UrlCacheCloseEntryHandle Lib "wininet" ( _
ByVal hEntryFile As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
UrlCacheCloseEntryHandle = ctypes.windll.wininet.UrlCacheCloseEntryHandle
UrlCacheCloseEntryHandle.restype = None
UrlCacheCloseEntryHandle.argtypes = [
ctypes.POINTER(None), # hEntryFile : void*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('WININET.dll')
UrlCacheCloseEntryHandle = Fiddle::Function.new(
lib['UrlCacheCloseEntryHandle'],
[
Fiddle::TYPE_VOIDP, # hEntryFile : void*
],
Fiddle::TYPE_VOID)#[link(name = "wininet")]
extern "system" {
fn UrlCacheCloseEntryHandle(
hEntryFile: *mut () // void*
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("WININET.dll")]
public static extern void UrlCacheCloseEntryHandle(IntPtr hEntryFile);
"@
$api = Add-Type -MemberDefinition $sig -Name 'WININET_UrlCacheCloseEntryHandle' -Namespace Win32 -PassThru
# $api::UrlCacheCloseEntryHandle(hEntryFile)#uselib "WININET.dll"
#func global UrlCacheCloseEntryHandle "UrlCacheCloseEntryHandle" sptr
; UrlCacheCloseEntryHandle hEntryFile
; hEntryFile : void* -> "sptr"#uselib "WININET.dll"
#func global UrlCacheCloseEntryHandle "UrlCacheCloseEntryHandle" sptr
; UrlCacheCloseEntryHandle hEntryFile
; hEntryFile : void* -> "sptr"; void UrlCacheCloseEntryHandle(void* hEntryFile)
#uselib "WININET.dll"
#func global UrlCacheCloseEntryHandle "UrlCacheCloseEntryHandle" intptr
; UrlCacheCloseEntryHandle hEntryFile
; hEntryFile : void* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
wininet = windows.NewLazySystemDLL("WININET.dll")
procUrlCacheCloseEntryHandle = wininet.NewProc("UrlCacheCloseEntryHandle")
)
// hEntryFile (void*)
r1, _, err := procUrlCacheCloseEntryHandle.Call(
uintptr(hEntryFile),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure UrlCacheCloseEntryHandle(
hEntryFile: Pointer // void*
); stdcall;
external 'WININET.dll' name 'UrlCacheCloseEntryHandle';result := DllCall("WININET\UrlCacheCloseEntryHandle"
, "Ptr", hEntryFile ; void*
, "Int") ; return: void●UrlCacheCloseEntryHandle(hEntryFile) = DLL("WININET.dll", "int UrlCacheCloseEntryHandle(void*)")
# 呼び出し: UrlCacheCloseEntryHandle(hEntryFile)
# hEntryFile : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。