Solved

CreateFile on network path

Posted on 2002-07-04
7
594 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:lkjhgfdsa
7 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 7129951
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
 

Author Comment

by:lkjhgfdsa
ID: 7130184
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
 
LVL 32

Expert Comment

by:jhance
ID: 7130267
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:lkjhgfdsa
ID: 7130351
But what about my this question???
0
 
LVL 1

Expert Comment

by:himmya
ID: 7174559
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
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8492258
PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 41
bigDiff challenge 17 84
wait notify demo infinite loop 3 96
EvenOdd challenge 10 89
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now