代码实例:
package main
/*
#include <windows.h>
int workAreaHeight() {
RECT rt;
SystemParametersInfo(SPI_GETWORKAREA, 0, (PVOID)&rt, 0);
return rt.bottom;
}
*/
import "C"
func main() {
waheight := int(C.workAreaHeight())
println(waheight)
}
网友评论