X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 22 Mar 2011 09:27:37 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Volume Shadow Copy in SSHD connection
Message-ID: <20110322082737.GX31220@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <AANLkTikNr7xyfRYpoRKi1_MWv=rOVJsW+k08v9V6TZZL@mail.gmail.com> <20110321191904.GV31220@calimero.vinschen.de> <AANLkTiniWr4YEz8pDRwLoewkv0zN5AxJs1MFsThkAXL3@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AANLkTiniWr4YEz8pDRwLoewkv0zN5AxJs1MFsThkAXL3@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

