ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/coreapi.cs
Revision: 12
Committed: Wed Jul 14 09:20:46 2010 UTC (12 years, 1 month ago) by william
File size: 993 byte(s)
Log Message:
Add coreapi class, this will contain all of the C++ calls to Granny2.dll

File Contents

# Content
1 using System;
2 using System.Runtime.InteropServices;
3
4 using gr2lib.core.typedefs;
5
6 namespace gr2lib.core
7 {
8 public class coreapi
9 {
10 #region Granny API Version Support
11 [DllImport("granny2.dll", EntryPoint = "GrannyVersionsMatch_", CallingConvention = CallingConvention.StdCall)]
12 public static extern bool GrannyVersionsMatch(granny_int32x MajorVersion, granny_int32x MinorVersion, granny_int32x Customization, granny_int32x BuildNumber);
13 [DllImport("granny2.dll", EntryPoint = "GrannyGetVersion", CallingConvention = CallingConvention.StdCall)]
14 public static extern void GrannyGetVersion(out granny_int32x MajorVersion, out granny_int32x MinorVersion, out granny_int32x Customization, out granny_int32x BuildNumber);
15 [DllImport("granny2.dll", EntryPoint = "GrannyGetVersionString", CallingConvention = CallingConvention.StdCall)]
16 public static extern string GrannyGetVersionString();
17 #endregion
18 }
19 }