Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalautomation problem. excel Pin
pnpfriend8-Jul-02 9:55
pnpfriend8-Jul-02 9:55 
QuestionGDI+ Image.Save Function? Pin
Andy Brace8-Jul-02 9:41
Andy Brace8-Jul-02 9:41 
GeneralExe/Dll Dependancies. Pin
Mike Doner8-Jul-02 9:34
Mike Doner8-Jul-02 9:34 
GeneralRe: Exe/Dll Dependancies. Pin
Oliver Daniel8-Jul-02 10:08
Oliver Daniel8-Jul-02 10:08 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner9-Jul-02 9:06
Mike Doner9-Jul-02 9:06 
GeneralRe: Exe/Dll Dependancies. Pin
-Dy10-Jul-02 23:45
-Dy10-Jul-02 23:45 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner12-Jul-02 2:59
Mike Doner12-Jul-02 2:59 
GeneralWNetAddConnection2 fails with error code 1312 Pin
alma8-Jul-02 9:24
alma8-Jul-02 9:24 
Hi!

I have a win2000 service written in visual c++ 6.0 that has to access files from a shared folder from the local network neighborhood.

The shared folders are password protected, so I have to create a connection to that folder. I tried to use WNetAddConnection2.

But WNetAddConnection2 fails and returns the error code no. 1312.

I looked it up in the winapi headers, error 1312 is called ERROR_NO_SUCH_LOGON_SESSION, the explanation given is :

'A specified logon session does not exist. It may already have
been terminated.'.

The list of files/locations is taken from a database, so is dynamically changing over time.

Has anybody any idea how could I access files shared on other computers without logging in to the system?




Thanks, Alma
GeneralRe: WNetAddConnection2 fails with error code 1312 Pin
alma11-Jul-02 1:49
alma11-Jul-02 1:49 
GeneralSTL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:13
professional#realJSOP8-Jul-02 9:13 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:38
professionalChris Losinger8-Jul-02 9:38 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:45
professional#realJSOP8-Jul-02 9:45 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:53
professionalChris Losinger8-Jul-02 9:53 
GeneralRe: STL question - Moving Items around in a list Pin
Tim Smith8-Jul-02 10:14
Tim Smith8-Jul-02 10:14 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 10:16
professionalChris Losinger8-Jul-02 10:16 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP9-Jul-02 2:31
professional#realJSOP9-Jul-02 2:31 
GeneralRe: STL question - Moving Items around in a list Pin
jbarton9-Jul-02 5:23
jbarton9-Jul-02 5:23 
GeneralGeting Explorer Drop Target - Help Pin
zarco18-Jul-02 8:43
zarco18-Jul-02 8:43 
GeneralHooking windows Pin
S van Leent8-Jul-02 7:59
S van Leent8-Jul-02 7:59 
GeneralRe: Hooking windows Pin
Oliver Daniel8-Jul-02 10:11
Oliver Daniel8-Jul-02 10:11 
GeneralRe: Hooking windows Pin
S van Leent9-Jul-02 1:43
S van Leent9-Jul-02 1:43 
GeneralWindows XP Socket BUG Pin
8-Jul-02 7:22
suss8-Jul-02 7:22 
GeneralRe: Windows XP Socket BUG Pin
Tim Smith8-Jul-02 10:12
Tim Smith8-Jul-02 10:12 
GeneralScreensaver problem Pin
jancsi8-Jul-02 7:08
jancsi8-Jul-02 7:08 
GeneralRe: Screensaver problem Pin
Gary Kirkham8-Jul-02 7:15
Gary Kirkham8-Jul-02 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.