locked
Q. How to get the correct handle of the "FindWindow" in webservice using IIS7.0? RRS feed

  • Question

  • the function "Findwindow" works well for communication between the WinFrom and the previous IIS after checking "Allow service to interact with desktop" on the LogOn in the services of controlpanel.

    but, I can't get the handle of the "FindWindow" in webmothod using IIS7.0, even though I  checked it.

    Q. How to get the correct handle of the "FindWindow" in webservice using IIS7.0?

    or the way to sovle this trouble???

            [WebMethod]
            //**************************************************************
            public void MSGSend2(int value, string str_FormName, int WM_USERMSG, int n_큐포인터주소)
            //**************************************************************
            {
                Message Handle1 = new Message();
                
                Handle1.HWnd = (IntPtr)FindWindow(null, str_FormName);
    
                Handle1.WParam = (IntPtr)n_큐포인터주소;
                Handle1.LParam = (IntPtr)0;
    
    
                PostMessage(Handle1.HWnd, WM_USERMSG, Handle1.WParam, Handle1.LParam);
    
            }


    Thursday, November 22, 2012 12:08 AM

All replies

  • This is among the craziest things I've ever heard of.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects

    Thursday, November 22, 2012 12:52 AM
    Moderator