Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing to the EventLog (ReportEvent API)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00829711
Message ID:
00830430
Vues:
19
You're welcome.

>Outstanding! Thank you
>-josh
>
>>This should get you started.
>>#define EVENTLOG_SUCCESS                0X0000
>>#define EVENTLOG_ERROR_TYPE             0x0001
>>#define EVENTLOG_WARNING_TYPE           0x0002
>>#define EVENTLOG_INFORMATION_TYPE       0x0004
>>#define EVENTLOG_AUDIT_SUCCESS          0x0008
>>#define EVENTLOG_AUDIT_FAILURE          0x0010
>>
>>DECLARE Long RegisterEventSource IN Advapi32 ;
>>  STRING lpUNCServerName, STRING lpSourceName
>>DECLARE Long DeregisterEventSource IN Advapi32 ;
>>          Long hEventLog
>>DECLARE Long ReportEvent IN Advapi32 ;
>>  Long hEventLog, Short wType, Short wCategory, Long dwEventID, ;
>>  String lpUserSid, Short wNumStrings, Long dwDataSize, ;
>>  String lpStrings, String lpRawData
>>
>>lhEventLog = RegisterEventSource(0, "My Application")
>>
>>lcEventData = VERSION()
>>? ReportEvent(lhEventLog, EVENTLOG_INFORMATION_TYPE, 7, 7777, 0, 0, LEN(lcEventData), 0, lcEventData)
>>
>>? DeregisterEventSource(lhEventLog)
>>
>>
>>>Does anyone have an examle for the ReportEvent() API call?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform