[DllImport("Coredll")]
public static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);
[StructLayout(LayoutKind.Sequential)]
public struct SHELLEXECUTEINFO //用于ShellExecuteEx
{
public int cbSize;
public uint fMask;
public IntPtr hwnd;
public string lpVerb;
public string lpFile;
public string lpParameters;
public string lpDirectory;
public int nShow;
public IntPtr hInstApp;
public int lpIDList;
public string lpClass;
public IntPtr hkeyClass;
public int dwHotKey;
public IntPtr hIcon;
public IntPtr hProcess;
}
SHELLEXECUTEINFO info = new SHELLEXECUTEINFO();
//info.lpVerb = "open";
//info.lpFile = "\\windows\\cprog.exe";
info.lpParameters = "cprog.exe -url tel:121";
//info.nShow = "SW_SHOWNORMAL";
// Set up the call with the specified number.
PHONEMAKECALLINFO pmci;
memset(&pmci, 0, sizeof(pmci));
pmci.cbSize = sizeof(pmci);
pmci.dwFlags = PMCF_DEFAULT;
pmci.pszDestAddress = L"112";
// Make the phone call.
(void)PhoneMakeCall(&pmci);