I want to set form access permission base on domain credential. Then I found the below link (Can download a code sample at the lowest part of the webpage)
http://www.accesssecurityblog.com/p...-Access-databases-using-Active-Directory.aspx
It not work in my domain joined computer. The problem was happen inside module "modAPI", inside function "fUserNTDomain".
The value of "wkui1_logon_domain" is 0 and the result is no domain name return.
I think the code should be correct. There may be some other factor which cause this error, such as
1. The Windows is 64bit
2. The MS Office Access is 64bit
3. Windows Firewall block the attempt to retrieve the domain name
But who knows ? WKSTA_USER_INFO_1 is closed source and only Microsoft know how it works.
http://www.accesssecurityblog.com/p...-Access-databases-using-Active-Directory.aspx
It not work in my domain joined computer. The problem was happen inside module "modAPI", inside function "fUserNTDomain".
The value of "wkui1_logon_domain" is 0 and the result is no domain name return.
I think the code should be correct. There may be some other factor which cause this error, such as
1. The Windows is 64bit
2. The MS Office Access is 64bit
3. Windows Firewall block the attempt to retrieve the domain name
But who knows ? WKSTA_USER_INFO_1 is closed source and only Microsoft know how it works.