|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Determine disabled statusvb.net 2003
i read the msdn documentation on Const ADS_UF_ACCOUNTDISABLE = &H2 how do i use the above to determine whether my account is disabled ? The following does not work. select case userAccountControl case ADS_UF_ACCOUNTDISABLE console.write ("account is disable") etc etc et end James wrote:
> vb.net 2003 The docs indicate that this value is one member of a *flags* type enum,> > i read the msdn documentation on Const ADS_UF_ACCOUNTDISABLE = &H2 > > how do i use the above to determine whether my account is disabled ? The > following does not work. > > select case userAccountControl > case ADS_UF_ACCOUNTDISABLE > console.write ("account is disable") > etc etc et > end so each value is a bitflag. Try If (userAccountControl And ADS_UF_ACCOUNTDISABLE) = ADS_UF_ACCOUNTDISABLE Then 'account is disabled End If (for example, 2, 42, 166, 1048578 are all possible values of userAccountControl that have this flag set, so testing for equality won't always work) -- Larry Lard Replies to group please "James" <jkk***@hotmail.com> schrieb You found it in the MSDN documentation. If you use it's search function (for > vb.net 2003 > > i read the msdn documentation on Const ADS_UF_ACCOUNTDISABLE = &H2 > > how do i use the above to determine whether my account is disabled ? > The following does not work. > > select case userAccountControl > case ADS_UF_ACCOUNTDISABLE > console.write ("account is disable") > etc etc et > end ADS_UF_ACCOUNTDISABLE), I get 7 search results. There's also an example in VB(6). That's what I would read first. Armin
array - how do you get the number of dimensions?
Barcode Reader Application -- HELP Edanmo Shell Extension: How to Install it? Unmanaged DLL Callback - Program Unexpectedly Quits tab function in a multiline text box Carriage Return and Line Feed Syntax need help reading contents of a file into an array...SKYPE ME. Com+ and asp.net? Moving Rectangle within a PictureBox Control Interface creation in VB.Net 2005 |
|||||||||||||||||||||||