ホーム › Security.Cryptography › CryptUninstallCancelRetrieval
CryptUninstallCancelRetrieval
関数取得キャンセル用のコールバックを解除する。
シグネチャ
// CRYPTNET.dll
#include <windows.h>
BOOL CryptUninstallCancelRetrieval(
DWORD dwFlags,
void* pvReserved // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| dwFlags | DWORD | in |
| pvReserved | void* | optional |
戻り値の型: BOOL
各言語での呼び出し定義
// CRYPTNET.dll
#include <windows.h>
BOOL CryptUninstallCancelRetrieval(
DWORD dwFlags,
void* pvReserved // optional
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("CRYPTNET.dll", ExactSpelling = true)]
static extern bool CryptUninstallCancelRetrieval(
uint dwFlags, // DWORD
IntPtr pvReserved // void* optional
);<DllImport("CRYPTNET.dll", ExactSpelling:=True)>
Public Shared Function CryptUninstallCancelRetrieval(
dwFlags As UInteger, ' DWORD
pvReserved As IntPtr ' void* optional
) As Boolean
End Function' dwFlags : DWORD
' pvReserved : void* optional
Declare PtrSafe Function CryptUninstallCancelRetrieval Lib "cryptnet" ( _
ByVal dwFlags As Long, _
ByVal pvReserved As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
CryptUninstallCancelRetrieval = ctypes.windll.cryptnet.CryptUninstallCancelRetrieval
CryptUninstallCancelRetrieval.restype = wintypes.BOOL
CryptUninstallCancelRetrieval.argtypes = [
wintypes.DWORD, # dwFlags : DWORD
ctypes.POINTER(None), # pvReserved : void* optional
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('CRYPTNET.dll')
CryptUninstallCancelRetrieval = Fiddle::Function.new(
lib['CryptUninstallCancelRetrieval'],
[
-Fiddle::TYPE_INT, # dwFlags : DWORD
Fiddle::TYPE_VOIDP, # pvReserved : void* optional
],
Fiddle::TYPE_INT)#[link(name = "cryptnet")]
extern "system" {
fn CryptUninstallCancelRetrieval(
dwFlags: u32, // DWORD
pvReserved: *mut () // void* optional
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("CRYPTNET.dll")]
public static extern bool CryptUninstallCancelRetrieval(uint dwFlags, IntPtr pvReserved);
"@
$api = Add-Type -MemberDefinition $sig -Name 'CRYPTNET_CryptUninstallCancelRetrieval' -Namespace Win32 -PassThru
# $api::CryptUninstallCancelRetrieval(dwFlags, pvReserved)#uselib "CRYPTNET.dll"
#func global CryptUninstallCancelRetrieval "CryptUninstallCancelRetrieval" sptr, sptr
; CryptUninstallCancelRetrieval dwFlags, pvReserved ; 戻り値は stat
; dwFlags : DWORD -> "sptr"
; pvReserved : void* optional -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "CRYPTNET.dll"
#cfunc global CryptUninstallCancelRetrieval "CryptUninstallCancelRetrieval" int, sptr
; res = CryptUninstallCancelRetrieval(dwFlags, pvReserved)
; dwFlags : DWORD -> "int"
; pvReserved : void* optional -> "sptr"; BOOL CryptUninstallCancelRetrieval(DWORD dwFlags, void* pvReserved)
#uselib "CRYPTNET.dll"
#cfunc global CryptUninstallCancelRetrieval "CryptUninstallCancelRetrieval" int, intptr
; res = CryptUninstallCancelRetrieval(dwFlags, pvReserved)
; dwFlags : DWORD -> "int"
; pvReserved : void* optional -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
cryptnet = windows.NewLazySystemDLL("CRYPTNET.dll")
procCryptUninstallCancelRetrieval = cryptnet.NewProc("CryptUninstallCancelRetrieval")
)
// dwFlags (DWORD), pvReserved (void* optional)
r1, _, err := procCryptUninstallCancelRetrieval.Call(
uintptr(dwFlags),
uintptr(pvReserved),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction CryptUninstallCancelRetrieval(
dwFlags: DWORD; // DWORD
pvReserved: Pointer // void* optional
): BOOL; stdcall;
external 'CRYPTNET.dll' name 'CryptUninstallCancelRetrieval';result := DllCall("CRYPTNET\CryptUninstallCancelRetrieval"
, "UInt", dwFlags ; DWORD
, "Ptr", pvReserved ; void* optional
, "Int") ; return: BOOL●CryptUninstallCancelRetrieval(dwFlags, pvReserved) = DLL("CRYPTNET.dll", "bool CryptUninstallCancelRetrieval(dword, void*)")
# 呼び出し: CryptUninstallCancelRetrieval(dwFlags, pvReserved)
# dwFlags : DWORD -> "dword"
# pvReserved : void* optional -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。