Win32 API 日本語リファレンス
ホームStorage.Jet › JetStopBackup

JetStopBackup

関数
進行中のオンラインバックアップを停止する。
DLLESENT.dll呼出規約winapi

シグネチャ

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

INT JetStopBackup(void);

パラメーターなし。戻り値: INT

各言語での呼び出し定義

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

INT JetStopBackup(void);
[DllImport("ESENT.dll", ExactSpelling = true)]
static extern int JetStopBackup();
<DllImport("ESENT.dll", ExactSpelling:=True)>
Public Shared Function JetStopBackup() As Integer
End Function
Declare PtrSafe Function JetStopBackup Lib "esent" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

JetStopBackup = ctypes.windll.esent.JetStopBackup
JetStopBackup.restype = ctypes.c_int
JetStopBackup.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('ESENT.dll')
JetStopBackup = Fiddle::Function.new(
  lib['JetStopBackup'],
  [],
  Fiddle::TYPE_INT)
#[link(name = "esent")]
extern "system" {
    fn JetStopBackup() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("ESENT.dll")]
public static extern int JetStopBackup();
"@
$api = Add-Type -MemberDefinition $sig -Name 'ESENT_JetStopBackup' -Namespace Win32 -PassThru
# $api::JetStopBackup()
#uselib "ESENT.dll"
#func global JetStopBackup "JetStopBackup"
; JetStopBackup   ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "ESENT.dll"
#cfunc global JetStopBackup "JetStopBackup"
; res = JetStopBackup()
; INT JetStopBackup()
#uselib "ESENT.dll"
#cfunc global JetStopBackup "JetStopBackup"
; res = JetStopBackup()
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	esent = windows.NewLazySystemDLL("ESENT.dll")
	procJetStopBackup = esent.NewProc("JetStopBackup")
)

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