| delorie.com/archives/browse.cgi | search |
| 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 <corinna-cygwin AT cygwin DOT com> |
| 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: | <D4A693571CB864469DD87AC7CB41468506FA8A AT exchange DOT 1 DOT internal DOT pdinc DOT us> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <D4A693571CB864469DD87AC7CB41468506FA8A@exchange.1.internal.pdinc.us> |
| User-Agent: | Mutt/1.5.19 (2009-02-20) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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 <stdio.h>
#define WINVER 0x0500
#include <windows.h>
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |