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

JetStopService

関数
ESEデータベースサービスを停止する。
DLLESENT.dll呼出規約winapi

シグネチャ

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

INT JetStopService(void);

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

各言語での呼び出し定義

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

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

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

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

var (
	esent = windows.NewLazySystemDLL("ESENT.dll")
	procJetStopService = esent.NewProc("JetStopService")
)

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