Ohh strange i missed that, i thought it's S_OK because the error stated "The operation completed successfully". So i need to find out why it is failling, do you have any idea about the reason?
Cheers snmed Am Dienstag, 21. Februar 2017 11:16:08 UTC+1 schrieb brainman: > > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
