From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by sourceware.org (Postfix) with ESMTPS id 2CA583858299 for ; Thu, 22 Feb 2024 17:39:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CA583858299 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2CA583858299 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.166.47 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 Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7bb5fda069bso422416039f.0 for ; Thu, 22 Feb 2024 09:39:25 -0800 (PST) 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 From: Roland Mainz Date: Thu, 22 Feb 2024 18:38:57 +0100 Message-ID: Subject: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 List-Id: 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.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)