Posts Tagged ‘Programmers’

Vb Programmers – How To Lock Cd Rom Drive?

Saturday, October 24th, 2009

Hi people, Im currently programming in VB6 (not .net unfortunately)
Im making a security programme which basically dissables a lot of windows stuff that makes it vunreble in public use.
IE: Access to hard drives, control panel, so on so forth
Im looking for 2 things as I have done the majority of it my self now.
a) How to lock the CD rom drive doors from opening (and if possible an answer for detecting multiple CD rom drives and locking them)
b) Disable Delete File, Move File, Rename File
If you know a registry value which does this please let me know so that I can start scripting it right away. If there is no registry value con you supply the code with explanations on how it works so that I can learn how to use it or a link to a website as all I get is “Download” software already made for users who want to disable the drive.
(You can post a link to an OCX but id much preffer to learn how its done my self than to leach of some one elses code)

Visual C++ Programmers, I Really, Really Need Your Help… Please…?

Sunday, September 27th, 2009

In my current program development, I am currently assigned to fix a bug where when user closes an application (Window), it will display a messagebox with 3 buttons namely debug, Send Error Report and Don’t Send. In my previous solutions, I used TerminateProcess, TerminateThread and Navigate2(“about:blank”). TerminateProcess works well but the activeX control inside the application is not closed properly, though I have terminated the application (e.g. application is no longer available in task manager) but in my test page, OCX is still running… :(
What makes the problem worst is that the application does not have an OCX embedded (Microsoft Internet Browser), therefore I cannot create an object to it. But what contains my application are running OCX embedded from a dll and javascript programs that are separated from the application I am working… So in other words, I open the application using browser, it will terminate OCX and application properly but if application, OCX is not …