1999-01-03 13:48:29 +01:00
|
|
|
/*
|
|
|
|
* Win32 advapi functions
|
|
|
|
*
|
|
|
|
* Copyright 1995 Sven Verdoolaege, 1998 Juergen Schmied
|
|
|
|
*/
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "wintypes.h"
|
|
|
|
#include "winreg.h"
|
1999-01-03 13:48:29 +01:00
|
|
|
#include "winerror.h"
|
|
|
|
#include "heap.h"
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "debug.h"
|
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* BackupEventLog32A [ADVAPI32.15]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI BackupEventLog32A( HANDLE32 hEventLog, LPCSTR lpBackupFileName )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
1999-01-28 14:46:25 +01:00
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* BackupEventLog32W [ADVAPI32.16]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* lpBackupFileName []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
BOOL32 WINAPI
|
|
|
|
BackupEventLog32W( HANDLE32 hEventLog, LPCWSTR lpBackupFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ClearEventLog32A [ADVAPI32.19]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI ClearEventLog32A ( HANDLE32 hEventLog, LPCSTR lpBackupFileName )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ClearEventLog32W [ADVAPI32.20]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI ClearEventLog32W ( HANDLE32 hEventLog, LPCWSTR lpBackupFileName )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* CloseEventLog32 [ADVAPI32.21]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI CloseEventLog32 ( HANDLE32 hEventLog )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* DeregisterEventSource32 [ADVAPI32.32]
|
1999-01-03 13:48:29 +01:00
|
|
|
* Closes a handle to the specified event log
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I] Handle to event log
|
|
|
|
*
|
|
|
|
* RETURNS STD
|
|
|
|
*/
|
|
|
|
BOOL32 WINAPI DeregisterEventSource32( HANDLE32 hEventLog )
|
|
|
|
{
|
|
|
|
FIXME(advapi, "(%d): stub\n",hEventLog);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* GetNumberOfEventLogRecords32 [ADVAPI32.49]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* NumberOfRecords []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
BOOL32 WINAPI
|
|
|
|
GetNumberOfEventLogRecords32( HANDLE32 hEventLog, PDWORD NumberOfRecords )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* GetOldestEventLogRecord32 [ADVAPI32.50]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* OldestRecord []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
BOOL32 WINAPI
|
|
|
|
GetOldestEventLogRecord32( HANDLE32 hEventLog, PDWORD OldestRecord )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
1999-01-28 14:46:25 +01:00
|
|
|
FIXME(advapi,":stub\n");
|
1999-01-03 13:48:29 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* NotifyChangeEventLog32 [ADVAPI32.98]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* hEvent []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI NotifyChangeEventLog32( HANDLE32 hEventLog, HANDLE32 hEvent )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* OpenBackupEventLog32A [ADVAPI32.105]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
HANDLE32 WINAPI
|
|
|
|
OpenBackupEventLog32A( LPCSTR lpUNCServerName, LPCSTR lpFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* OpenBackupEventLog32W [ADVAPI32.106]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpUNCServerName []
|
|
|
|
* lpFileName []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
HANDLE32 WINAPI
|
|
|
|
OpenBackupEventLog32W( LPCWSTR lpUNCServerName, LPCWSTR lpFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* OpenEventLog32A [ADVAPI32.107]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
HANDLE32 WINAPI OpenEventLog32A(LPCSTR uncname,LPCSTR source)
|
|
|
|
{
|
|
|
|
FIXME(advapi,"(%s,%s),stub!\n",uncname,source);
|
|
|
|
return 0xcafe4242;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* OpenEventLog32W [ADVAPI32.108]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* uncname []
|
|
|
|
* source []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
HANDLE32 WINAPI
|
|
|
|
OpenEventLog32W( LPCWSTR uncname, LPCWSTR source )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ReadEventLog32A [ADVAPI32.124]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI ReadEventLog32A( HANDLE32 hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
|
|
|
|
LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ReadEventLog32W [ADVAPI32.125]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* dwReadFlags []
|
|
|
|
* dwRecordOffset []
|
|
|
|
* lpBuffer []
|
|
|
|
* nNumberOfBytesToRead []
|
|
|
|
* pnBytesRead []
|
|
|
|
* pnMinNumberOfBytesNeeded []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
BOOL32 WINAPI
|
|
|
|
ReadEventLog32W( HANDLE32 hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
|
|
|
|
LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
|
|
|
|
DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* RegisterEventSource32A [ADVAPI32.174]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
HANDLE32 WINAPI RegisterEventSource32A( LPCSTR lpUNCServerName, LPCSTR lpSourceName )
|
|
|
|
{
|
|
|
|
LPWSTR lpUNCServerNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpUNCServerName);
|
|
|
|
LPWSTR lpSourceNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpSourceName);
|
|
|
|
HANDLE32 ret = RegisterEventSource32W(lpUNCServerNameW,lpSourceNameW);
|
|
|
|
HeapFree(GetProcessHeap(),0,lpSourceNameW);
|
|
|
|
HeapFree(GetProcessHeap(),0,lpUNCServerNameW);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* RegisterEventSource32W [ADVAPI32.175]
|
1999-01-03 13:48:29 +01:00
|
|
|
* Returns a registered handle to an event log
|
|
|
|
*
|
|
|
|
* PARAMS
|
1999-01-28 14:46:25 +01:00
|
|
|
* lpUNCServerName [I] Server name for source
|
|
|
|
* lpSourceName [I] Source name for registered handle
|
1999-01-03 13:48:29 +01:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: Handle
|
|
|
|
* Failure: NULL
|
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
HANDLE32 WINAPI
|
|
|
|
RegisterEventSource32W( LPCWSTR lpUNCServerName, LPCWSTR lpSourceName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi, "(%s,%s): stub\n", debugstr_w(lpUNCServerName),
|
|
|
|
debugstr_w(lpSourceName));
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ReportEvent32A [ADVAPI32.178]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
BOOL32 WINAPI ReportEvent32A ( HANDLE32 hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
|
|
|
|
PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCSTR *lpStrings, LPVOID lpRawData)
|
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
1999-01-28 14:46:25 +01:00
|
|
|
* ReportEvent32W [ADVAPI32.179]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog []
|
|
|
|
* wType []
|
|
|
|
* wCategory []
|
|
|
|
* dwEventID []
|
|
|
|
* lpUserSid []
|
|
|
|
* wNumStrings []
|
|
|
|
* dwDataSize []
|
|
|
|
* lpStrings []
|
|
|
|
* lpRawData []
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-01-28 14:46:25 +01:00
|
|
|
BOOL32 WINAPI
|
|
|
|
ReportEvent32W( HANDLE32 hEventLog, WORD wType, WORD wCategory,
|
|
|
|
DWORD dwEventID, PSID lpUserSid, WORD wNumStrings,
|
|
|
|
DWORD dwDataSize, LPCWSTR *lpStrings, LPVOID lpRawData )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
|
|
|
FIXME(advapi,"stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|