JohnOne Posted April 16, 2013 Share Posted April 16, 2013 (edited) Currently I'm getting CLSID as below...CLSID clsid; HRESULT CLSID_ShellApp = CLSIDFromProgID( OLESTR("Shell.Application"), &clsid);My question is, is there a constant or an already defined value for such a CLSID within C++ VS2010 as there is for CLSID_InternetExplorer;?I have searched and found nothing, but my search skills are not as wonderful as I'd like.EDIT:What I'm attempting to do is, instead of looping through all shell windows to interface with internet explorer, is have an already defined CLSID_xxx or IID_xxx of internet explorer.EDIT2Actually, that's just silly I think, it's a shell window and that's that, not given up on a defined CLSID though. Edited April 17, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 16, 2013 Share Posted April 16, 2013 It would be worth checking the file where CLSID_InternetExplorer is defined. Link to comment Share on other sites More sharing options...
JohnOne Posted April 16, 2013 Author Share Posted April 16, 2013 I've seen that, but I cannot seen to interface with running instance with it, but only create a new instance. I'm unsure of one I found Here http://csexwb2.googlecode.com/svn/trunk/General_Classes/Iid_Clsids.cs Guid IID_TopLevelBrowser = new Guid("4C96BE40-915C-11CF-99D3-00AA004AE837"); AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 16, 2013 Share Posted April 16, 2013 I'm not entirely familiar with what Shell.Application has to offer. What functionality are you looking for with this knowable Guid? Link to comment Share on other sites More sharing options...
JohnOne Posted April 16, 2013 Author Share Posted April 16, 2013 (edited) It's what _IEAttach uses to access running IE interface, and as far as I know, the only way. Edited April 16, 2013 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Solution Ascend4nt Posted April 16, 2013 Solution Share Posted April 16, 2013 CLSID_Shell is declared as {13709620-C279-11CE-A49E-444553540000} in <Shldisp.h>. You can use 'StringFromCLSID' or 'StringFromGUID2' to get the number. JohnOne 1 My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
JohnOne Posted April 16, 2013 Author Share Posted April 16, 2013 Cheers Ace, that's exactly what I was looking for. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now