ホーム › Networking.WinInet › AppCacheDeleteIEGroup
AppCacheDeleteIEGroup
関数IE用アプリケーションキャッシュグループを削除する。
シグネチャ
// WININET.dll
#include <windows.h>
DWORD AppCacheDeleteIEGroup(
LPCWSTR pwszManifestUrl
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pwszManifestUrl | LPCWSTR | in |
戻り値の型: DWORD
各言語での呼び出し定義
// WININET.dll
#include <windows.h>
DWORD AppCacheDeleteIEGroup(
LPCWSTR pwszManifestUrl
);[DllImport("WININET.dll", ExactSpelling = true)]
static extern uint AppCacheDeleteIEGroup(
[MarshalAs(UnmanagedType.LPWStr)] string pwszManifestUrl // LPCWSTR
);<DllImport("WININET.dll", ExactSpelling:=True)>
Public Shared Function AppCacheDeleteIEGroup(
<MarshalAs(UnmanagedType.LPWStr)> pwszManifestUrl As String ' LPCWSTR
) As UInteger
End Function' pwszManifestUrl : LPCWSTR
Declare PtrSafe Function AppCacheDeleteIEGroup Lib "wininet" ( _
ByVal pwszManifestUrl As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
AppCacheDeleteIEGroup = ctypes.windll.wininet.AppCacheDeleteIEGroup
AppCacheDeleteIEGroup.restype = wintypes.DWORD
AppCacheDeleteIEGroup.argtypes = [
wintypes.LPCWSTR, # pwszManifestUrl : LPCWSTR
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('WININET.dll')
AppCacheDeleteIEGroup = Fiddle::Function.new(
lib['AppCacheDeleteIEGroup'],
[
Fiddle::TYPE_VOIDP, # pwszManifestUrl : LPCWSTR
],
-Fiddle::TYPE_INT)#[link(name = "wininet")]
extern "system" {
fn AppCacheDeleteIEGroup(
pwszManifestUrl: *const u16 // LPCWSTR
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("WININET.dll")]
public static extern uint AppCacheDeleteIEGroup([MarshalAs(UnmanagedType.LPWStr)] string pwszManifestUrl);
"@
$api = Add-Type -MemberDefinition $sig -Name 'WININET_AppCacheDeleteIEGroup' -Namespace Win32 -PassThru
# $api::AppCacheDeleteIEGroup(pwszManifestUrl)#uselib "WININET.dll"
#func global AppCacheDeleteIEGroup "AppCacheDeleteIEGroup" sptr
; AppCacheDeleteIEGroup pwszManifestUrl ; 戻り値は stat
; pwszManifestUrl : LPCWSTR -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "WININET.dll"
#cfunc global AppCacheDeleteIEGroup "AppCacheDeleteIEGroup" wstr
; res = AppCacheDeleteIEGroup(pwszManifestUrl)
; pwszManifestUrl : LPCWSTR -> "wstr"; DWORD AppCacheDeleteIEGroup(LPCWSTR pwszManifestUrl)
#uselib "WININET.dll"
#cfunc global AppCacheDeleteIEGroup "AppCacheDeleteIEGroup" wstr
; res = AppCacheDeleteIEGroup(pwszManifestUrl)
; pwszManifestUrl : LPCWSTR -> "wstr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
wininet = windows.NewLazySystemDLL("WININET.dll")
procAppCacheDeleteIEGroup = wininet.NewProc("AppCacheDeleteIEGroup")
)
// pwszManifestUrl (LPCWSTR)
r1, _, err := procAppCacheDeleteIEGroup.Call(
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(pwszManifestUrl))),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction AppCacheDeleteIEGroup(
pwszManifestUrl: PWideChar // LPCWSTR
): DWORD; stdcall;
external 'WININET.dll' name 'AppCacheDeleteIEGroup';result := DllCall("WININET\AppCacheDeleteIEGroup"
, "WStr", pwszManifestUrl ; LPCWSTR
, "UInt") ; return: DWORD●AppCacheDeleteIEGroup(pwszManifestUrl) = DLL("WININET.dll", "dword AppCacheDeleteIEGroup(char*)")
# 呼び出し: AppCacheDeleteIEGroup(pwszManifestUrl)
# pwszManifestUrl : LPCWSTR -> "char*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。