CreateFile on network path

This is what I am doing.

1. Open file using CreateFile API call, with parameter so that no other process can access this file and with delete parameter so that when file is closed then it is deleted automatically.

2. Then I read file data.

3. Then I close file handle.

Everything works fine if I use this application for local system, but if I use it for network then both system crashed down.

Please help me why both systems crashed down.
lkjhgfdsaAsked:
Who is Participating?
 
SpideyModCommented:
PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
jhanceCommented:
lkjhgfdsa,

I'd really like to help here but you have demonstrated the very inconsiderate habit of leaving your questions unresolved.  None of the experts here appreciate having their efforts ignored like this.

I hope you'll spend some time right now and resolve these questions.  Some are quite old.

Experts, please refrain from commenting here until  lkjhgfdsa resolve these questions:

http://www.experts-exchange.com/mfc/Q_20275927.html
http://www.experts-exchange.com/mfc/Q_20275894.html
http://www.experts-exchange.com/mfc/Q_20253728.html
http://www.experts-exchange.com/mfc/Q_20252202.html
http://www.experts-exchange.com/mfc/Q_20219795.html
http://www.experts-exchange.com/mfc/Q_20167772.html
http://www.experts-exchange.com/mfc/Q_20098170.html
http://www.experts-exchange.com/flash/Q_20275873.html
0
 
lkjhgfdsaAuthor Commented:
Many of these questions are still unresolved. I have accepted some of these question's answers. You can check these :-).

Now please help me for this problem.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
jhanceCommented:
In most cases questions remain unresolved because experts have asked you to provide more information but you did not do so.  Please provide any additional information needed.

In other cases the user just doesn't like the answer.  Tough!  Not all problems have simple solutions.

Finally, in a very few cases, there just is nobody who knows anything.  In this case you should post a 0 pt. question in the Community Support and ask a moderator to delete the question for you.
0
 
lkjhgfdsaAuthor Commented:
But what about my this question???
0
 
himmyaCommented:
hi,
   do one thing first create the connection between the remote machine and then try .. i think this will help u ... just see the documentation of following API's

WNetAddConnection2(...)
WNetCancelConnection2(...)

etc...

rgds,
himmya.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.