delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/22/04:28:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 22 Mar 2011 09:27:37 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Volume Shadow Copy in SSHD connection
Message-ID: <20110322082737.GX31220@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTikNr7xyfRYpoRKi1_MWv=rOVJsW+k08v9V6TZZL AT mail DOT gmail DOT com> <20110321191904 DOT GV31220 AT calimero DOT vinschen DOT de> <AANLkTiniWr4YEz8pDRwLoewkv0zN5AxJs1MFsThkAXL3 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTiniWr4YEz8pDRwLoewkv0zN5AxJs1MFsThkAXL3@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Mar 21 17:56, Bruno Galindro da Costa wrote:
> Corinna,
> 
>    I´m need to build a small C++ program to exec the "vssadmin list
> writers" with another user context at the remote host?

Huh?  No, of course not.  As the document describes, all of the methods
are implemented in the Cygwin DLL as part of the seteuid system call.
You just have to choose which one you want to use.

>     but I need to acomplish the
> "Method 1" and this method needs the "NtCreateToken" function that I
> don´t know how to use...

You don't have to.  It's all in the Cygwin DLL.  You should really read
all of the text.  It explains how to use the other methods. 


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019