[Windows NT/2000/XP] Enumerating all domains where user can logon
Posted on 2003-10-30
Some of you may use Windows 2000, and you may know that, in Windows 2000, when logging in, you must to inform login, password and for some cases, also to inform the domain where you will log in. A pretty Combobox is shown, listing all domains where you can log from that machine.
My question is: how to discover all domains where you can log from your local machine, to populate that combobox?
(I discovered the function LSAEnumerateTrustedDomain, but I don't know where can I find the API headers to make it work.)