After checking a bit with your test code, the error is 6 which means it's 
`ERROR_INVALID_HANDLE`

Reply via email to