locked
how to block an incoming call? RRS feed

  • Question


  • Steps tried: 
    ***************************************************************************
    [DllImport("coredll.dll")]

    public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

    [DllImport("coredll.dll")]

    public static extern IntPtr SendMessage(IntPtr hndl,uint Msg, IntPtr wParam, IntPtr lParam);

    public const uint WM_HIDE=0;

    public const uint WM_SHOW = 5;

    public const uint WM_CLOSE = 0x0010;

     

    IntPtr hndl =new IntPtr();

    hndl = FindWindow("Dialog", "Phone - Incoming");

    IntPtr check = SendMessage(hndl, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);

    This code block the incoming call notification by hiding the incoming call notification window
    *******************************************************************************
    Resources:
    http://social.msdn.microsoft.com/forums/en-US/windowsmobiledev/thread/5c9d91e5-ffe3-4350-90e9-d3271267ac2c/

    Details about hardware and Software:
    Windows mobile 6.1 professional
    Htc Diamond touch


    how to block an incoming call in any other way?
    Thanks, Bharathi
    Thursday, March 5, 2009 5:35 AM

Answers

All replies