|
Microsoft recommended practice these days is to use Windows Installer and not to use self-registration. Your install program should be registering your OCX, your own program should not be doing this. If you absolutely insist on doing it in your own program you should load the DLL and call DllRegisterServer directly rather than using regsvr32 .
Since Windows 2000, the HKEY_CLASSES_ROOT key is a merged view of HKEY_CURRENT_USER\Classes and HKEY_LOCAL_MACHINE\Classes , with HKCU overriding HKLM. Ideally the OCX's self-registration code should try to write to HKLM\Classes then, if that fails, to HKCU\Classes (this makes it an admin install if that's possible, falling back to a per-user install).
Windows will not allow you to make a user into an administrator from that user's account. That's a local privilege escalation issue. Likewise you won't be able to change the security on the registry keys - and you shouldn't anyway.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
All good information.
It's a shame that MSI is such a pig to use from the point of view of your average 'use the wizard and join the dots' coder (rather than a developer who actually understands COM and the way it relates to the registry. I haven't looked at the registration code in VS8. Is it any different to the VC6 stuff?
Steve S
Developer for hire
|
|
|
|
|
Hi .
I need to know that DCOM is faster for Data Communication between 2 computer or Socket Programming.
Thanks
|
|
|
|
|
If you want to support the feature set of DCOM, I think you'll be hard pushed to do better in your own code.
DCOM provides authenticated remote procedure calls to objects with builtin transparent marshalling of parameters. So yes, it's slower than raw sockets programming because it has a certain amount of overhead required to support these features. Because it's a network service, it's also an attack vector, so it's been through a degree of security hardening. This makes it inconvenient to use on networks without a domain infrastructure.
If you don't need the convenience of a remote procedure call syntax, authentication, and the overhead involved in it, by all means use socket programming. DCOM is generally more convenient to program, though.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi
There is a problem in my pc. I am using WIndows XP When i try to open command prompt window by typing cmd in run dialog box or using any other way, my Windows restarts. This happens also when i try to run some console based programs. Can anyone please tell me what is the problem?
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Your computer is infect by virus. What you should do is disconnect this computer from the network. Restart your computer and run it in safe mode. Then log on as administrator and try to scan your computer for a virus in safe mode.
What you should note is if you could found the virus, try to note the virus name and search on the internet for the method to clean the virus.
|
|
|
|
|
I'm trying to monitor the acecess to the windows registry so that i can tell when a video file is opened. i know that montoring the registry is possible seeing as the regmon program does it. If anyone knows how to go abou tit that would be great... I'm using J# but if you know how to do it in another language then plz reply i can figure it out for j#
also if anyone knows how to make windows notify a process that the registry has been acessed instead of having to receieve the thousands of other registry acesses i'd appreciate it.
Thanx
|
|
|
|
|
tazo wrote: so that i can tell when a video file is opened
What do you mean by video open? You want to control when the file (any type of file) is open, rename, delete...? If so try to check this article[^].
|
|
|
|
|
no i want to know when someone opens a video file... i need it to trigger the program i'm writing in order to analyze it and extract info... afterwich i'm going to need to get the pid of the media player that's playing it
thanx
|
|
|
|
|
tazo wrote: when someone opens a video file...
In my opinion, my previous respond might offer what you need. If you have enough time please try to read this article[^]. It might give you some idea relate to what you need to do in your application.
|
|
|
|
|
thanx a lot that helps
'preciate the info
|
|
|
|
|
Hi,
I need help in avoiding the window which pops up during the USB detection. I am using Windows XP professional and I actually does not want any window to be popped up during this USB Mass storage device or MP3 Player Detection.
Please help me in this issue.
|
|
|
|
|
|
Hi Kanel,
This could partially solve my problem of avoiding balloon popups at the notification area. But my problem is with the new window popup which shows the content (files and folders) of the Device. Can you please help me in avoiding the new window which pops up.
Thanks in advance.
Sai.
|
|
|
|
|
sai_akkina wrote: But my problem is with the new window popup which shows the content (files and folders) of the Device. Can you please help me in avoiding the new window which pops up.
Insert your flash drive again. Then go to windows explorer and right click on your flash drive and click on Properties from the context menu. When the properties dialog box appear it will display several tab. Try to find the tab AutoPlay . In the tab AutoPlay select option Select an Action to Perform and from the list choose Take No Action . Try to disconnect your device and insert its again, does it display the content of the flash drive or not.
|
|
|
|
|
As well as the suggested AutoPlay fix, you can also register for insertion notifications, and get a message in your app when a memory stick (or other thing looking like a drive) is plugged in or removed; you can then respond with a "don't do anything" reply which will also suppress the explorer window.
Look in MSDN for 'device notification', or there might even be a sample here on CP.
Steve S
Developer for hire
|
|
|
|
|
i found many microsoft OS for server but i not sure which 1 is more suitable. basical my company provide retail solution to some supermarket. Recently we have a domain which is from other company server.
So we thinking to set up our own server , we only have a small amount of stuff here less then around 10 ppl.
Is the i heard there microsoft release a new OS is Small business server 2003, i not sure is that suitable for my situation now.
i prefer a low cost but also strong security.
|
|
|
|
|
campbells wrote: Is the i heard there microsoft release a new OS is Small business server 2003, i not sure is that suitable for my situation now
In my opinion, I also support you use windows server 2003 small business because you have around 10 staff in your office. Please check benifit of windows sbs 2003[^] for more information.
|
|
|
|
|
how bout the Mac OX server? u know anything about it? it seem like using microsoft more easy to let ppl hack in
|
|
|
|
|
campbells wrote: how bout the Mac OX server? u know anything about it?
I never know about Mac OX server because I never use it. If you want to know more, you can check it from here[^].
campbells wrote: it seem like using microsoft more easy to let ppl hack in
Yes, most virus attack Microsoft as you mention above. But in my opinion, the reason that virus attack Microsoft is not based on the security issue. Because windows is popular and most people use it, they is why windows is the point that hacker focus on. I also found that Microsoft has improve its security feature in windows too. If other operating system are populare to use in the client environment like windows, I think they would get attack like windows too.
The most importance thing here is: no matter you choose windows, linux or unix you should have full of knowledge to use and manage those technology in order to avoid from hacker attack. Security server does not mean that you just setup operating system without any configuration or security plan and you will get security from the other hacker.
|
|
|
|
|
HI,
We have a clarification in regards to debugging a device driver in a remote/foreign machine.
We use NULL MODEM CABLE to connect the COM ports of the two machines. We have checked the NULL MODEM CABLE using 'HYPER TERMINAL' application.
We use "WinDbg" to debug the drivers. The procedure we followed:
1. hve modified the 'boot.ini' in the target machine (where driver is installed).
2. In host machine windbg is initiated with windbg -k option.(also the symbol path and source path are set)
3. as the target machine is rebooted , the host machine is not recognising ..also there is not indication that the target machine is ready to communicate with the host.
any suggestion with diagrams/snapshots for the setup will be very helpful.
Thanks and best regards,
Bill Devi
|
|
|
|
|
I want to create a GUI shortcut to launch and executable that is in a nested directory.
Specifically I need this shortcut to NOT need to know it's own directory name, i.e. I cannot supply the full path.
The executable is in:
C:\appdir-YYYYMMDD\debug\app.exe
The shortcut is in directory:
C:\appdir-YYYYMMDD
The YYYYMMDD changes but I would like the shortcut to always run the executable that is nested below it.
If I create a Shortcut and make the "Target"
debug\app.exe
or
.debug\app.exe
or
.\debug\app.exe
Windows complains that the target does not exist.
Is there any way to do this?
Many thanks,
Robert
|
|
|
|
|
No, not without outside help. The shortcut has to have the directory name at least in it's "Start In" box. Without it, there is no telling what the current directory will be when the shortcut is launched, therefore, the shortcut will try to launch the app from a subdirectory of ANY directory that happens to be current at the time.
An alternative would be to launch your application from a VBScript (*.vbs) file instead of a shortcut. Or, have a VBScript figure out what the path should be, then create a new shortcut with the appropriate information and launch that.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave.
I won't bang my head any more.
Robert
|
|
|
|
|
Hello All,
I have been facing this unique problem for a while. The problem is that when ever I run an application which consumes huge amount of memory, the system crashes when I try to open/close Net meeting. Any pointers how to avoid this strange behaviour.
There is no system crash (blue screen) when net meeting is not invoked.
Regards,
Shashank
|
|
|
|