Win32 API 日本語リファレンス
ホームSystem.Recovery › ApplicationRecoveryFinished

ApplicationRecoveryFinished

関数
アプリケーション回復処理の完了をシステムに通知する。
DLLKERNEL32.dll呼出規約winapi対応OSWindows Vista 以降

シグネチャ

// KERNEL32.dll
#include <windows.h>

void ApplicationRecoveryFinished(
    BOOL bSuccess
);

パラメーター

名前方向
bSuccessBOOLin

戻り値の型: void

各言語での呼び出し定義

// KERNEL32.dll
#include <windows.h>

void ApplicationRecoveryFinished(
    BOOL bSuccess
);
[DllImport("KERNEL32.dll", ExactSpelling = true)]
static extern void ApplicationRecoveryFinished(
    bool bSuccess   // BOOL
);
<DllImport("KERNEL32.dll", ExactSpelling:=True)>
Public Shared Sub ApplicationRecoveryFinished(
    bSuccess As Boolean   ' BOOL
)
End Sub
' bSuccess : BOOL
Declare PtrSafe Sub ApplicationRecoveryFinished Lib "kernel32" ( _
    ByVal bSuccess As Long)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ApplicationRecoveryFinished = ctypes.windll.kernel32.ApplicationRecoveryFinished
ApplicationRecoveryFinished.restype = None
ApplicationRecoveryFinished.argtypes = [
    wintypes.BOOL,  # bSuccess : BOOL
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('KERNEL32.dll')
ApplicationRecoveryFinished = Fiddle::Function.new(
  lib['ApplicationRecoveryFinished'],
  [
    Fiddle::TYPE_INT,  # bSuccess : BOOL
  ],
  Fiddle::TYPE_VOID)
#[link(name = "kernel32")]
extern "system" {
    fn ApplicationRecoveryFinished(
        bSuccess: i32  // BOOL
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("KERNEL32.dll")]
public static extern void ApplicationRecoveryFinished(bool bSuccess);
"@
$api = Add-Type -MemberDefinition $sig -Name 'KERNEL32_ApplicationRecoveryFinished' -Namespace Win32 -PassThru
# $api::ApplicationRecoveryFinished(bSuccess)
#uselib "KERNEL32.dll"
#func global ApplicationRecoveryFinished "ApplicationRecoveryFinished" sptr
; ApplicationRecoveryFinished bSuccess
; bSuccess : BOOL -> "sptr"
#uselib "KERNEL32.dll"
#func global ApplicationRecoveryFinished "ApplicationRecoveryFinished" int
; ApplicationRecoveryFinished bSuccess
; bSuccess : BOOL -> "int"
; void ApplicationRecoveryFinished(BOOL bSuccess)
#uselib "KERNEL32.dll"
#func global ApplicationRecoveryFinished "ApplicationRecoveryFinished" int
; ApplicationRecoveryFinished bSuccess
; bSuccess : BOOL -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	kernel32 = windows.NewLazySystemDLL("KERNEL32.dll")
	procApplicationRecoveryFinished = kernel32.NewProc("ApplicationRecoveryFinished")
)

// bSuccess (BOOL)
r1, _, err := procApplicationRecoveryFinished.Call(
	uintptr(bSuccess),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure ApplicationRecoveryFinished(
  bSuccess: BOOL   // BOOL
); stdcall;
  external 'KERNEL32.dll' name 'ApplicationRecoveryFinished';
result := DllCall("KERNEL32\ApplicationRecoveryFinished"
    , "Int", bSuccess   ; BOOL
    , "Int")   ; return: void
●ApplicationRecoveryFinished(bSuccess) = DLL("KERNEL32.dll", "int ApplicationRecoveryFinished(bool)")
# 呼び出し: ApplicationRecoveryFinished(bSuccess)
# bSuccess : BOOL -> "bool"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。