SetupDeleteError

機能
削除エラーを通知するダイアログボックスを生成する
Declare Function SetupDeleteError Lib "setupapi.dll" Alias "SetupDeleteErrorA" _
(ByVal hwndParent As Long, ByVal DialogTitle As String , _
ByVal File As String, ByVal Win32ErrorCode As Long, _
ByVal Style As Long) As Long
Declare Function SetupDeleteError Lib "setupapi.dll" Alias "SetupDeleteErrorA" _
(ByVal hwndParent As Integer, ByVal DialogTitle As String , _
ByVal File As String, ByVal Win32ErrorCode As Integer, _
ByVal Style As Integer) As Integer

UINT SetupDeleteError(
HWND hwndParent,
PCTSTR DialogTitle,
PCTSTR File,
UINT Win32ErrorCode,
DWORD Style
);
引数
hwndParent

通知ダイアログボックスの親ウィンドウのハンドル
DialogTitle
ダイアログボックスのタイトル
VbNullStringの場合、"DeleteError"になる
File
削除が失敗したファイルの完全なパス
Win32ErrorCode
ファイル操作の際に発生したWin32のエラーコード
Style
ダイアログボックスの標準形式と動作を指定する定数の組み合わせ
戻り値
戻り値の定数の組み合わせ
Styleの定数

IDF_NOBEEP = &H200                           ビープ音を発生しない
IDF_NOFOREGROUND = &H400                     モータルウィンドウとして表示しない
戻り値の定数

DPROMPT_SUCCESS = 0                          ユーザーは操作を再操作し、成功した
DPROMPT_CANCEL = 1                           ユーザーが[Cancel]を押した
DPROMPT_SKIPFILE = 2                         ユーザーが[Skip File]を押した
DPROMPT_OUTOFMEMORY = 4                      メモリ不足