GetDLLFirmwareInfo Method - intrepidcs API
C/C++ declare - VB declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB example - VB.NET example - C# example

This method returns the firmware version stored within the DLL API.

C/C++ Declare

int _stdcall icsneoGetDLLFirmwareInfo(int hObject, stAPIFirmwareInfo *pInfo);

Visual Basic Declare

Public Declare Function icsneoGetDLLFirmwareInfo Lib "icsneo40.dll" _
 
(ByVal hObject As Long, ByRef pInfo As stAPIFirmwareInfo) As Long

Visual Basic .NET Declare

Public Declare Function icsneoGetDLLFirmwareInfo Lib "icsneo40.dll" _
  (
ByVal hObject As Integer, ByRef
pInfo As stAPIFirmwareInfo) As Integer

C# Declare

[DllImport("icsneo40.dll")]
public static extern int icsneoGetDLLFirmwareInfo(int hObject, ref stAPIFirmwareInfo pInfo);


Parameters

hObject
    [in] Specifies the driver object created by OpenNeoDevice.

pInfo
    [out] Pointer to an
stAPIFirmwareInfo structure. 

Return Values

Returns 1 if successful, 0 if an error occurred. 

Remarks

This method returns the version information for the neoVI firmware stored within the neoVI DLL API. This is the version that will be written to the neoVI device by the ForceFirmwareUpdate method.


Examples

Visual Basic Example

Private m_hObject As Long '// Declared at form level and previously open with a call to OpenNeoDevice

Dim FirmwareInfo As stAPIFirmwareInfo
Dim lResult As Integer

lResult = icsneoGetDLLFirmwareInfo(m_hObject, FirmwareInfo)
If lResult = 0 Then
    MsgBox(
"Problem getting the version of the firmware stored within the DLL API", vbOKOnly)
   
Exit Sub
End
If

C/C++ Example

stAPIFirmwareInfo FirmwareInfo;
int iResult;

iResult = icsneoGetDLLFirmwareInfo(m_hObject, &FirmwareInfo);
if(iResult == 0)
{
    MessageBox::Show(
"Problem getting the version of the firmware stored within the DLL API");
   
return
;
}


C# Example

stAPIFirmwareInfo FirmwareInfo = new stAPIFirmwareInfo();
int iResult;

iResult = icsNeoDll.icsneoGetDLLFirmwareInfo(m_hObject, ref FirmwareInfo);
if(iResult == 0)
{
    MessageBox.Show("Problem getting the version of the firmware stored within the DLL API");
   
return
;
}


Visual Basic .NET Example

Dim FirmwareInfo As stAPIFirmwareInfo
Dim
iResult As Integer

iResult = icsneoGetDLLFirmwareInfo(m_hObject, FirmwareInfo)
If iResult = 0 Then
    MsgBox(
"Problem getting the version of the firmware stored within the DLL API")
   
Exit Sub
End
If



intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc. 
(www.intrepidcs.com)

Last Updated : Wednesday, December 17, 2008