Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 13 Mar 2006 17:12:48 +0800,    group: microsoft.public.platformsdk.com_ole        back       


Drag-and-dorp with the NT service   
I write an application use the function DoDragDrop(A.exe), which can drag a
file from a directory and drop to another
directory.

In Platform SDK\samples\winbase, there is a "Service" example.
I call CreateProcess in this example, now I can see the UI of the A.exe, and
I also can see drag-image,
but when I release the mouse, the dragged file can't be moved.

Need I do some special operation to finish the drag-and-drop?
Who can answer me?

Thanks a lot.
date: Mon, 13 Mar 2006 17:12:48 +0800   author:   jerry new

Re: Drag-and-dorp with the NT service   
I guess you can not drug and drop between an application running under 
system account and an application running under other user account.

It is generally a bad practise to have user interface in system service.

Consider starting your user interface from regular logged on user account.

"jerry new"  wrote in message 
news:%23NNim1nRGHA.4900@TK2MSFTNGP09.phx.gbl...
>I write an application use the function DoDragDrop(A.exe), which can drag a
> file from a directory and drop to another
> directory.
>
> In Platform SDK\samples\winbase, there is a "Service" example.
> I call CreateProcess in this example, now I can see the UI of the A.exe, 
> and
> I also can see drag-image,
> but when I release the mouse, the dragged file can't be moved.
>
> Need I do some special operation to finish the drag-and-drop?
> Who can answer me?
>
> Thanks a lot.
>
>
date: Sun, 2 Apr 2006 16:04:53 +0200   author:   Max please@newsgroup

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us