ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coreapi/coreapi.cs
Revision: 70
Committed: Thu Jul 15 12:55:21 2010 UTC (13 years, 7 months ago) by william
File size: 1628 byte(s)
Log Message:
initial commit of support to read ArtToolInfo

File Contents

# Content
1 using System;
2 using System.Runtime.InteropServices;
3
4 using gr2lib.core.typedefs;
5 //using gr2lib.core.coretypes;
6
7 namespace gr2lib.core
8 {
9 public class coreapi
10 {
11 #region Granny API Version Support
12 [DllImport("granny2.dll", EntryPoint = "GrannyVersionsMatch_", CallingConvention = CallingConvention.StdCall)]
13 internal static extern bool GrannyVersionsMatch(granny_int32x MajorVersion, granny_int32x MinorVersion, granny_int32x Customization, granny_int32x BuildNumber);
14 [DllImport("granny2.dll", EntryPoint = "GrannyGetVersion", CallingConvention = CallingConvention.StdCall)]
15 internal static extern void GrannyGetVersion(ref granny_int32x MajorVersion, ref granny_int32x MinorVersion, ref granny_int32x Customization, ref granny_int32x BuildNumber);
16 [DllImport("granny2.dll", EntryPoint = "GrannyGetVersionString", CallingConvention = CallingConvention.StdCall)]
17 internal static extern string GrannyGetVersionString();
18 #endregion
19
20 #region test
21 [DllImport("granny2.dll", EntryPoint = "GrannyReadEntireFile", CallingConvention = CallingConvention.StdCall)]
22 public static extern IntPtr GrannyReadEntireFile(string fileName);
23 [DllImport("granny2.dll", EntryPoint = "GrannyGetFileInfo", CallingConvention = CallingConvention.StdCall)]
24 public static extern IntPtr GetFileInfo(IntPtr file);
25 [DllImport("granny2.dll", EntryPoint = "GrannyFreeFile", CallingConvention = CallingConvention.StdCall)]
26 public static extern void FreeFile(IntPtr pointer);
27
28 #endregion
29 }
30 }