Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

193 lines
2.9 KiB

#include "basepch.h"
#pragma hdrstop
#include <sfcapip.h>
#include <winwlx.h>
static
BOOL
WINAPI
SfcIsFileProtected(
IN HANDLE RpcHandle, // must be NULL
IN LPCWSTR ProtFileName
)
{
return FALSE;
}
static
BOOL
WINAPI
SfcGetNextProtectedFile(
IN HANDLE RpcHandle, // must be NULL
IN PPROTECTED_FILE_DATA ProtFileData
)
{
return FALSE;
}
static
VOID
SfcWLEventLogon(
IN PWLX_NOTIFICATION_INFO pInfo
)
{
NOTHING;
}
VOID
SfcWLEventLogoff(
IN PWLX_NOTIFICATION_INFO pInfo
)
{
NOTHING;
}
static
HANDLE
WINAPI
SfcConnectToServer(
IN LPCWSTR ServerName
)
{
return NULL;
}
static
VOID
SfcClose(
IN HANDLE RpcHandle
)
{
NOTHING;
}
static
DWORD
WINAPI
SfcFileException(
IN HANDLE RpcHandle,
IN PCWSTR FileName,
IN DWORD ExpectedChangeType
)
{
return 0;
}
static
DWORD
WINAPI
SfcInitiateScan(
IN HANDLE RpcHandle,
IN DWORD ScanWhen
)
{
return 0;
}
static
ULONG
SfcInitProt(
IN ULONG OverrideRegistry,
IN ULONG ReqDisable,
IN ULONG ReqScan,
IN ULONG ReqQuota,
IN HWND ProgressWindow, OPTIONAL
IN PCWSTR SourcePath, OPTIONAL
IN PCWSTR IgnoreFiles OPTIONAL
)
{
return STATUS_UNSUCCESSFUL;
}
static
VOID
SfcTerminateWatcherThread(
VOID
)
{
return;
}
static
BOOL
WINAPI
SfcInstallProtectedFiles(
IN HANDLE RpcHandle,
IN PCWSTR FileNames,
IN BOOL AllowUI,
IN PCWSTR ClassName,
IN PCWSTR WindowName,
IN PSFCNOTIFICATIONCALLBACK SfcNotificationCallback,
IN DWORD_PTR Context
)
{
return FALSE;
}
DWORD
SfpInstallCatalog(
IN LPCSTR pszCatName,
IN LPCSTR pszCatDependency,
IN PVOID Reserved
)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
DWORD
SfpDeleteCatalog(
IN LPCSTR pszCatName,
IN PVOID Reserved
)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
BOOL
SfpVerifyFile(
IN LPCSTR pszFileName,
IN LPSTR pszError,
IN DWORD dwErrSize
)
{
return FALSE;
}
//
// !! WARNING !! The entries below must be in order by ORDINAL
//
DEFINE_ORDINAL_ENTRIES(sfc)
{
DLOENTRY(1, SfcInitProt)
DLOENTRY(2, SfcTerminateWatcherThread)
DLOENTRY(3, SfcConnectToServer)
DLOENTRY(4, SfcClose)
DLOENTRY(5, SfcFileException)
DLOENTRY(6, SfcInitiateScan)
DLOENTRY(7, SfcInstallProtectedFiles)
DLOENTRY(8, SfpInstallCatalog)
DLOENTRY(9, SfpDeleteCatalog)
};
DEFINE_ORDINAL_MAP(sfc)
//
// !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
//
DEFINE_PROCNAME_ENTRIES(sfc)
{
DLPENTRY(SfcGetNextProtectedFile)
DLPENTRY(SfcIsFileProtected)
DLPENTRY(SfcWLEventLogoff)
DLPENTRY(SfcWLEventLogon)
DLPENTRY(SfpVerifyFile)
};
DEFINE_PROCNAME_MAP(sfc)