Click here to Skip to main content
16,005,038 members
Home / Discussions / COM
   

COM

 
QuestionAbout COM+ Pin
NetQuestions29-Apr-10 19:41
NetQuestions29-Apr-10 19:41 
AnswerRe: About COM+ Pin
Michel Godfroid1-May-10 7:56
Michel Godfroid1-May-10 7:56 
GeneralRe: About COM+ Pin
NetQuestions24-May-10 19:09
NetQuestions24-May-10 19:09 
QuestionProblem with Breakpoint when Debugging a COM interop API with .NET 4.0 Pin
Hallmanac26-Apr-10 15:46
Hallmanac26-Apr-10 15:46 
QuestionGetting started with COM Pin
Ron Aldrich26-Apr-10 10:05
Ron Aldrich26-Apr-10 10:05 
AnswerRe: Getting started with COM Pin
Michel Godfroid26-Apr-10 11:42
Michel Godfroid26-Apr-10 11:42 
GeneralRe: Getting started with COM Pin
Ron Aldrich27-Apr-10 11:21
Ron Aldrich27-Apr-10 11:21 
GeneralRe: Getting started with COM Pin
Michel Godfroid27-Apr-10 12:23
Michel Godfroid27-Apr-10 12:23 
WOW, who sold you this job? were you sober?

Taking it in order.
1) Unmounting the drive will flush the caches. Of course the SCSI standard allows surprise removal so, you never can tell.
2) Issuing SCSI commands. You should be able to issue any SCSI custom command through IOCTL passtrhru interface if the drive is not mounted. How this is affected by security and passwords, I'll be honest: I don't know. You may well require elevated priviliges to do this from user mode.
3) Remounting volumes: should be no problem if you have chosen a drive letter or a reparse point previously. If the drive (well the drives's GUID, really) has not been mounted before, you need elevated privileges to put in the HKLM section of the registry. Also take a look at the automount status (which I think you can see in mountvol, or diskpart. (not too sober myself)).
2B) reestablish write protect. Well I suppose there's a custom SCSI for that one too? Of course if your thingy i s already mounted, you may require elevation. Scratch that, if your drive is already mounted R/W, write protecting it afterwards will cause the file system driver (FAT32, NTFS) to have a nervous breakdown. You won't believe how these things can fill your event log with messages of doom.

Ron Aldrich wrote:
All of this has to work on Windows XP, Windows NT and Windows 7


Which Windows NT? If you're talking about 3.1 or 3.51, I've worn out the CD's to put my ashtray on. (Actually I seem to remember they still came on floppys). Windows 2000 has left supported status when William Shatner had to hand over the keys of the USS Enterprise. Your best bet is XP service pack 3. It postdates server 2003 (when all the goodies were introduced) and should have all the nice OS interfaces, without having to write your own device drivers.

Without user privileges: actually I think this is feasible, providing that you have an install program that handles the messy bits like doing initial mounts, establishing HKLM keys.


Ron Aldrich wrote:
I guess my first task is to determine whether or not this is even possible.


Funny you should say that. Today I gave some advice to a rookie, which was exactly in line with what you're saying now. Of course I'm not implying you're a rookie, but this might amuse you: http://www.codeproject.com/Answers/76089/this-is-a-network-analyzer-how-do-i-Dnslookup.aspx#answer3[^]

If you're really looking at targeting pre-XP SP3 releases then the Open Specification document to which you referred may be be your only chance. But remember that these open specifications are not cast in stone. These docs were only produced by M$ because they were forced do to so by the EU. Support will be patchy, at best.

Good luck
If you send me a private reply on this message, you'll get my email address by returning mail. (putting addresses on the internet is never a good idea. (Can I interest you in some Cialis or Viagra?)

PS, to clear some confusion: you don't mount a drive. A drive is a physical thing which contains partitions. A drive is either offline or online. When it's online it can be controlled by the device manager. Partitions can be mounted or dismounted on reparse points (drive letters, empty NTFS directories) when the drive is online...
QuestionDevelop a PLug-In for IE in c# (like Tamper IE) Pin
shiv301026-Apr-10 3:18
shiv301026-Apr-10 3:18 
AnswerRe: Develop a PLug-In for IE in c# (like Tamper IE) Pin
Michel Godfroid26-Apr-10 3:25
Michel Godfroid26-Apr-10 3:25 
Questioncreating COM Class in .net having function with string array as input pramenter Pin
Shrikanth Saripella25-Apr-10 20:10
Shrikanth Saripella25-Apr-10 20:10 
AnswerRe: creating COM Class in .net having function with string array as input pramenter Pin
Stuart Dootson25-Apr-10 21:41
professionalStuart Dootson25-Apr-10 21:41 
QuestionHow to get Interface to Control after #importing Pin
JohnnyG24-Apr-10 12:31
JohnnyG24-Apr-10 12:31 
AnswerRe: How to get Interface to Control after #importing Pin
Jonathan Davies25-Apr-10 0:44
Jonathan Davies25-Apr-10 0:44 
GeneralRe: How to get Interface to Control after #importing [modified] Pin
JohnnyG26-Apr-10 11:10
JohnnyG26-Apr-10 11:10 
GeneralRe: How to get Interface to Control after #importing Pin
Jonathan Davies26-Apr-10 23:15
Jonathan Davies26-Apr-10 23:15 
QuestionHow to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
glitteringsound20-Apr-10 20:47
glitteringsound20-Apr-10 20:47 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt20-Apr-10 21:01
Stephen Hewitt20-Apr-10 21:01 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
glitteringsound20-Apr-10 21:12
glitteringsound20-Apr-10 21:12 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt20-Apr-10 21:17
Stephen Hewitt20-Apr-10 21:17 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
glitteringsound20-Apr-10 22:15
glitteringsound20-Apr-10 22:15 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt21-Apr-10 0:30
Stephen Hewitt21-Apr-10 0:30 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Jonathan Davies21-Apr-10 0:26
Jonathan Davies21-Apr-10 0:26 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
«_Superman_»21-Apr-10 6:21
professional«_Superman_»21-Apr-10 6:21 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt21-Apr-10 13:45
Stephen Hewitt21-Apr-10 13:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.