locked
How to determine whether a window is created by an administrator or a user. RRS feed

  • Question

  • Hi All,

     

    Following is my problem :

    Operating system : Vista , Windows 7.

    1.   My application tries to communicate with other application. However if my application is launched by a user and the other application is launched by the administrator ( actually by selecting run as administrator option) then the inter process communication fails.

    2.  The sendMessage() fails with error code 05 i.e. access denied.

     

    I have the window handle of the application with whom my application communicates.

     

    Using the window handle I want to determine whether that window is launched by an administrator or not. (launched using elevated privileges or not?)

     

    Could you please help.

     

    Thanks,

    Sumit

    Friday, March 5, 2010 6:37 AM

Answers

All replies