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