Click here to Skip to main content
14,634,323 members
Home » Discussions » COM
   

COM

 
QuestionIZoneIdentifier interface? Pin
dandy7218-Nov-04 11:11
Memberdandy7218-Nov-04 11:11 
AnswerRe: IZoneIdentifier interface? Pin
geo_m19-Nov-04 3:20
Membergeo_m19-Nov-04 3:20 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 4:59
Memberdandy7219-Nov-04 4:59 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 7:33
Memberdandy7219-Nov-04 7:33 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 0:47
Membergeo_m23-Nov-04 0:47 
GeneralRe: IZoneIdentifier interface? Pin
dandy7223-Nov-04 7:20
Memberdandy7223-Nov-04 7:20 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 22:52
Membergeo_m23-Nov-04 22:52 
GeneralRe: IZoneIdentifier interface? Pin
geo_m24-Nov-04 1:42
Membergeo_m24-Nov-04 1:42 
aghrr, once more, today's CP problems vanished my effort in writing the final response Frown | :(

Anyway, managed it to compile! Hooray!
I hadn't too much time for that research, but I found following:
In new updated urlmon.h the IZoneIdentifier uses the macro MIDL_INTERFACE that allows to use the brand new special microsoft __uuidof.

Problem remains with the CLSID_PersistentZoneIdentifier. Although his fellows CLSID_InternetSecurityManager and CLSID_InternetZoneManager are known and will compile, this one is obviously missing.

As I don't have too much time for the research, I just hotfixed it by adding the definition of the CLSID_PersistentZoneIdentifier by hand, before the main function in your example:

static const GUID CLSID_PersistentZoneIdentifier = 
{ 0x0968E258, 0x16C7, 0x4DBA, { 0xAA, 0x86, 0x46, 0x2D, 0xD6, 0x1E, 0x31, 0xA3 } };


and the final result is then:
h = CoCreateInstance( 
           CLSID_PersistentZoneIdentifier,
	   NULL,
	   CLSCTX_INPROC_SERVER,
	   __uuidof(IZoneIdentifier),
	  (LPVOID*)&pZI 
                   );


Compiles and also creates some object in return.

Hope that helps.
GeneralRe: IZoneIdentifier interface? Pin
dandy7225-Nov-04 5:11
Memberdandy7225-Nov-04 5:11 
GeneralRe: IZoneIdentifier interface? Pin
geo_m26-Nov-04 3:11
Membergeo_m26-Nov-04 3:11 
GeneralRe: IZoneIdentifier interface? Pin
dandy7226-Nov-04 5:36
Memberdandy7226-Nov-04 5:36 
QuestionHow to return a vector or an array? Pin
tpndtbk18-Nov-04 2:59
Membertpndtbk18-Nov-04 2:59 
AnswerRe: How to return a vector or an array? Pin
Sohailk18-Nov-04 18:46
MemberSohailk18-Nov-04 18:46 
GeneralRe: How to return a vector or an array? Pin
Steve S18-Nov-04 23:23
MemberSteve S18-Nov-04 23:23 
GeneralRe: How to return a vector or an array? Pin
Sohailk18-Nov-04 23:39
MemberSohailk18-Nov-04 23:39 
GeneralRe: How to return a vector or an array? Pin
Steve S19-Nov-04 0:14
MemberSteve S19-Nov-04 0:14 
GeneralRe: How to return a vector or an array? Pin
Akshay Dave19-Nov-04 0:13
MemberAkshay Dave19-Nov-04 0:13 
GeneralRe: How to return a vector or an array? Pin
Sohailk19-Nov-04 1:21
MemberSohailk19-Nov-04 1:21 
GeneralRe: How to return a vector or an array? Pin
Steve S19-Nov-04 8:40
MemberSteve S19-Nov-04 8:40 
GeneralWORD Pin
Stgt16-Nov-04 22:59
MemberStgt16-Nov-04 22:59 
GeneralBROTHER! Pin
Jörgen Sigvardsson17-Nov-04 11:37
MemberJörgen Sigvardsson17-Nov-04 11:37 
GeneralRe: BROTHER! Pin
Anonymous17-Nov-04 21:05
MemberAnonymous17-Nov-04 21:05 
GeneralRe: WORD Pin
Steve S18-Nov-04 23:26
MemberSteve S18-Nov-04 23:26 
GeneralRe: WORD Pin
Anonymous19-Nov-04 0:49
MemberAnonymous19-Nov-04 0:49 
GeneralRe: WORD Pin
Steve S19-Nov-04 1:07
MemberSteve S19-Nov-04 1:07 

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.