whocash Posted June 13, 2007 Share Posted June 13, 2007 Anybody knows where to find IVM API? Link to comment Share on other sites More sharing options...
Guest nchto Posted June 14, 2007 Share Posted June 14, 2007 www.nch.com.au/ivm/sdk.html. Link to comment Share on other sites More sharing options...
whocash Posted June 16, 2007 Author Share Posted June 16, 2007 Thank you. I developed my own c# codes with success. Link to comment Share on other sites More sharing options...
Guest nchto Posted June 19, 2007 Share Posted June 19, 2007 Are you willing to post these? I could see if they would put them on the API site to help others in your situation. Link to comment Share on other sites More sharing options...
whocash Posted June 20, 2007 Author Share Posted June 20, 2007 ClassFile.cs using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Text; using System.IO; namespace VeriMoney.Call { public class Win32 { public const int WM_COMMAND = 0x7fff; [DllImport("User32.dll")] public static extern int FindWindow(string strClassName,string strWindowName); [DllImport("User32.dll")] public static extern int FindWindowEx(string hwndParent,string hwndChildAfter, string strClassName, string strWindowName); [DllImport("user32.dll")] public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); //Overload for string lParam (e.g. WM_GETTEXT) [DllImport("user32.dll")] public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, [Out] StringBuilder lParam); [DllImport("User32.dll")] public static extern Int32 SendMessage( int hWnd, // handle to destination window int Msg, // message int wParam, // first message parameter [MarshalAs(UnmanagedType.LPStr)] string lParam); [DllImport("User32.dll")] public static extern Int32 SendMessage( int hWnd, // handle to destination window int Msg, // message int wParam, // first message parameter int lParam); [DllImport("kernel32.dll")] public static extern int GlobalAddAtom(String atomString); [DllImport("kernel32.dll")] public static extern int GlobalDeleteAtom(int atom); public Win32() { } ~Win32() { } } } and ExcuteFile.cs using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Net; using System.Security.Cryptography; using System.Xml; using System.Runtime.InteropServices; namespace VeriMoney.Call { public class Calling { public void call() { string str = "+821234567;&LANG=EN&TID=9047026&TT=SM&PM=Credit Card&CT=American Express&CN=4000111122223333&TA=345,000 Japanese Yen"; char[] charArray = str.ToCharArray(); System.Int32 iHandle; iHandle = Win32.FindWindowEx(null, null, null, "IVM Answering Attendant"); int atomResult = Win32.GlobalAddAtom(str); int result = Win32.SendMessage(iHandle, 0x7fff, 4, atomResult); Win32.GlobalDeleteAtom(atomResult); } } } Link to comment Share on other sites More sharing options...
Guest nchto Posted June 20, 2007 Share Posted June 20, 2007 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now