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