kickenchicken57 Posted August 7, 2007 Posted August 7, 2007 I am having trouble clearing the event logs in Vista using Visual Basic. I can not wait to use the new .NET framework and this code must be done in VB. I am trying to use the Windows Event Log functions from "wevtapi.lib" in Visual basic. The functions are:EVT_HANDLE WINAPI EvtOpenChannelEnum( EVT_HANDLE Session, DWORD Flags);http://msdn2.microsoft.com/en-us/library/aa385437.aspxBOOL WINAPI EvtNextChannelPath( EVT_HANDLE ChannelEnum, DWORD ChannelPathBufferSize, LPWSTR ChannelPathBuffer, PDWORD ChannelPathBufferUsed);http://msdn2.microsoft.com/en-us/library/aa385412.aspxBOOL WINAPI EvtClearLog( EVT_HANDLE Session, LPCWSTR ChannelPath, LPCWSTR TargetFilePath, DWORD Flags);http://msdn2.microsoft.com/en-us/library/aa385340.aspxCan someone please show me how to declare these functions and their types in VB?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now