[clamav-users] 回复: Cannot get 'fd' when using API 'cl_scanfile'

G.W. Haywood clamav at jubileegroup.co.uk
Wed Sep 9 07:26:37 UTC 2020


Hi there,

On Wed, 9 Sep 2020, Gao Hui via clamav-users wrote:

> I am trying to use API to scan a file with the file's absolute file
> path under Windows system.
> ...
> I use the GetLastError and get error code 5. But I still don't
> understand it why I don't have the authotity. Even I can't open a
> file in D:\\ disk.  Btw, I write golang and call libclamav to scan
> the file. Is there any thing I need to pay attention?

I don't really do Windows, so even if you'd told us which versions of
everything you are using it wouldn't have helped me.  But I do have
some experience of fixing things.

In a case like this I'd probably look for something which uses the API
calls to the library successfully, and run that through the same debug
processes which you are using for the code which fails.  Comparing the
code which succeeds with the code which fails should shed some light.

You probably have something which succeeds in the ClamAV distribution.

-- 

73,
Ged.



More information about the clamav-users mailing list