Click here to Skip to main content
15,895,786 members
Home / Discussions / COM
   

COM

 
QuestionIZoneIdentifier interface? Pin
dandy7218-Nov-04 11:11
dandy7218-Nov-04 11:11 
AnswerRe: IZoneIdentifier interface? Pin
geo_m19-Nov-04 3:20
geo_m19-Nov-04 3:20 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 4:59
dandy7219-Nov-04 4:59 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 7:33
dandy7219-Nov-04 7:33 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 0:47
geo_m23-Nov-04 0:47 
GeneralRe: IZoneIdentifier interface? Pin
dandy7223-Nov-04 7:20
dandy7223-Nov-04 7:20 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 22:52
geo_m23-Nov-04 22:52 
GeneralRe: IZoneIdentifier interface? Pin
geo_m24-Nov-04 1:42
geo_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
dandy7225-Nov-04 5:11 
GeneralRe: IZoneIdentifier interface? Pin
geo_m26-Nov-04 3:11
geo_m26-Nov-04 3:11 
GeneralRe: IZoneIdentifier interface? Pin
dandy7226-Nov-04 5:36
dandy7226-Nov-04 5:36 
QuestionHow to return a vector or an array? Pin
tpndtbk18-Nov-04 2:59
tpndtbk18-Nov-04 2:59 
AnswerRe: How to return a vector or an array? Pin
User 21559718-Nov-04 18:46
User 21559718-Nov-04 18:46 
GeneralRe: How to return a vector or an array? Pin
Steve S18-Nov-04 23:23
Steve S18-Nov-04 23:23 
GeneralRe: How to return a vector or an array? Pin
User 21559718-Nov-04 23:39
User 21559718-Nov-04 23:39 
GeneralRe: How to return a vector or an array? Pin
Steve S19-Nov-04 0:14
Steve S19-Nov-04 0:14 
GeneralRe: How to return a vector or an array? Pin
Akshay Dave19-Nov-04 0:13
Akshay Dave19-Nov-04 0:13 
GeneralRe: How to return a vector or an array? Pin
User 21559719-Nov-04 1:21
User 21559719-Nov-04 1:21 
GeneralRe: How to return a vector or an array? Pin
Steve S19-Nov-04 8:40
Steve S19-Nov-04 8:40 
GeneralWORD Pin
Stgt16-Nov-04 22:59
Stgt16-Nov-04 22:59 
GeneralBROTHER! Pin
Jörgen Sigvardsson17-Nov-04 11:37
Jörgen Sigvardsson17-Nov-04 11:37 
GeneralRe: BROTHER! Pin
Anonymous17-Nov-04 21:05
Anonymous17-Nov-04 21:05 
GeneralRe: WORD Pin
Steve S18-Nov-04 23:26
Steve S18-Nov-04 23:26 
GeneralRe: WORD Pin
Anonymous19-Nov-04 0:49
Anonymous19-Nov-04 0:49 
GeneralRe: WORD Pin
Steve S19-Nov-04 1:07
Steve 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.