Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
2000
active_directory
advanced_server
applications
cmdprompt.admin
developer
dns
enable
fax
file_system
games
general
group_policy
hardware
msi
multimedia
netware
networking
new_user
printing
ras_routing
registry
security
setup
setup_deployment
setup_upgrade
termserv.apps
termserv.clients
windows_update
  
 
date: Fri, 23 Nov 2007 08:42:00 -0800,    group: microsoft.public.win2000.ras_routing        back       


cmak DLL for executing Pre-Connect Actions synchronously   
I'm trying to write a dll for the Microsoft cmak, which we will use for a VPN 
connection. It's supposed to have this signature: 
HRESULT WINAPI function
	[IN] HWND hWndParent
	[IN] HINSTANCE hinstDll
	[IN] LPCSTR pszCommandLine
	[IN] DWORD dwReserved

But it still uses the DllMain of my console win32 c++ dll-file. Cmak can 
only run DLLs synchronously. I want it to run two .exe files after each 
other. I start them from the DLL. It may not go on establishing the 
connection until both of them has executed successsfully. It has to stop 
after starting each .exe. That's why it has to be a DLL. It doesn't stop 
otherwise. No matter what function name I use in the [Pre-Connect Actions] 
section of the .cms-file it uses DllMain anyway.

Do you have to export the function names for automation like an ActiveX-DLL?

Is there a working source code project that I can look at somewhere on the 
web?
date: Fri, 23 Nov 2007 08:42:00 -0800   author:   lagu2653

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us