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
MYVXD.C
Upload User: linklycbj
Upload Date: 2009-11-12
Package Size: 447k
Code Size: 1k
Category:
Windows Develop
Development Platform:
WINDOWS
- #define WANTVXDWRAPS
- #include <basedef.h>
- #include <vmm.h>
- #include <shell.h>
- #include <debug.h>
- #include <vxdwraps.h>
- APPY_HANDLE hevent;
- VOID __cdecl OnAppyTime(DWORD refdata);
- BOOL __stdcall OnSysDynamicDeviceInit()
- { // OnSysDynamicDeviceInit
- hevent = _SHELL_CallAtAppyTime(OnAppyTime, NULL, 0, 0);
- return TRUE;
- } // OnSysDynamicDeviceInit
- BOOL __stdcall OnSysDynamicDeviceExit()
- { // OnSysDynamicDeviceExit
- if (hevent)
- _SHELL_CancelAppyTimeEvent(hevent);
- return TRUE;
- } // OnSysDynamicDeviceExit
- VOID __cdecl OnAppyTime(DWORD refdata)
- {
- #pragma pack(1)
- struct {
- DWORD dwData;
- WORD fuCommand;
- DWORD lpszHelpFile;
- WORD hwnd;
- } WinHelpArgs;
- #pragma pack()
- hevent = 0;
- WinHelpArgs.hwnd = 0;
- WinHelpArgs.lpszHelpFile = _SHELL_LocalAllocEx(LPTR + LMEM_STRING,
- 0, "D:\DDPR.HLP");
- WinHelpArgs.fuCommand = 0x101; // HELP_KEY
- WinHelpArgs.dwData = _SHELL_LocalAllocEx(LPTR + LMEM_STRING,
- 0, "_SHELL_CallDll");
- _SHELL_CallDll("USER", "WinHelp", sizeof(WinHelpArgs),
- &WinHelpArgs);
- _SHELL_LocalFree(WinHelpArgs.lpszHelpFile);
- _SHELL_LocalFree(WinHelpArgs.dwData);
- }