X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 4 Jun 2009 10:17:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Tool equivelent for rundll32.exe "user32.dll,LockWorkStation" Message-ID: <20090604081740.GA29270@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 3 16:39, Jason Pyeron wrote: > Is there a tool like shutdown, etc to lock the workstation or should I stick > with rundll32.exe "user32.dll,LockWorkStation"? Stick with it. A Cygwin tool could do nothing above that. If you really want a Cygwin tool, just write your own: #include #define WINVER 0x0500 #include int main () { if (!LockWorkStation ()) { fprintf (stderr, "%s: Can't lock workstation. Win32 error code %lu\n", GetLastError ()); return 1; } return 0; } Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/