Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
about.cpp
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- #include "priv.h"
- #include <mluisupp.h>
- //
- // The about box is now an HTML dialog. It is sent a ~ (tilde)
- // delimited BSTR that has, in this order, version number,
- // person software is licensed to, company software is licensed to, and
- // whether 40, 56, or 128 bit ie is installed.
- //
- STDAPI_(void) IEAboutBox( HWND hWnd )
- {
- TCHAR szInfo[512 + INTERNET_MAX_URL_LENGTH]; // potential for IEAK specific URL from
- // SHAboutInfo
- szInfo[0] = 0;
- SHAboutInfo(szInfo, ARRAYSIZE(szInfo)); // from shlwapi
- BSTR bstrVal = SysAllocStringT(szInfo);
- if (bstrVal)
- {
- TCHAR szResURL[MAX_URL_STRING];
- HRESULT hr;
- hr = MLBuildResURLWrap(TEXT("shdoclc.dll"),
- HINST_THISDLL,
- ML_CROSSCODEPAGE,
- TEXT("about.dlg"),
- szResURL,
- ARRAYSIZE(szResURL),
- TEXT("shdocvw.dll"));
- if (SUCCEEDED(hr))
- {
- VARIANT var = {0}; // variant containing version and user info
- var.vt = VT_BSTR;
- var.bstrVal = bstrVal;
- IMoniker *pmk;
- if (SUCCEEDED(CreateURLMoniker(NULL, szResURL, &pmk)))
- {
- ShowHTMLDialog(hWnd, pmk, &var, L"help: no", NULL);
- pmk->Release();
- }
- SysFreeString(bstrVal);
- }
- }
- }