a1ive / nwinfo Goto Github PK
View Code? Open in Web Editor NEWHardware information utility for Windows
License: The Unlicense
Hardware information utility for Windows
License: The Unlicense
typedef struct _IP_ADAPTER_ADDRESSES_XP {
union {
ULONGLONG Alignment;
struct {
ULONG Length;
DWORD IfIndex;
};
};
struct _IP_ADAPTER_ADDRESSES_XP *Next;
PCHAR AdapterName;
PIP_ADAPTER_UNICAST_ADDRESS_XP FirstUnicastAddress;
PIP_ADAPTER_ANYCAST_ADDRESS_XP FirstAnycastAddress;
PIP_ADAPTER_MULTICAST_ADDRESS_XP FirstMulticastAddress;
PIP_ADAPTER_DNS_SERVER_ADDRESS_XP FirstDnsServerAddress;
PWCHAR DnsSuffix;
PWCHAR Description;
PWCHAR FriendlyName;
BYTE PhysicalAddress[MAX_ADAPTER_ADDRESS_LENGTH];
DWORD PhysicalAddressLength;
DWORD Flags;
DWORD Mtu;
DWORD IfType;
IF_OPER_STATUS OperStatus;
DWORD Ipv6IfIndex;
DWORD ZoneIndices[16];
PIP_ADAPTER_PREFIX_XP FirstPrefix;
} IP_ADAPTER_ADDRESSES_XP,
*PIP_ADAPTER_ADDRESSES_XP;
https://learn.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getperformanceinfo
https://learn.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-enumpagefilesw
#define PSAPI_VERSION 1
#include <psapi.h>
#pragma comment(lib, "psapi.lib")
在您发布初版之后,我在笔记本尝试之后,输出的Json文件的Disk-Size键为string ,例如 114.25GB
在通过其他程序调用时,返回的Disk-Size键为int ,例如1125416611
请问这种不同是什么原因导致的?
I know this is not an appropriate way, but I couldn't find any info to contact you.
I want to compile your Qemuboottester in English version.
Could you help me and show the way to do it please. I'm not sure how can I change the language.
I'm so sorry master A1ive; Please I need help at 2 points in the ventoy_browser.c code of ventoyun, can you help me please?
I edited this part as follows
{
browser_ssprintf(mbuf, "menuentry \"%s\" --class=vtoydisk {\n"
" set browser_dir=0x%lx \n"
" vt_browser_dir %s,%d $browser_dir /\n"
"}\n",
title, disk->name, partition->number + 1, (ulong)fs);
}
{
grub_snprintf(node->menuentry, sizeof(node->menuentry),
"menuentry \"%-10s [%s]\" --class=vtoydir {\n"
" set browser_dir=0x%lx \n"
" vt_browser_dir %s $browser_dir \"%s/%s\"\n"
"}\n",
"DIR", filename, g_menu_device, (ulong)g_menu_fs, g_menu_path_buf, filename);
}
else
{
grub_snprintf(node->menuentry, sizeof(node->menuentry),
"menuentry \"[%s]\" --class=vtoydir {\n"
" set browser_dir=0x%lx \n"
" vt_browser_dir %s $browser_dir \"%s/%s\"\n"
"}\n",
filename, g_menu_device, (ulong)g_menu_fs, g_menu_path_buf, filename);
}
Is this change suitable for the code structure? If not, can you write the correct one? Please, I'm sorry I couldn't find any other way to contact you.
Can standard IO be implemented?
For example, JSON or XML maybe?
Huge thanks for your job
1.U盘或其它设备被占用、拔出后,还不能实时从设备列表中移除原设备信息显示
2.另外需求增加鼠标悬停某项目时可以显示详细信息
https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw
https://www.gaijin.at/en/infos/windows-version-numbers
Windows XP
NT5.1
Windows XP Professional x64 Edition
NT5.2, wProductType == VER_NT_WORKSTATION
Windows Server 2003
NT5.2 wProductType != VER_NT_WORKSTATION
Windows Server 2003 R2
NT5.2 ???
Windows Server, version 1809
NT10.0.17763, End of support: 2020-11-10
Windows Server 2019
NT10.0.17763, End of support: 2029-01-09
bcdedit.exe
使用的是 ZwQueryBootOptions
ZwSetBootOptions
等。
https://github.com/KernelPanic-OpenSource/Win2K3_NT_base
HKLM\SYSTEM\CurrentControlSet\Services\cdrom\Enum\Count
Hi A1ive...
First thanks for development of nwinfo tool that also works great in winpe environment.
Can you please add an option to take a disk number as a parameter in --disk command ? So we can display output of only desired Disk number if required in CLI usage.
nwinfo_x64.exe --human --disk=1 --no-smart
This command will only display information of Disk 1 as output. So we can get variables as per requirement easily.
Thanks & Regards....
SetMonitorBrightness
https://learn.microsoft.com/en-us/windows/win32/api/highlevelmonitorconfigurationapi/nf-highlevelmonitorconfigurationapi-setmonitorbrightness
SetDeviceGammaRamp
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-setdevicegammaramp
IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS
https://learn.microsoft.com/en-us/windows/win32/power/ioctl-video-set-display-brightness
https://stackoverflow.com/questions/39262619/setting-brightness-on-windows-10-using-c-winapi
https://gist.github.com/pavel-a/dd3a4320176e69a0f6c4b4871e69e56b
https://www.nirsoft.net/vc/change_screen_brightness.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.