Account expiration 
Author Message
 Account expiration

HI!

How i set account expiration time ..SUI.SUI_accexpires ??

Any conversion done when i give that?!?!
Like->
Public Function NetTimeToVbTime(NetDate As Long) As Double
    Const BaseDate# = 25569   'DateSerial(1970, 1, 1)
    Const SecsPerDay# = 86400
    Dim Tmp As Double

    Tmp = BaseDate + (CDbl(NetDate) / SecsPerDay)
    If Tmp <> BaseDate Then
        NetTimeToVbTime = Tmp
    End If

End Function

Anyone having example?

Type SetUserInfo
       SUI_accexpires As Long
       SUI_name As String
       SUI_password As String
       SUI_home_dir As String
       SUI_home_dir_drive As String
       SUI_comment As String
       SUI_script_path As String
       SUI_full_name As String
       SUI_profile As String
       SUI_flagsset As Long
       SUI_flagsreset As Long
End Type



Sun, 20 Jul 2003 16:33:29 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Account Expiration

2. How to programmatically set the expiration date on NT Account

3. automatic create user account, computer account in 2000 server

4. Need advice on controling application expiration

5. Get Password Expiration

6. Get NT Expiration

7. VS.NET BETA 2 Expiration

8. Cookies - how to determine expiration DATE??

9. Password Expiration

10. Expiration

11. Expiration date

12. demo software expiration

 

 
Powered by phpBB® Forum Software