ホーム › System.Ole › OleBuildVersion
OleBuildVersion
関数OLEライブラリのビルドバージョン番号を返す。
シグネチャ
// ole32.dll
#include <windows.h>
DWORD OleBuildVersion(void);パラメーターなし。戻り値: DWORD
各言語での呼び出し定義
// ole32.dll
#include <windows.h>
DWORD OleBuildVersion(void);[DllImport("ole32.dll", ExactSpelling = true)]
static extern uint OleBuildVersion();<DllImport("ole32.dll", ExactSpelling:=True)>
Public Shared Function OleBuildVersion() As UInteger
End FunctionDeclare PtrSafe Function OleBuildVersion Lib "ole32" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
OleBuildVersion = ctypes.windll.ole32.OleBuildVersion
OleBuildVersion.restype = wintypes.DWORD
OleBuildVersion.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('ole32.dll')
OleBuildVersion = Fiddle::Function.new(
lib['OleBuildVersion'],
[],
-Fiddle::TYPE_INT)#[link(name = "ole32")]
extern "system" {
fn OleBuildVersion() -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("ole32.dll")]
public static extern uint OleBuildVersion();
"@
$api = Add-Type -MemberDefinition $sig -Name 'ole32_OleBuildVersion' -Namespace Win32 -PassThru
# $api::OleBuildVersion()#uselib "ole32.dll"
#func global OleBuildVersion "OleBuildVersion"
; OleBuildVersion ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "ole32.dll"
#cfunc global OleBuildVersion "OleBuildVersion"
; res = OleBuildVersion(); DWORD OleBuildVersion()
#uselib "ole32.dll"
#cfunc global OleBuildVersion "OleBuildVersion"
; res = OleBuildVersion()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
ole32 = windows.NewLazySystemDLL("ole32.dll")
procOleBuildVersion = ole32.NewProc("OleBuildVersion")
)
r1, _, err := procOleBuildVersion.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction OleBuildVersion: DWORD; stdcall;
external 'ole32.dll' name 'OleBuildVersion';result := DllCall("ole32\OleBuildVersion", "UInt")●OleBuildVersion() = DLL("ole32.dll", "dword OleBuildVersion()")
# 呼び出し: OleBuildVersion()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。