|
This is a programming question and should better reside in the Visual C++ forum.
Having said that, here is the solution:
#define HARDBREAK __asm int 3
void WINAPI ServiceMain( DWORD dwArgc, LPTSTR* apszArgs )
{
...
HARDBREAK;
...
}
The above HARDBREAK macro inserts a hard-coded breakpoint into your code. (Software interrupt 3 is used for breakpoints on x86). If you run your service (via SCM) and control reaches this possition a "Unhandled exception" message box of windows will appear. Choose cancle to debug your app and - voila you will find yourself in the debugger with the app halted as exactly this position. From there you could single-step, insert watches, etc.
Please post any F-ups to this to the Visual C++ Forum
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
Does anyone know of an app, or how, I can access the temperature sensor in my new HD? It is a Seagate 80GB Barracuda.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
It has a temperature sensor? I have it too.
Pavel
Sonork 100.15206
|
|
|
|
|
Thats what I'm told. I seen it done under linux but haven't seen anything for Windows.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
I saw such an app on http://fileforum.betanews.com/[^] a while back.
But I can't remember what it was called or if it was any good Sorry.
Bruce Duncan, CP#9088, CPUA 0xA1EE, Sonork 100.10030 'ugly naked women are good, when i'm not around, in front of someone else' - Shog9
|
|
|
|
|
This isn't it (the one that I saw prev.) but maybe it'll do what you're looking for
Active SMART Monitor[^]
Active SMART Monitor is a full-featured failure-prediction agent. Sitting in the system tray, it monitors hard disks and alerts you to impending failure. The program uses Self Monitoring and Reporting Technology (S.M.A.R.T.) built into all new hard disks, and can predict failures on your hard drives. A host of alerting features include email, local pop-up messages, net messages, and event logging, while using no system resources.
Changes in Current Version:
* Label formatting fixed
* Additional attribute codes added
* Temperature support added
Bruce Duncan, CP#9088, CPUA 0xA1EE, Sonork 100.10030 'ugly naked women are good, when i'm not around, in front of someone else' - Shog9
|
|
|
|
|
I'm not sure how accurate the temperature is. It is reporting 35 F which seems highly unlikely, but 35 C sounds about right. It could be a typo.
You wouldn't have any ideas on how to access SMART progmatically would you?
Thanks for the link!
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
|
|
|
Ok, I just installed XP SP1 on a co-worker's machine and she is now unable to switch identities in Outlook Express 6.
Has anyone XPerienced this? If so how did you fix it?
Thanks.
P.S. nothing at msdn.microsoft.com about it yet.
-Sean
----
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein.
|
|
|
|
|
Just picked this up in the newsgroups:
There are currently two workarounds:
- Click on files/identities/manage identities and remove the checkmark in "Use this identity when starting a program".
For more information, see Q329084[^] - "You Cannot Switch Identities in Outlook Express After You Install Windows XP SP1"
- Before changing identity, Press F1. The Outlook Express "Help" window will open (and leave it running in the background). Now click on FILE > SWITCH IDENTITY and select your other identity. Outlook Express will ask the question "Do you wish to keep the same connection". Answer "YES". It will go to the identity you select.
|
|
|
|
|
|
Thanks!
-Sean
----
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein.
I saw a woman wearing a sweatshirt with 'Guess' on it. I said, "Thyroid problem?" -- Emo Philips.
Love is two minutes, 52 seconds of squishing noises. -- Johnny Rotten.
|
|
|
|
|
I’ve been trying to get a minimal win32 app started and have been able to do so but one question I still have is: what 10 handles my app still have open or is there a way of finding out what they are?
I ran this app on Win2k Pro
I have changed the entry point for the app to a function I defined that just contains a simple for loop and also removed the msvcrt (just for trying to get a idée of the number of handles in a minimal app).
The last question I have is why the app had 88k of virtual memory or is that the virtual memory that comes with kernel32.dll
|
|
|
|
|
Ho can I configure my Personal Web Server on this beautiful shiny Win XP home box?
If I try to access the local host via Fromtpage, the PWS window with "Web Server idle" pop up - but I can't find anything to tell it where to look for stuff etc.
One day I might find it quite amusing how touching tongues make life so confusing Anne Clark again [sighist]
|
|
|
|
|
Not sure if there is a workaround or setting I need to change but after having installed Windows Service Pack 1 I am no longer able to use the about: feature in Internet Explorer 6.
I have my home page URL set to about:links to projects I am working on which is the fastest home page setting around. It is also very handy as I can click the Home button and be shown a list of links to current projects. You can enter in virtually any HTML, CSS and JavaScript you want.
The odd thing though is when I load IE, it works fine. The about: bits all come up. It only does not work if I try and type it in manually or click the Home button. The error it returns is the "Action canceled" error saying that IE can temporarily not find the page I am looking for.
Anybody got a fix? Anybody know if MS knows this? Am I missing something obvious? ta
|
|
|
|
|
As far as I can see, this was considered a securiry hole, and got "fixed" by SP1. There is a workaround, though. In the registry, under HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs , you can add any key you like, and redirect it to any other URL.
For example, if you add a string value called "Code", with a value of "http://www.codeproject.com", navigating to "about:Code" will take you to the CodeProject home page.
|
|
|
|
|
Richard_D wrote:
As far as I can see, this was considered a securiry hole, and got "fixed" by SP1. There is a workaround, though. In the registry, under HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs, you can add any key you like, and redirect it to any other URL.
Thank you Richard. I can see how they saw it as a security threat in some obscure "hey it tickles more than it hurts" way, but still, wish I could disable that fix
Now lets see how how much damage I can do to my registry....
|
|
|
|
|
Hi,
I am facing a strange problem. A software developed by me is not working in Windows 2000. I am using a celeron 433.
On investigation I found that a C system() call is returning -1. Windows 2000 has two command interpreters command.com and cmd.exe. Which one is being called by the system () call?
And the final touch .. I tried the same program in some other windows 2000 machine. And it works all right!
Thanks.
Mainak
|
|
|
|
|
Some more pointers:
1) My machine (on which it does not work) is windows2000 professional edition. The other one where it worked is a server.
2) My program is compiled with VC6 and it's a console application.
|
|
|
|
|
Hi,
I am a Brazilian developer and I need to create a brazilian
keyboard.
I know that I need to change the VKCHAR table and sckxtmsengus1.cpp,
what methods needs to be change?
Could anybody give me more information?
Thank you in advance.
Katiúcia Freitas da Silva
Phone: + 55 35 3471 9300
e-mail: katy_freitas@hotmail.com
ICQ#: 127458845
|
|
|
|
|
I'm searching for good and complete information about interruptions management (for win2k)...
Thanks...
Hello World!!!
from Raphaël
|
|
|
|
|
What kind of "interruptions" do you want to manage?
Power interruptions?
IRQ interruptions?
BSOD interruptions?
User interruptions?
Or some other type(s) of interruptions?
Aalst
|
|
|
|
|
I have installed a bad driver for the modem in win2k.
In the next start my CPU works at 100% full time and
the OS doesn't work...It works only in "temporary modality".
Unfortunately, in that modality, is not possible (or I'm not
able to...) to manage the Modem through the Control Panel in
order to remove the bad driver.
I also don't remember the name of the bad driver !!!!!
But I need to remove it in order to let my OS work!!!!
How can I solve this problem ???
I need to know where are stored some information about the
current modem driver!!! Maybe the system registry ???
But where ???
I need help !!!!!!!!
|
|
|
|