Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » code   (RSS)
CoUnmarshalInterface() and CoGetInterfaceAndReleaseStream() are not re-entrancy safe. This has certain implications for objects that attempt to unmarshal interfaces into member variables, as a member of my team recently discovered. Suppose you have something Read More...
0 Comments
Filed under:
As I mentioned previously , one reason users may continue to experience unwanted pop-up windows while browsing is creative use of ActiveX controls that provide methods that allow web sites to open new browser windows. This series of posts will provide Read More...
If you write an application that hosts the WebBrowser Control , and you want the control to do something, you can send commands to mshtml via the IOleCommandTarget interface. However, if you are an ActiveX control and you want to send CGID_MSHTML commands, Read More...
IOleCommandTarget is very useful. It provides a generic way of sending commands between objects. IE makes extensive use of IOleCommandTarget , both publically and internally. And, like IUnknown , people frequently get it wrong. Each command is composed Read More...
Question: What is wrong with this code? case WM_DRAWITEM: { LPDRAWITEMSTRUCT pdis = (LPDRAWITEMSTRUCT) lParam; COMBOBOXEXITEM cbexItem = {0}; cbexItem.mask = CBEIF_IMAGE | CBEIF_SELECTEDIMAGE; cbexItem.iItem = pdis->itemID; CallWindowProc(pfnOldWndProc, Read More...
0 Comments
Filed under:
ActiveX® controls frequently need to communicate with their containing object. For example, a control may want to QueryService for the cached InternetSecurityManager object to decide whether or not to take a particular action . Controls can obtain a pointer Read More...
Almost every navigation in Internet Explorer results in a flurry of security checks. Many of these checks are fairly obvious things, such as checking the URL of the current location (the context URL ) and the pending navigation's destination URL to see Read More...
From time to time I have come across web sites that do something like this: <body onResize=“document.execCommand('Refresh')”> ... </body> Generally this is done so the page can redo all of the necessary layout calculations for Read More...
I started working on IE right after IE 5.5 shipped. Since then, there is one little feature which has been the subject of my loving attention from time to time-- setHomePage() . setHomePage() is implemented as a behavior in iepeers.dll. It takes one argument-- Read More...
If you have not had a chance to check out channel 9 , click on over. Read More...
1 Comments
Filed under: , ,
MSDN has had an article entitled Security Considerations: Dynamic HTML for a while. It is a good article, but it simply says what not to do. Everytime I run across it I promise myself I am going to write something more useful someday, something that says Read More...
things to watch out for Read More...
 
Page view tracker