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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now