Recent

Author Topic: Wrapper/Import for winevt.h  (Read 1519 times)

ArminLinder

  • Sr. Member
  • ****
  • Posts: 315
  • Keep it simple.
Wrapper/Import for winevt.h
« on: March 07, 2024, 06:07:58 pm »
Hi folks,

does anyone have knowlewdge whether there is a winevt.h translation for FPC/Lazarus?

AFAIK it is needed to read the "Applications and Services" Eventlogs introduced with Windows Vista. The old Routines included in the Windows unit won't work with these.

Thnx, Armin
« Last Edit: March 07, 2024, 07:00:25 pm by ArminLinder »
Lazarus 3.3.2 on Windows 7,10,11, Debian 10.8 "Buster", macOS Catalina, macOS BigSur, VMWare Workstation 15, Raspberry Pi

Thaddy

  • Hero Member
  • *****
  • Posts: 15544
  • Censorship about opinions does not belong here.
Re: Wrapper/Import for winevt.h
« Reply #1 on: March 07, 2024, 09:17:08 pm »
maybe jvawwindows instead of windows.
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

ArminLinder

  • Sr. Member
  • ****
  • Posts: 315
  • Keep it simple.
Re: Wrapper/Import for winevt.h
« Reply #2 on: March 08, 2024, 08:00:58 am »
Thaddy?

jvawwindows ... non existent unit. Found no trace it exists.

Your way of saying "use Java"? Seriously?

Armin
« Last Edit: March 08, 2024, 08:25:54 am by ArminLinder »
Lazarus 3.3.2 on Windows 7,10,11, Debian 10.8 "Buster", macOS Catalina, macOS BigSur, VMWare Workstation 15, Raspberry Pi

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11732
  • FPC developer.
Re: Wrapper/Import for winevt.h
« Reply #3 on: March 08, 2024, 09:40:33 am »
Jwawindows is perfectly fine in packages/winunits-jedi and deeper, as well as unit for individual headers.

Note that contrary to Windows, these (formerly third party) drivers are less checked for windows 64-bit issues, so if you make 64-bit binaries, be careful

Zvoni

  • Hero Member
  • *****
  • Posts: 2630
Re: Wrapper/Import for winevt.h
« Reply #4 on: March 08, 2024, 10:59:20 am »
Hi folks,

does anyone have knowlewdge whether there is a winevt.h translation for FPC/Lazarus?

AFAIK it is needed to read the "Applications and Services" Eventlogs introduced with Windows Vista. The old Routines included in the Windows unit won't work with these.

Thnx, Armin
Quick and dirty.
It... compiles....

No idea if it's going to start a nuclear rocket in North Korea
Needs further work (see comments)
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

ArminLinder

  • Sr. Member
  • ****
  • Posts: 315
  • Keep it simple.
Re: Wrapper/Import for winevt.h
« Reply #5 on: March 10, 2024, 08:03:39 pm »
I'll find out tonight ... go find yourself a nuclear-blast-save shelter, just in case :-)

Armin.
Lazarus 3.3.2 on Windows 7,10,11, Debian 10.8 "Buster", macOS Catalina, macOS BigSur, VMWare Workstation 15, Raspberry Pi

 

TinyPortal © 2005-2018