Click here to Skip to main content
15,917,610 members
Home / Discussions / COM
   

COM

 
AnswerRe: CoCreateInstance HResult is failing, getting error -2147221164 stating that Class is not registered. Pin
«_Superman_»3-May-10 11:22
professional«_Superman_»3-May-10 11:22 
AnswerRe: CoCreateInstance HResult is failing, getting error -2147221164 stating that Class is not registered. Pin
Vi25-May-10 21:30
Vi25-May-10 21:30 
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 
Good Question. I've searched the whole DDK, and I can' t find one. the Interface is however defined in full (including CLSID) in the open specification you refer to (look in Appendix A, 6.1 full dmintf idl)

May I however suggest another (supported) approach to this: (the open spec is for information only)

Starting with server 2003, you can use WMI to mount/unmount volumes : http://msdn.microsoft.com/en-us/library/aa392400(v=VS.85).aspx[^]

The thing that confuses me is that the documentation states: no client operating systems supported, but this may be an artefact of the age of the documentation (the documentation may not have been updated since this function was implemented, and this may only indicate that at the time of the implementation, there were no clients supporting this).

If all else fails, you can always use the mountvol.exe utility, have look at the answer in http://www.codeproject.com/Messages/3443352/Re-How-to-get-the-hidden-drives-in-windows.aspx[^] (I believe mountvol uses WMI, that's why I think it's supported in Vista and Windows 7.

If you have to go beyond server 2003, you could use FSCTL's to do your mounting, have a look at this article:
Inside Mountvol.exe[^] Although this primarily deals with registering the reparse points as a normal user. (this can't be done, for security reasons), however the drive letters (a: b: c: ...) are pre-existing, so they require no privileges to mount. Running you program as administator will help anyway (always needed for the registration of a reparse point).

A lot of this is educated guesswork (I haven't tried it) but this should set you on your way...
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 
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 

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.