delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/22/12:42:33

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E9E13858434
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1708623752;
bh=ToKhJMKfqVqRgWruxn9zxt0yDcaFcUmEaYplRuh9bC0=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=PCTQMmR9PzkB6g//Wdnyz98VYeE43D9LRCQZGtaYwguCLKjpksNMHggkAJy4oHZkA
nd1H75fIP0A36QdAX7pnJPUF8xQk7YwrccCIXiKEldYmQOFX03S2bPq1fKeSVphpzk
u/OomXO6bwDfz6kCJ17NClWHoRhECXoTR+0gkW24=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CA583858299
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2CA583858299
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708623566; cv=none;
b=kUY4zIlVhtt/T10zl4pGdFRxuIVqLGr5vV38NYS4AR2oYbkwxNq9ofg6eNVLj1cpKMNCVxidvPJaoO1tV881SCEL17kpyIizn1IxuS33TvKlvbEldGw9wp1mmwqADxE84nuSKbfOtWS75F6V6x1pDjxhjNuBSa5QWjPUnDMmJLY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1708623566; c=relaxed/simple;
bh=3XuxEXt7OE8x5dCizSPWL+uqNAdbGeuJIh5CnlTXDzI=;
h=MIME-Version:From:Date:Message-ID:Subject:To;
b=tUjHW8crm9JAf5rCRRHbr1LVeu5dk3xJWAuRZv6YuNsOkWeIWNUIcJKROnZ8pp9/esNZsnc0Gcxy4EQp30TELjDoXhcrqgBMFtOR0iQ6qenW7ZMCYR8t4maPw01RtkZcRfRFYHQLBObcXqyvlxEFaHZpHp8stI3z5+r0H4JdLcI=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1708623564; x=1709228364;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=fsLOTIdZK18FfGgqRUhRB4ACetl/587q+5kOu2Wb1hI=;
b=bqR8Ho6qvn/LKc9dHgDCYyiXC+rNbrfXhUSy3ouNHxUvHGuuG4NPrTI4lA+14Mdk2O
tIAV5s+DHVNXa5mOxtufTQOuLCPPuHR4+R87aag/iIlWOgWpi3Mf+5IK16o4qct+7ZOg
LPBFG3t2q/Z0yG8ce0wrLcaOWUguoTmotbKpiVRXeriOOp1ZC7VkhkEq1KwzhWNDaBij
eLcrXD6uaKx3YMGAUIE/dTFu2rJHGoeMZoxWo20a3whFNfT5eLZxL+ttwINhqR7K0609
xjPy7T4rz0aCdQvAyqFJpUdLUmn5BHf8fut/x9kSgHVM2DQKUJa5nZPMPB3DzqgSfg/a
yXsg==
X-Gm-Message-State: AOJu0YwH6bW+mLLU22FHVF2a1+zvIyQT1AdefAP+GunGXHVXg+sPDOUz
LCGvVSSrXHS1vgDGFvZMpZbSaB0whGtvo25IddfgHiSQupvppVqr1gyT+/P6dlljuNDv0fmBNTe
5aysfPpV5Ejx+608xPkXwbGXwPq7rhA7IjgI=
X-Google-Smtp-Source: AGHT+IHiz3JJu0pDvZoHH9d62huIZ7vf5RhPopN65JkOsCMXgbLsKIbKllhM74+BXuNH/ewlrLg8RDfkYVkKUN96WW4=
X-Received: by 2002:a05:6e02:12c5:b0:365:b41:213 with SMTP id
i5-20020a056e0212c500b003650b410213mr24561788ilm.17.1708623563570; Thu, 22
Feb 2024 09:39:23 -0800 (PST)
MIME-Version: 1.0
Date: Thu, 22 Feb 2024 18:38:57 +0100
Message-ID: <CAKAoaQnFxij4Np-jg+bOLEpiSziCfamFrJ2FR_JeO+Sv_Td2Kg@mail.gmail.com>
Subject: Switching groups with newgrp - how to get the new group with
|GetTokenInformation()| ?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,
FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,
KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Roland Mainz via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Roland Mainz <roland DOT mainz AT nrubsig DOT org>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi!

----

If I switch the current user's group with /usr/bin/newgrp, how can a
(native) Win32 process use
|GetTokenInformation(GetCurrentThreadToken(), ...)| to find out which
group is the new "current group" (e.g. which |TokenInformationClass|
should I use) ?

----

Bye,
Roland Mainz
-- 
  __ .  . __
 (o.\ \/ /.o) roland DOT mainz AT nrubsig DOT org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

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

- Raw text -


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