You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uintptr(unsafe.Pointer(&_RM_PROCESS_INFO)),
This is wrong, _RM_PROCESS_INFO is a slice not a array.
A slice is something like a managed array (see https://blog.golang.org/slices-intro), so you need to do &(_RM_PROCESS_INFO[0])
Yes, we only really use the github issue tracker to track confirmed bugs in Go (or proposals to change the language). If this crash is caused by misuses of unsafe and cgo (I wouldn't be surprised, they're really hard to use correctly for a beginner), is not something that qualifies as a Go bug.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?windows AMD64
go env
OutputWhat did you do?
This is the code for reproduce:
https://play.golang.org/p/XDkeaALSdaY
Here's the output:
What did you expect to see?
What did you see instead?
I'm a novice programmer, and I'm trying to write this function in golang, and I've run into some problems
Unable to parse RmGetList return array
reference
C# Code https://docs.microsoft.com/en-us/archive/msdn-magazine/2007/april/net-matters-restart-manager-and-generic-method-compilation
C++ Code https://www.fatalerrors.org/a/windows-restartmaneger-restart-manager.html
The text was updated successfully, but these errors were encountered: