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
viewer.cpp
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 3k
Category:
Windows Kernel
Development Platform:
Visual C++
- #include "pch.h"
- #include "..viewerviewerp.h"
- #include "viewer.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- VOID WINAPI
- CSCViewCacheRunDllA(
- HWND hwnd,
- HINSTANCE hInstance,
- LPSTR pszCmdLineA,
- INT nCmdShow);
- VOID WINAPI
- CSCViewCacheRunDllW(
- HWND hwnd,
- HINSTANCE hInstance,
- LPWSTR pszCmdLineW,
- INT nCmdShow);
- #ifdef __cplusplus
- }
- #endif
- //
- // Arguments:
- //
- // iInitialView - Indicates initial view of cache to be displayed.
- //
- // 1 = Share view (default)
- // 2 = Details view.
- // 3 = Stale view.
- //
- // pszInitialShare - Name of initial share to view.
- //
- // i.e.: "\worfntspecs"
- //
- // "" means All Shares.
- //
- // Returns: Nothing.
- //
- VOID WINAPI
- CSCViewCacheW(
- INT iInitialView,
- LPCWSTR pszInitialShareW
- )
- {
- CSCViewCacheInternalNSE();
- // CSCViewCacheInternalW(iInitialView, pszInitialShareW, false);
- }
- VOID WINAPI
- CSCViewCacheA(
- INT iInitialView,
- LPCSTR pszInitialShareA
- )
- {
- CSCViewCacheInternalNSE();
- // CSCViewCacheInternalA(iInitialView, pszInitialShareA, false);
- }
- VOID WINAPI
- CSCViewShareSummaryW(
- LPCWSTR pszShareW,
- HWND hwndParent,
- BOOL bModal
- )
- {
- CSCViewShareSummaryInternalW(pszShareW, hwndParent, bModal);
- }
- VOID WINAPI
- CSCViewShareSummaryA(
- LPCSTR pszShareA,
- HWND hwndParent,
- BOOL bModal
- )
- {
- CSCViewShareSummaryInternalA(pszShareA, hwndParent, bModal);
- }
- VOID WINAPI
- CSCViewOptions(
- HWND hwndParent,
- BOOL bModal
- )
- {
- CSCViewOptionsInternal(hwndParent, bModal);
- }
- //
- // See CSCViewCacheRunDllW for command line argument information.
- //
- VOID WINAPI
- CSCViewCacheRunDllA(
- HWND hwnd,
- HINSTANCE hInstance,
- LPSTR pszCmdLineA,
- INT nCmdShow
- )
- {
- USES_CONVERSION;
- CSCViewCacheRunDllW(hwnd, hInstance, A2W(pszCmdLineA), nCmdShow);
- }
- //
- // To call via rundll32.exe:
- //
- // rundll32 cscui.dll,CSCViewCacheRunDll <n> <share>
- //
- // where: <n> is the view type identifier:
- //
- // 1 = Share view (default)
- // 2 = Details view.
- // 3 = Stale view.
- //
- // <share> is the name of the initial share to display.
- // Default is to display all shares.
- //
- VOID WINAPI
- CSCViewCacheRunDllW(
- HWND hwnd,
- HINSTANCE hInstance,
- LPWSTR pszCmdLineW,
- INT nCmdShow
- )
- {
- WCHAR szBlank[] = L"";
- LPWSTR psz = pszCmdLineW;
- LPWSTR pszEnd = pszCmdLineW;
- int iView = 1;
- while(*pszEnd && L' ' != *pszEnd)
- pszEnd++;
- if (pszEnd > psz)
- {
- *pszEnd = 0;
- iView = StrToIntW(psz);
- pszEnd = psz = pszEnd + 1;
- }
- while(*pszEnd && L' ' != *pszEnd)
- pszEnd++;
- if (*pszEnd)
- *pszEnd = 0;
- if (!(*psz))
- psz = szBlank;
- CSCViewCacheInternalW(iView, psz, true);
- }