hi,
i using following code to check the login, its working with in the domain.
Example:
MY machine is registered under 'A' Domain. Then i can able to test the A Domain Users.
but i can't able to use this to test 'B' Domain Users.
LogonUser("B\\india", "B", "B*#123",LOGON32_LOGON_INTERACTIVE ,LOGON32_PROVIDER_DEFAULT,&phToken)
i tried like that also
LogonUser("india", "B", "B*#123",LOGON32_LOGON_INTERACTIVE ,LOGON32_PROVIDER_DEFAULT,&phToken)
but if i try
LogonUser("test", "A", "A*#123",LOGON32_LOGON_INTERACTIVE ,LOGON32_PROVIDER_DEFAULT,&phToken)
- its working fine.