|
-
Aug 31st, 2001, 11:01 AM
#1
LogonUser Returns 0 in NT
Why does logonuser return 0 in Windows NT???
-
Aug 31st, 2001, 11:12 AM
#2
Frenzied Member
is there a user logged on when you call the function?
-
Aug 31st, 2001, 11:20 AM
#3
Fanatic Member
Zero means the call to Logonuser failed. Check the following demo to make sure your calling it correctly.
Demo of LogonUser
-
Aug 31st, 2001, 11:33 AM
#4
I am entering the correct info, and the code i copied from a sample. but I'll try urs and see. thanx
-
Aug 31st, 2001, 11:48 AM
#5
-
Aug 31st, 2001, 11:54 AM
#6
Frenzied Member
So there is no user logged on when you call it?
try this: use getlasterror (an API) and see what it returns, then look it up on MSDN
-
Aug 31st, 2001, 12:13 PM
#7
Fanatic Member
Hmmmm.....NT logs on fine otherwise......your program has correct permissions to run.....Domain specified ?? Try without to check username(see below link)
Only other sample I can find uses the LastDllError mentioned in previous post.
http://www.vbusers.com/code/codeget....1&NumReplies=3
Above link has 2 functions for checking if username/password valid. Says one is more reliable then other.
-
Aug 31st, 2001, 01:21 PM
#8
Originally posted by mlewis
So there is no user logged on when you call it?
try this: use getlasterror (an API) and see what it returns, then look it up on MSDN
hmmm, 0. a very common error
-
Aug 31st, 2001, 01:23 PM
#9
Frenzied Member
-
Aug 31st, 2001, 01:28 PM
#10
Originally posted by Patoooey
Hmmmm.....NT logs on fine otherwise......your program has correct permissions to run.....Domain specified ?? Try without to check username(see below link)
Only other sample I can find uses the LastDllError mentioned in previous post.
http://www.vbusers.com/code/codeget....1&NumReplies=3
Above link has 2 functions for checking if username/password valid. Says one is more reliable then other.
hmm, it seems i do not have rites for logonuser. o well
-
Aug 31st, 2001, 01:31 PM
#11
Hyperactive Member
mlewis - Set us up the bomb!
W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
(Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)
-
Aug 31st, 2001, 01:33 PM
#12
Frenzied Member
I condog...or is that concur?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|