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