veso266
FabulaTech Forum Newbie
Posts: 1
|
Hello there, I found this file: ftvspapi.dll and it has functions like: FtVspInitApi, FtVspD00, FtVspD01, FtVspD02 and I found on google, that this file should be used by some of your software, so I was wondering what do theese functions expect as arguments and what do they return, because I was never able to find that anywhere this suggest that I could use this file alongside with Virtual modem to be able to dynamicly create modems, maybe also add some AT commands So I tried to call the simplest function I could (FtVspGetAppPid -- I suspected that this will return the APP version but it doesn't it only returns 0, so I am not sure what I am doing wrong) like this using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Test { class Program { [DllImport("ftvspapi.dll", EntryPoint = "FtVspGetAppPid", CallingConvention = CallingConvention.Cdecl)] public static extern int VspGetAppPid(); static void Main(string[] args) { Console.WriteLine(VspGetAppPid()); Console.ReadLine(); } } } So if you could help me a bit on what I am doing wrong, how should I call theese function and what are they suppose to return (would realy love to create virtual modem dynamicly, and maybe even add some AT commands) Thanks for Anwsering and Best Regards
|