Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/dlls/amsi/main.c
4389 views
1
/*
2
* Copyright 2019 Hans Leidekker for CodeWeavers
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
*/
18
19
#include <stdarg.h>
20
#include "windef.h"
21
#include "winbase.h"
22
#include "amsi.h"
23
#include "wine/debug.h"
24
25
WINE_DEFAULT_DEBUG_CHANNEL(amsi);
26
27
HRESULT WINAPI AmsiInitialize( const WCHAR *appname, HAMSICONTEXT *context )
28
{
29
FIXME( "%s, %p\n", debugstr_w(appname), context );
30
*context = (HAMSICONTEXT)0xdeadbeef;
31
return S_OK;
32
}
33
34
HRESULT WINAPI AmsiOpenSession( HAMSICONTEXT context, HAMSISESSION *session )
35
{
36
FIXME( "%p, %p\n", context, session );
37
*session = (HAMSISESSION)0xdeadbeef;
38
return S_OK;
39
}
40
41
void WINAPI AmsiCloseSession( HAMSICONTEXT context, HAMSISESSION session )
42
{
43
FIXME( "%p, %p\n", context, session );
44
}
45
46
HRESULT WINAPI AmsiScanBuffer( HAMSICONTEXT context, void *buffer, ULONG length, const WCHAR *name,
47
HAMSISESSION session, AMSI_RESULT *result )
48
{
49
FIXME( "%p, %p, %lu, %s, %p, %p\n", context, buffer, length, debugstr_w(name), session, result );
50
*result = AMSI_RESULT_NOT_DETECTED;
51
return S_OK;
52
}
53
54
HRESULT WINAPI AmsiScanString( HAMSICONTEXT context, const WCHAR *string, const WCHAR *name,
55
HAMSISESSION session, AMSI_RESULT *result )
56
{
57
FIXME( "%p, %s, %s, %p, %p\n", context, debugstr_w(string), debugstr_w(name), session, result );
58
*result = AMSI_RESULT_NOT_DETECTED;
59
return S_OK;
60
}
61
62
void WINAPI AmsiUninitialize( HAMSICONTEXT context )
63
{
64
FIXME( "%p\n", context );
65
}
66
67