|
hosts first, dns second
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
The full search order is cache, WINS, Broadcast, Lmhosts, Hosts, and then DNS.
|
|
|
|
|
Hi to All,
Could any one help me? How to find event when it's writing data to cd/dvd ROM using vc++? and How to Prevent writing data to cd/dvd ROM.
Advace Thanks,
Regards,
Ramana.
|
|
|
|
|
WTF? Use a sandpaper disk on the drive, problem solved. As soon as the lense is scratched into oblivion, noone will be able to use the disk anymore.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Are you training to become a sony rootkit developer?
Because the stuff your suggesting is just as evil.
|
|
|
|
|
is there anyway to read the boot order from cmos programmaticaly. pls help me
|
|
|
|
|
Well I am an experienced Assembly language programmer so to do this you must first know that access to the CMOS memory is done via access to port 0x70 for writing and 0x71 for reading, and thus recognizing the CMOS options like clock, boot order, and other options, and this can be made using one of the API's in Visual Studio (hint: search MSDN), well though I prefer doing these low level stuff using an Assembly/C DLL linked to your program if you prefer!
To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!
|
|
|
|
|
I have mistakenly deleted the my service exe from the specified path and it can't be obtained again but my control panel is still showing the service icon in my control panel > services. When i try to install the same service again from the installer,it says service already installed. Now how do i remove such a service from my control panel without my service exe?
@!$(-)@ $@r£r@Z
|
|
|
|
|
Delete the corresponding key from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and reboot.
|
|
|
|
|
thanks a lot for your feedback
@!$(-)@ $@r£r@Z
|
|
|
|
|
hi to all!!!!
windows-xp home edition is installed in my system.
i wanna know how to build 2 primary partitions
|
|
|
|
|
Fortunately for you, there can be only one primary (hence the name!) partition on a drive. If your Windows XP installation is in a partition that is taking up the entire drive, you'll have to use a third party partitioning tool to resize the existing partition so you don't loose everything, and you can then create a second partition on the drive.
|
|
|
|
|
I believe you have a little mix-up in your terminology
There can be up to four "primary partitions" on a disk, where "primary" simply indicated the "most basic partitioning system". Extended partitions are primary partitions, too.
There can only be one ACTIVE primary partition, though.
See here for more information.[^]
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Well your right for your explanation but let me add that the primary partition is the one that we can wright on their bootsector(located at the first sector from the first track(512KB) of your PRIMARY partition only which is also called BOOT partiton ) that is, operating systems may be installed on one till 4 primary partitons that gives you a chance for multi-boot(Windows, Linux, BSD Unix ..etc.) on same machine, and extended partitons cannot be boot partitions and thus they may hold logical drives for saving data only!
I really do not agree with you that
Sebastian Schneider wrote: "primary" simply indicated the "most basic partitioning system". Extended partitions are primary partitions, too.
Correct me if I am wrong!!
To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!
|
|
|
|
|
Hi,
IIRC Windows knows of only one primary partition on a disk; all other partitions are
either invisible, ignored, or treated as "logical" partitions.
But some tools (I use PowerQuest PartitionMagic) are indicating there can be more
than one primary partition. My disk in a Dell laptop has 4 primary partitions,
1 being Dell-specific (I think it is either a recovery thing or the hibernate feature),
1 is the normal C: partition
1 is an "extended partition" that, at the Windows level, holds all the extra drive letters
(such as E:, F:, G:, ...)
1 is holding some spare room.
And IIRC I once had a desktop PC with Norton Commander, supporting multiple "primary
partitions" and a boot selection (again, once booted, the running Windows OS would
only see one of those, i.e. its own C .
Hope this helps
|
|
|
|
|
You can use disk management from (Run:compmgmt.msc) you may use Partition magic or a sort like this...
To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!
|
|
|
|
|
Hi,
Is there a simple API to detect Windows XP restart within a process?
I wanted to do special initialization within the process startup only right after system restart.
Thank you & Regards, Renuka
-- modified at 16:42 Monday 16th July, 2007
|
|
|
|
|
try SystemEvents.SessionEnding event
|
|
|
|
|
Thank you for the replies. Unfortunately my application is a console application. From MSDN help on the above event it seemed "Console applications do not raise the SessionEnding event".
Best Regards, Renuka
|
|
|
|
|
Hi,
the simple solution is to turn your app into a Windows application then.
the main form could be hidden, or if some input/output is necessary a console could
be simulated on the form.
the same MSDN page however also hints at another approach: shutdown/restart will
result in a WM_QUERYENDSESSION message; so if you manage to set up a message pump
you can still catch these.
I have not done this, nor do I know any details. If I really needed this, I would
try with a separate thread, probably using Application.Run, and a hidden form, and
possibly an overridden WndProc.
I trust going for the Windows app is the easier way !
|
|
|
|
|
Hi,
Thank you for the reply. But by design I chose the process to be a console exe.
Thanks again & Best Regards, Renuka
|
|
|
|
|
Probably your best bet is to define a special command-line option and put this in your Startup shortcut or Run registry key. Otherwise some way of measuring the system uptime is probably necessary.
GetTickCount is supposed to return the number of milliseconds since the system started, but I believe there are options somewhere to force the initial count to be a large number, so that counter rollover happens fairly soon after system startup, so this may not be reliable. If using the .NET Framework, the equivalent is System.Environment.TickCount .
GetSystemTimes tells you how much clock time has been spent idle, running kernel-mode code and running user-mode code. The sum of these three should be the amount of time the system has been running for.
|
|
|
|
|
Thank you for the kind response. I kept my application under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key.
But still I'm under the impression that process should compare its startup time with the system up time to know whether the present startup is the first startup right after windows reboot.
Does this make sense?
I felt that it was necessary because the console application can be killed once started via CTRL+C, CTRL+BREAK, TaskManager-> EndTask. Under such scenarios in the next iterations of process startup it is not necessary for the process to do the special initialization done during the very frist startup right after machine reboot.
Thanks again & Best Regards, Renuka
|
|
|
|
|
chervu wrote: But still I'm under the impression that process should compare its startup time with the system up time to know whether the present startup is the first startup right after windows reboot.
This will not tell you if its first start or not. Depending on how fast or slow the system does initialization of things before it gets to the Run key, this time can be very variable.
Better to log within your initialization when the proram was started. When your process starts compare the entry to the latest eventlog entry 6009, which tells you the time of the last restart of the system. If the eventlog entry is newer than what you logged last time, it means its the first start. Otherwise its not the first.
- NathCorp
|
|
|
|
|
Okay, I'm going insane. I have a Win XP Pro development machine that will not find any files when I search for them. FWIW, indexing is off on the hard drive. I don't care about performance, as I only search short trees of files.
So, I go to the top of a tree, hit search, enter in a filename that I know is in the subdirectories, press search. no results.
This has to be something really stupid. msdn searches yielded nothing... ideas?
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
Overheard in a cubicle: "A project is just a bug under development."
Seeking to rise above the intelligence of a one eared rabbit...
Caught in a vortex of weirdness...
|
|
|
|