The WNetEnumCachedPasswords is one of many obsolete APIs from Windows for Workgroups. About a year ago, I went looking for a simple API for Windows passwords, and came across those APIs. (WNetGetCachedPassword, etc.) Then after hours of headache, I searched Microsoft and found this document: http://msdn.microsoft.com/library/dd...twork_0228.htm Check it before you give yourself hell playing with obsolete APIs.