ホーム › System.Search › bcp_batch
bcp_batch
関数一括コピー操作で現在までの行を一括コミットする。
シグネチャ
// odbcbcp.dll
#include <windows.h>
INT bcp_batch(
void* param0
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| param0 | void* | inout |
戻り値の型: INT
各言語での呼び出し定義
// odbcbcp.dll
#include <windows.h>
INT bcp_batch(
void* param0
);[DllImport("odbcbcp.dll", ExactSpelling = true)]
static extern int bcp_batch(
IntPtr param0 // void* in/out
);<DllImport("odbcbcp.dll", ExactSpelling:=True)>
Public Shared Function bcp_batch(
param0 As IntPtr ' void* in/out
) As Integer
End Function' param0 : void* in/out
Declare PtrSafe Function bcp_batch Lib "odbcbcp" ( _
ByVal param0 As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
bcp_batch = ctypes.windll.odbcbcp.bcp_batch
bcp_batch.restype = ctypes.c_int
bcp_batch.argtypes = [
ctypes.POINTER(None), # param0 : void* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('odbcbcp.dll')
bcp_batch = Fiddle::Function.new(
lib['bcp_batch'],
[
Fiddle::TYPE_VOIDP, # param0 : void* in/out
],
Fiddle::TYPE_INT)#[link(name = "odbcbcp")]
extern "system" {
fn bcp_batch(
param0: *mut () // void* in/out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("odbcbcp.dll")]
public static extern int bcp_batch(IntPtr param0);
"@
$api = Add-Type -MemberDefinition $sig -Name 'odbcbcp_bcp_batch' -Namespace Win32 -PassThru
# $api::bcp_batch(param0)#uselib "odbcbcp.dll"
#func global bcp_batch "bcp_batch" sptr
; bcp_batch param0 ; 戻り値は stat
; param0 : void* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "odbcbcp.dll"
#cfunc global bcp_batch "bcp_batch" sptr
; res = bcp_batch(param0)
; param0 : void* in/out -> "sptr"; INT bcp_batch(void* param0)
#uselib "odbcbcp.dll"
#cfunc global bcp_batch "bcp_batch" intptr
; res = bcp_batch(param0)
; param0 : void* in/out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
odbcbcp = windows.NewLazySystemDLL("odbcbcp.dll")
procbcp_batch = odbcbcp.NewProc("bcp_batch")
)
// param0 (void* in/out)
r1, _, err := procbcp_batch.Call(
uintptr(param0),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // INTfunction bcp_batch(
param0: Pointer // void* in/out
): Integer; stdcall;
external 'odbcbcp.dll' name 'bcp_batch';result := DllCall("odbcbcp\bcp_batch"
, "Ptr", param0 ; void* in/out
, "Int") ; return: INT●bcp_batch(param0) = DLL("odbcbcp.dll", "int bcp_batch(void*)")
# 呼び出し: bcp_batch(param0)
# param0 : void* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。