0
我嘗試使用Windows Mobile devive中的Active Director驗證用戶名和密碼。在XP我使用這個:Windows mobile C#根據Active Directory驗證用戶名和密碼?
using System.Security;
using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
...
DirectoryEntry entry = new DirectoryEntry(srvr, usr, pwd);
object nativeObject = entry.NativeObject;
...
但這些不是在Windows Mobile中可用。
有沒有辦法在Windows Mobile中做到這一點?
謝謝
它出現的OP已經發布了一些很接近的代碼,但他有一個** ** CallingConvention的'Cdecl',並且在Windows Mobile的一切,我可以看到可用的是'Winapi'。我將如何解決這個問題? – jp2code
使用Winapi時有沒有錯誤? – Alxwest
不,我沒有。謝謝(忘了給你+1之前,但它現在在那裏)。但是,我似乎無法按照OP的回答(參見我在那裏的評論)中提出的調用約定工作。 – jp2code