🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8442

Re: Writing to Clipboard from a service

#8442
From: Remy Lebeau (TeamB)
Date: Sat, 23 Oct 2004 19:43
14 lines
1541 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:4179a85e$1@newsgroups.borland.com...

> I want to write to the Clipboard of the currently
> logged on user from within a Windows service.

Your service is not running in the same workstation as the user.  You need
to attach to the user's workstation before you can manipulate it.  Look at
the OpenWindowStation(), OpenDesktop(), SetProcessWindowStation() and
SetThreadDesktop() functions.


Gambit
Technical Details
Message-ID: <417ab43b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4179a85e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f2ddb07f5aa054ba
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4179a85e$1@newsgroups.borland.com>
Subject: Re: Writing to Clipboard from a service
Date: Sat, 23 Oct 2004 12:43:34 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <417ab43b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098560571 68.69.17.41 (23 Oct 2004 12:42:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail