Title: RE: Win32API::Net
After you showed that it is just a bitwise '&' operation, I played around with it because it didn't make sense that the module would force you to make a table with the flag values. Then I realized that is what they mean by the 'symbols'.
Jim Bartlett wrote:
> Woohoo. This works great! I appreciate the help (sorry for the newbie
> questions).
You can also table drive it (not sure of the complete set) :
my %UF = (
SCRIPT =>0x0001,
ACCOUNTDISABLE =>0x0002,
HOMEDIR_REQUIRED
Title: RE: Win32API::Net
Woohoo. This works great! I appreciate the help (sorry for the newbie questions).
Jim
-Original Message-
From: Bullock, Howard A. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 17, 2006 3:37 PM
To: Jim Bartlett; perl-win32-users
>>How do I use UF_ACCOUNTDISABLE() to extract just the "account
disabled" flag? Thanks.
[Bullock, Howard A.]
my $UF_ACCOUNTDISABLE = $flags &2
my $UF_HOMEDIR_REQUIRED= $flags &8
my $UF_LOCKOUT = $flags &
Title: RE: Win32API::Net
So the flags come back like this (when using printf command):
Flags = 0203
Flags = 0201
Flags = 0203
Flags = 0201
Flags = 0201
How do I use UF_ACCOUNTDISABLE() to extract just the "account disabled" flag? Thanks.
Jim
-Origin
Jim Bartlett wrote:
> I am trying to use Win32API::NET to retrieve all disabled user accts on
> an NT domain. I can retrieve the 'flags' key from the hash after
> executing an enum but I am not sure how to use the UF_ACCOUNTDISABLE()
> function to determine acct status. The manpage indicates it is