[AGENT++] Agent++Win32 Questions
Dave White
dave.white at efi.com
Wed Jan 28 16:59:27 CET 2004
Hello,
I would like to use Agent++ as a replacement for snmp.exe in a Windows
XP environment but I have a few questions while working with the Win32
code. I am using Visual C++ .NET version 7.1 with the following code
base:
Agent++Win32_1.0a
AgentX++v1.4.8a
Agent++v3.5.15a
Snmp++v3.2.10
1. The Agent++ web site and the Agent++Win32 API README say that Snmp++
and Agent++ have to be compiled with _NO_THREADS defined. However,
agentX++win32master requires AgentX++, and AgentX++ will not compile
because it (in agentx_threads.h) requires that threads are enabled in
Agent++. What problems are caused from enabling threads in Snmp++ and
Agent++?
2. With threads enabled, I can build the agentX++win32master.exe file
but it is not yet a direct replacement for snmp.exe which is a Windows
Service. I can run the executable as a stand-alone program, but it does
not have support built into it for a Windows Service. I cannot see
anything in the source code that calls any of the Windows Service
functions. Consequently, when I follow the README instructions that
say:
1. Stop the SNMP Service.
2. Backup the existing agent 'snmp.exe' ...
3. Copy the 'agentx++win32master.exe' ...
4. Start the SNMP service again. That's all.
I find that the "service" will be terminated after 30 seconds because it
is not a real service. What am I missing? Or are there plans to add
the code required to interact with the service manager so it behaves as
any other Windows service?
Thank you,
Dave White
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20040128/546bf389/attachment.htm
More information about the AGENTPP
mailing list