According to the doco 
https://msdn.microsoft.com/en-us/library/windows/desktop/dn889862(v=vs.85).aspx
```
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an 
HRESULT error code.
```

Your call returns 2147942487, and it is not S_OK. It must be the error 
code. You need to find out what that error means. 

Alex

PS: You should ignore r2 and err returned from ainit.Call. r2 is never set 
on windows, and err will contain value of 
GetLastError at the time when ainit.Call completes. But (accordng to the 
doco) AmsiInitialize does not set GetLastError value.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to