|
I need to do an install of a VFW codec and because of the particular circumstances I need it to happen via a RunOnce registry entry.
The problem is that command line I put in the registry entry doesn't work but the same command line works fine from a shell.
"rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf"
I get a message that it
"Cannot find the file "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf" (or one of its components).
What am I screwing up?
|
|
|
|
|
Remove the quotes in the registry entry. The message is saying that Windows is treating the entire command line as one filename.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Hmmm. That's curious. I was sure that I read somewhere in the MSDN pages that the entry had to have quotes around it.
Oh well. I'll give that a go. Thanks.
|
|
|
|
|
Actually, I think I read the same thing. But just looking at the message it's giving you gives me the impression that it's interpreting the whole string as a filename. It's worth a try without the quotes; if that doesn't work, I'd even venture a try with just the filename in quotes and the parameters listed after without them. It probably won't work any worse than it does now.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Hello im on Win2k, and i would like to get/change users password through Visual C++. I tried NetUserChangePassword( domain, user, oldpwd, newpwd ) but it returns me a 'Cannot access domain info', so i tried NetUserChangePassword( NULL, NULL, oldpwd, newpwd ) which returns me 'Invalid password' everytime. sigh
|
|
|
|
|
Try using RunAs to execute it with Admin priveleges.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
dont repeat the messages!
I was born intelligent Education ruined me!.
|
|
|
|
|
I have a client who is installing an NT Service on a W2K server in a Novell network. The can install but are unable to start the service. I don't have any Novell experience...yet!
My gut reaction is that Novell may require the user the service runs under to have some special permissions. Any ideas or guidence on where to look to solve this?
Thanks,
ed
Regulation is the substitution of error for chance.
|
|
|
|
|
Bull it has recovered. Recently I started to get this error message…
Windows has detected and recovered from a device failure. Please save your work and reboot to restore full functionality. OK?
No, it's not ok darn it. If you were so darn smart to detect and RECOVER from the error can you kindly please tell me WHAT CAUSED it?
This error leaves my system running but in a video mode that I would not wish on my mothers computer (320X200 @ 16 colors).
Anyone have any ideas?
Motherboard: Gigabyte GA-6VTXD
CPU: Dual PIII 1Ghz
RAM: 2Gig
Chipset: VIA Apollo Pro 133T
Sound: On board AC'97
Video: All-In-Wonder Radeon 7500
OS: Windows XP SP1
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Sorry, I can't help you out, but:
Ray Cassick wrote:
Windows has detected and recovered from a device failure. Please save your work and reboot to restore full functionality.
If the stupid thing has recovered, why should you reboot? I remember getting a similar one:
"Windows has recovered from an undetected error."
Smart. Real smart. How did it know there's an error if the error is undetected? Plus, how could it recover?
Regards,
Vikram.
-----------------------------
My site due for a massive update
Radioactive cats have 18 half-lives.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
It sounds like Windows detected a corrupted video driver and replaced it. Rebooting is supposed to unload the damaged code and replace it with the fresh copy. It rarely works. Try re-installing the video card software from the original CD or, better yet, download the latest version from the manufacturer's website.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Yeah, I was going to do that anyway. Actually it is time for my yearly reinstall of the system. I was just hoping that there would be some cool hidden log file somewhere that would tell me WAHT was broken.
It is so strange... All the software that I build is fully instrumented so that I can get logs from people and know exactly how the app was running at the time of a crash. I really wonder why Windows does not have something similar. Sure there is SQL tracing and Tapi tracing, but nothing in the OS itself.
Hmmmmm. Maybe if I loaded the debug symbols and attached via a remote debugger.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Hi All,
I'm confused. Can someone please let me know the difference (if any) between PeopleSoft CRM CIC and Vantive CRM 8.6?
I'm doing some research for my company, so any help would be greatly appreciated.
Thanks for your time and help,
Nick
|
|
|
|
|
Any ideas on how to retrieve the hostname of a Windows server or workstation on the local workgroup or domain FROM the ip address only? What is the SDK/API function for this?
I want to use InitiateSystemShutdown() and other SDK functions which take the hostname in the format "\\name", but I only have the IP address to start with.
BOOL InitiateSystemShutdown(
LPTSTR lpMachineName, // computer name
LPTSTR lpMessage, // message to display
DWORD dwTimeout, // length of time to display
BOOL bForceAppsClosed, // force closed option
BOOL bRebootAfterShutdown // reboot option
);
The IP address is static and is on the LAN, so firewalls/proxies/NAT/etc. are not an issue. My local computer will not have any hostnames configured in its hosts/LMHOSTS, and will (probably) have to browse or query the remote computer.
thanks in advance! (sorry if my terminology is not completely Microsoft-esque)
Andrew
|
|
|
|
|
Use inet_addr and gethostbyaddr.
Example:
int main(int argc, char* argv[])
{
WSADATA d;
WSAStartup(MAKEWORD(2,2), &d);
char szIP[] = "1.2.3.4";
long ip = inet_addr(szIP);
HOSTENT *pHostent = gethostbyaddr((char*)&ip,4,AF_INET);
if (pHostent)
{
printf("%s is %s", szIP, pHostent->h_name);
}
return 0;
}
|
|
|
|
|
I need to create 20 users on 2 pc which run win 98. Also I want all the users to share same policy and tweakUI settings. Is there any way of automating this kind of user creation?
thanks
(sorry for my bad english)
Cihan Karadag
|
|
|
|
|
Lately, Windows Explorer in XP has started crashing on me, and there seems to be no apparent pattern to the crashes. It might happen when I select a file, or select a folder, this morning it crashed when I clicked on the Start button. It does not seem to be linked to any particular file type either.
After digging around in the event logs, I noticed that for (almost) every crash event that is logged, there are a number of events related to the "Remote Access Connection Manager" service, stating the the service: 1. "has entered the stopped state", 2. "been sent a start control", 3. "has entered a running state"
It appears that the two are related. How? I don't know. It may be that the Explorer crash cause the service to stop/start, or the service is crashing and taking Explorer with it, or they may not be related at all.
I reinstalled SP1 a couple of days ago and all seemed fine, until this morning when it happened again.
I was wondering if anyone has experienced (XP = experience ) this and/or knows of anything else I can try, before I get fed up and reinstall.
Clones are people two.
|
|
|
|
|
I don't have a lot of experience with XP. Most of my work is done on W2K. However, I have found that at least once a year, blow out your entire windows system and start over. You'll be amazed at how fast your system seems when you do this. The down side is that you have to reload all of the patches and your software again.
Of course it goes without saying that you should backup all of your data before you blow your system out. One way to make the process less painful is to reload your entire system. Apply any patches and install any software that you will ALWAYS want on the system. Don't do any work on your system until you have loaded everything you will need for a base system. Once you have your base system installed and configured, make a duplicate copy on a second hard drive with something like Ghost. Remove the ghosted drive and set it aside. Now whenver your system becomes really slow, you simply install the ghosted "master" drive, backup your data to it, and then copy the "master" onto your operating drive using ghost. This boils your system reload down into a couple of hours instead of days or weeks in my case.
|
|
|
|
|
Good advice, I like to do this myself (clean install every so often), but I've only been running this installation for about 4 month now. I've previously run W2K for over a year with no problems whatsover, maybe I should go back...
And each time I do a reinstall I say "this time I'll image the disk and keep a backup", but never do
Clones are people two.
|
|
|
|
|
I usually have 8 - 10 programs running and displayed in the System Tray. Explorer.exe tends to crash and restart regularly - notably every time I try to explore a computer in My Network Places that isn't currently available - and it doesn't restore all of the icons to the Tray when it restarts. My only options are to restart the PC, or to open a second instance of a program that is already running to get the icons and their associated functions back.
How would I go about writing a function for a program to capture an already running instance and restore the icon associated with it to the Tray without having to restart the computer? I'm sure that it can be done, as my AV program always restores itself after a restart of explorer.exe. But Trillian, Sonork, and the Client Manager for my wireless Internet link do not. I'd like to add that option to any programs I write but I havn't a clue how to approach the problem. How would you do it?
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Roger Wright wrote:
to restart the PC
logoff too helps I guess
I was born intelligent Education ruined me!.
|
|
|
|
|
I had to check just now to see if that option exists in Win2K Server - I've never used it.
I'll give it a try next time I lose explorer.exe. Thanks for the suggestion!
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
If it is not a program that you have access to then your only option is to either restart the system or log off and back on. In W2k I can log off and back on and that works. Generally when you log off W2k will shut down any processes that you are running and then they will restart when you log back in.
If you write the program then there is a possible option. To add an icon to the system tray you use the Shell_NotifyIcon with the NIM_ADD parameter. I recall reading somewhere that you could register with the windows system to notify you when the shell was started. This is how programs that run before you log on are able to put an icon into the tray once you do log in. I can't seem to find the reference to it now. I think this is only available with the 5.x or higher version of the shell though.
I'll do some searching on MSDN for it. Maybe this message will ring a bell for someone else that has used it and they can pull it out of their hat quicker. I can't remember where I say it. My quick check of the shell functions didn't find anything. It may be a windows subsystem hook? Anyone?
|
|
|
|
|
Good info - Thanks! I'll do a hunt for the shell functions that relate to this. It would be nice to have anything I write that lives in the tray be self-healing when Windows breaks.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
If you find something on this, will you be so kind as to write an article on it?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|