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
subs.cpp
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:
Windows Kernel
Development Platform:
Visual C++
- #include <windows.h>
- #include <wininet.h>
- void main()
- {
- // Assume existing file C:tempfoo.bar to be
- // committed to cache associated with
- // http://www.foo.bar/
- LPSTR szFile = "c:\temp\foo.bar";
- LPSTR szUrl = "http://www.foo.bar/";
- CHAR szCacheFile[MAX_PATH];
- // Expiry and Last-Modified times of 0.
- LONGLONG llZero = 0;
- FILETIME ftExpire = *((FILETIME*) & llZero);
- FILETIME ftLastMod = *((FILETIME*) & llZero);
- // Create cache file.
- CreateUrlCacheEntry(szUrl, 0, NULL, szCacheFile, 0);
- // Copy existing file to cache file.
- CopyFile(szFile, szCacheFile, FALSE);
- CommitUrlCacheEntry(szUrl,
- szCacheFile,
- ftExpire,
- ftLastMod,
- 0,
- NULL,
- 0,
- NULL,
- 0);
- }