Go语言中文网 为您找到相关结果 4

使用 syscall.OpenProcess 时报错 The parameter is incorrect.

有没有高人帮忙看看?下面是全部源码(从网上抄的),我是想获取当前内存使用量。 ```go package main /* #include #include void CountPrivate(PSAPI_WORKING_SET_INFORMATION* workSetInfo,int* count) { int workSetPrivate = 0; for (ULONG_PTR i = 0; i < workSetInfo->NumberOfEntries; ++i) { if(!workSetInfo->WorkingSetInfo[i].Shared) // 如果不是共享...阅读全文