GetDrvVersion

概要

ドライバのバージョンを取得します。

補足

機種番号は、
0x0101 PL3000シリーズ
です。

VC++ .NET VC# .NET VB .NET


VC++ .NET

GetDrvVersion
呼び出し形式 BOOL GetDrvVersion(int *iMajor, int *iMinor, int *iProduct);
戻り値
TRUE 正常
FALSE エラー
引数 int *iMajor ドライババージョン (整数部分)
int *iMinor ドライババージョン (小数部分)
int *iProduct 機種番号
int ret, iProduct, iMajor, iMinor
ret = GetDrvVersion(&iMajor, &iMinor, &iProduct);
必要条件
ヘッダー iocif.h/iocifconst.h
ライブラリ ioctl.lib

ページTopへ

VC# .NET

GetDrvVersion
呼び出し形式 [DllImport("Ioctl.dll")] static extern int GetDrvVersion(ref int iMajor, ref int iMinor, ref int iProduct);
戻り値
0以外 正常
0 エラー
引数 ref int iMajor ドライババージョン (整数部分)
ref int iMinor ドライババージョン (小数部分)
ref int iProduct 機種番号
int ret, iProduct, iMajor, iMinor
ret = GetDrvVersion(ref iMajor, ref iMinor, ref iProduct);

ページTopへ

VB .NET

GetDrvVersion
呼び出し形式 Declare Function GetDrvVersion Lib "Ioctl.dll"(ByRef iMajor As Integer, ByRef iMinor As Integer, ByRef iProduct As Integer)
戻り値
0以外 正常
0 エラー
引数 ByRef iMajor As Integer ドライババージョン (整数部分)
ByRef iMinor As Integer ドライババージョン (小数部分)
ByRef iProduct As Integer 機種番号
Dim ret As Integer
Dim iProduct As Integer
Dim iMajor As Integer
Dim iMinor As Integer
ret = GetDrvVersion(iMajor, iMinor, iProduct)

ページTopへ