On Thu, May 30, 2002 at 09:12:24PM -0500, Joshua Daniel Franklin wrote:
> After working on it a while, I think that exporting a
> cygwin_extract_nt_dom_user() would be best.

Chris suggested to export it slightly different.  Include sys/cygwin.h
and call

  cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, pw, domain, user);

instead of

  cygwin_extract_nt_dom_user (pw, domain, user);

Advantage: If passwd is running under an older Cygwin DLL, the
cygwin_internal() call just returns -1 and passwd can handle that
case cleanly while the other way would pop up a box, telling that
the procedure entry point couldn't be found.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

Reply via email to