|
If you're trying to use the same event from two (or more) threads in the same app, simply use the same handle. Keep the handle in a global location, or pass it into the ThreadProc.
If you're trying to use the same event from two (or more) different apps (or instances of the same app), you'd typically call CreateEvent in each app's code. If you need to know whether this call actually created it, call GetLastError immediately after CreateEvent succeeds. If this call created the object, it will return 0 (ERROR_SUCCESS). If the object already existed, it will return ERROR_ALREADY_EXISTS.
I've never used OpenEvent.
I suspect the problem you're running into is some form of race condition - either the creator hasn't created it yet, or the other apps have quit and there are no handles open to it, so the kernel deletes it.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi, does anyone have a script that will let me query a AD OU and then list any accounts that are locked?
Thanks
Andrew
|
|
|
|
|
The information from here[^] will list all user account in active directory. The script from scripting center[^] might help you more idea.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
My hard drive start to make a worring noise, so I decided to put in another drive and use Norton Ghost to clone the original hard drive.
The original hard drive was 80GB and the new one 120GB.
But when I first put in the second drive(jumper set to slave) the PC failed to boot. I checked the connections etc but only got it to work when I place the original cable into the Master drive and the spare connector connector in the slave drive.
My question is "Does it matter what connector you use for each drive"?
e.g. Original setup just the single drive (set as Master)
Motherboard----------<connector>----------<master>
This did not work
Motherboard----------<master>----------<slave>
But this did
Motherboard----------<slave>----------<master>
|
|
|
|
|
I would like give you some idea: Remove your 80GB hard drive then connect your 120GB drive and set jumper to master and detect in your CMOS. If it is working it mean that when you connect with 80GB you might set wrong jumper or did not configure properly in CMOS. But if you connect only 120GB and it is not working it might be your mainboard do not support the size of the hard disk drive. As far as I know each mainboard must have it limitation for other component when working together. Try to check your mainboard manual, how high the maximum capacity of hard disk drive that it will support.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I have both drives present on my computer and have cloned my other drive - not tested it yet.
The question was to do with the cable; I though it did not matter which way it was connected.
e.g.
original situation
<motherboard>--------<spare>-------------<old drive="">
now this did not work!
<motherboard>--------<old drive="">-------------<new drive="">
but this did
<motherboard>--------<newdrive>-------------<old drive="">
Are they anythink special with the cable (I thought it did not matter the way you connected the hard drives.
|
|
|
|
|
Ok, If you think it is become the cable, try to change the new cable from the other machine.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
sweep123 wrote:
But when I first put in the second drive(jumper set to slave) the PC failed to boot. I checked the connections etc but only got it to work when I place the original cable into the Master drive and the spare connector connector in the slave drive.
My question is "Does it matter what connector you use for each drive"?
In hard drives I've installed, I've noticed jumper settings for "cable select." If your origonal hard drive was set up for cable select, then your first attempt would have put two slave drives in your computer, but your second attempt would have correctly made your first hard drive a master.
In short, if "cable select" means the obvious, then the cable connectors can matter if one of the drives is configured that way.
Nathan Holt
|
|
|
|
|
How do you uninstall a Windows Service without the service's binary. For instance,
installutil -u MyService.exe
Fine, as long as you have the binary. Now, what if you don't? I'm asking because Oracle Universal installer screwed up half way during the installation process and it left some installed Windows Services on my system which I can't uninstall...
btw, there IS A TOOL that can do this. I've done this some two years ago, but I can't remember what this is and where to get it... damn...
Norman Fung
|
|
|
|
|
|
|
HI
Acctually i am using win2000 server and I have a FTP Folder in which a remote computer places some word files.So I want to copy those files from that ftp folder to some other folder in the same drive.But the "select all" comand is not working and i have to copy/past all files one by one.Please mail me the soluution.Its urgent.
BYE
Prepare yourseld for the life after death.God bless you.
|
|
|
|
|
Click the first file. Hold the Shift key down and click the last file. All files in between should then be selected. Right click on the highlighted area and choose Copy. Right click the destination folder and select Paste.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger, Is it possible to copy the file in FTP folder via the command prompt? I think if it is possible the owner of the question copy it via MSDOS prompt.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Of course it's possible - see COPY /? for instructions. But I'm curious about what the poster reports, that Select All doesn't work. I'm running Win2K Server, have a ftproot folder full of files, and Edit/Select All works perfectly. I'm the Admin on this box, though, and the poster may not have sufficient privileges to select and move files on the machine. A chat with whoever is responsible for the server might clear things up.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
Hi,
Im wondering if anyone can tell me how I can go about running 2 or 3 separate bacth files using some sort of timer feature. For eg. Run batchfile1 -> when batchfile1 finished -> run batchfile2 etc... The batch files are dependant on each other so one cant start unless the other one finishes. Any help would be greatly appreciated.
Thanks
|
|
|
|
|
Batch files can be chained. There used to be a CHAIN command, but it may be defunct now. At the end of each batch file, as the last statement, add the name and extension of the next batch file to be executed in the sequence. If you must run unattended, use the AT command to run the first in the series at the scheduled time.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
call batchfile1.cmd
call batchfile2.cmd
|
|
|
|
|
Just write another batch file that calls the batch files you need in the correct order.
call Batch1.cmd
call Batch2.cmd
call Batch3.cmd
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
can anoyone tell what is the primary drawback to deadlock prevention
aravind
|
|
|
|
|
Don't try to use same resource and same point of time.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Hi, I have two computer in my network lab. One is running windows 2000 pro and the other on is running win2k server. Both computer connect to switch and from switch to ADSL router to share the internet and from router to broadband. The problem is win2k server machine did not display in the Network My Network Places under workgroup. The server computer can see the other computer but the other computer could not see the server computer in the list. I don't know what is the main problem. Could anybody give me any idea or suggestion to solve the problem?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
In Windows XP, Microsoft offered three "skins" ranging from OK to ugly. Not only did they not provide full ability to customize these skins, but they didn't seem to document how to do so programaticly. I know the comany that makes Windows Blinds got access to the API. Does anyone know what it would take for me to get it?
Nathan Holt
|
|
|
|
|
MS's official position is that they are the only ones allowed to make new themes. Some folks have reverse-engineered the theme format, that's how they make their own.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Four fonts walk into a bar. The bartender says "Hey - get out! We don't want your type in here."
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!
|
|
|
|