LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write windows event log in CVI

Hi All,

 

I need some help on CVI.

 

I want to write windows event log using CVI.

 

Are there any APIs available for that in CVI?

 

Thanks,

Harika

0 Kudos
Message 1 of 5
(4,000 Views)

Hi Harika,

 

LabWindows/CVI does not provide callback events corresponding to all of the low-level Windows events. However, you can call the function RouteWinMsgToPanelCallback from the tools library to route any number of Window messages to your panel callback function.

When the panel receives the Windows message you specify, it calls the panel callback with an event value of EVENT_WINDOWS_MSG.

 

For an example, see the help on RouteWinMsgToPanelCallback.

 

0 Kudos
Message 2 of 5
(3,996 Views)

Hi,

 

Thanks for your reply.

 

i want to customise event tracing module available in windows. if you go to ControlPanel -> Administrative Tools -> Event Viewer in your system, there you will see a list of tracing information related to applications,system,security and interner explorer. If you click applications, you can view the tracing information in the form of information,error,warning.

 

My intention is to customise the tracing information using APIs.

 

In dotnet, i am able to do that using "EventLog" namespace.

 

Similarly, are there APIs or any properties in CVI available to do this?

 

Thanks,

Harika

 

 

0 Kudos
Message 3 of 5
(3,994 Views)
I don't think that there are special CVI functions for doing so. But if these event values are stored in the registry (?), you could use the "RegRead..." functions of the Programmer's Toolbox library to get registry key values.
0 Kudos
Message 4 of 5
(3,990 Views)
You need to look at the Windows event log APIs, starting here.
--
Martin
Certified CVI Developer
0 Kudos
Message 5 of 5
(3,982 Views)