Subj : Re: Domain Login To : borland.public.cpp.borlandcpp From : Alex Date : Thu Nov 18 2004 05:06 pm Dear all, I have searched in the internet and have written the following codes, however, the WNetAddConnection2 always return the 67 (The network name cannot be found) message to me. Therefore, I want to know how can I solve this problem. Many thanks. NETRESOURCE nr; nr.lpLocalName = ""; nr.dwType = RESOURCETYPE_ANY; nr.lpProvider = ""; nr.lpRemoteName = "\\test HRESULT dwResult = WNetAddConnection2((LPNETRESOURCE)&nr, "password", "username ShowMessage(IntToStr(dwResult)); Alex "Alex" ¼¶¼g©ó¶l¥ó·s»D:419c3ade@newsgroups.borland.com... > Dear all, > > I am a newbie for C++ builder, i am now writing an system that user can > use their Domain user login to login the system; however, I don't know how > can I do because I can't search anything related to this issue. Can anyone > tell me how can I do this? Thank you for all of your help. > > Alex > > .