46 lines
2.1 KiB
C#
46 lines
2.1 KiB
C#
// UNCLASSIFIED
|
|
/*-------------------------------------------------------------------------
|
|
RAYTHEON PROPRIETARY: THIS DOCUMENT CONTAINS DATA OR INFORMATION
|
|
PROPRIETARY TO RAYTHEON COMPANY AND IS RESTRICTED TO USE ONLY BY PERSONS
|
|
AUTHORIZED BY RAYTHEON COMPANY IN WRITING TO USE IT. DISCLOSURE TO
|
|
UNAUTHORIZED PERSONS WOULD LIKELY CAUSE SUBSTANTIAL COMPETITIVE HARM TO
|
|
RAYTHEON COMPANY'S BUSINESS POSITION. NEITHER SAID DOCUMENT NOR ITS
|
|
CONTENTS SHALL BE FURNISHED OR DISCLOSED TO OR COPIED OR USED BY PERSONS
|
|
OUTSIDE RAYTHEON COMPANY WITHOUT THE EXPRESS WRITTEN APPROVAL OF RAYTHEON
|
|
COMPANY.
|
|
|
|
THIS PROPRIETARY NOTICE IS NOT APPLICABLE IF DELIVERED TO THE U.S.
|
|
GOVERNMENT.
|
|
|
|
UNPUBLISHED WORK - COPYRIGHT RAYTHEON COMPANY.
|
|
-------------------------------------------------------------------------*/
|
|
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using ZT_HANDLE = System.IntPtr;
|
|
|
|
namespace Raytheon.Instruments
|
|
{
|
|
/// <summary>
|
|
/// InterOp interface to ZtScope Instrument Driver
|
|
/// </summary>
|
|
public class ScopeZBindNativeMethods
|
|
{
|
|
const string DLL_LOCATION = @"C:\Program Files (x86)\ZTEC Instruments\MClass\bin\ZBind.dll";
|
|
|
|
/*****************************************************************************/
|
|
/*= Non-SCPI Function Prototypes ============================================*/
|
|
/*****************************************************************************/
|
|
[DllImport(DLL_LOCATION, CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int zbind_add(string address, int lan, out ZT_HANDLE handle);
|
|
|
|
[DllImport(DLL_LOCATION, CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int zbind_remove(ZT_HANDLE instr_handle);
|
|
|
|
[DllImport(DLL_LOCATION, CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int zbind_send(ZT_HANDLE instr_handle, int lockCmd, string scpi);
|
|
|
|
[DllImport(DLL_LOCATION, CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int zbind_receive(ZT_HANDLE instr_handle, int lockCmd, string formatter, StringBuilder rcvString);
|
|
}
|
|
} |