Event logging from GINA

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
 
C

Curtis Clay III [MSFT]

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.
 
M

markpb

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top