Event logging from GINA

  • Thread starter Thread starter markpb
  • Start date Start date
M

markpb

Hi,

I'm writing a smart-card based GINA for our company and its nearly
finished but I'm hitting some problems when I try to log errors to the
Windows Event log.

When I call RegisterEventSource("NULL", "SCGina") it returns null and
GetLastError returns 183, "Cannot create file when the file already
exists". I created the registry entry for SCGina in the
Eventlog\Applications key.

The same code works from a regular windows app, is it something I'm
doing wrong or is there something different I need to do from a GINA?
Thanks,
Mark
 
Hello Mark,

I'd suggest you ping one of our dev newsgroups.


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Curtis,

I actually got around the problem this morning by moving the call to
the Event logging functions later on in my code. I suspect it may be a
timing issue with the Event logging service.
 
Back
Top