Spaces:
Runtime error
Runtime error
Download modules/dml/pdh/structures.py from bilegentile/test: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/bilegentile/test/resolve/main/modules/dml/pdh/structures.py
- Command line
-
hf download hf://spaces/bilegentile/test/modules/dml/pdh/structures.py
-
curl -L -o structures.py https://huggingface.co/spaces/bilegentile/test/resolve/main/modules/dml/pdh/structures.py
1.06 kB
| from ctypes import Union, c_double, c_longlong, Structure, POINTER | |
| from ctypes.wintypes import HANDLE, LONG, LPCSTR, LPCWSTR, DWORD, LPWSTR | |
| PDH_HQUERY = HANDLE | |
| PDH_HCOUNTER = HANDLE | |
| class PDH_FMT_COUNTERVALUE_U(Union): | |
| _fields_ = [ | |
| ("longValue", LONG), | |
| ("doubleValue", c_double), | |
| ("largeValue", c_longlong), | |
| ("AnsiStringValue", LPCSTR), | |
| ("WideStringValue", LPCWSTR), | |
| ] | |
| longValue: int | |
| doubleValue: float | |
| largeValue: int | |
| AnsiStringValue: LPCSTR | |
| WideStringValue: LPCWSTR | |
| class PDH_FMT_COUNTERVALUE(Structure): | |
| _anonymous_ = ("u",) | |
| _fields_ = [ | |
| ("CStatus", DWORD), | |
| ("u", PDH_FMT_COUNTERVALUE_U), | |
| ] | |
| CStatus: DWORD | |
| u: PDH_FMT_COUNTERVALUE_U | |
| PPDH_FMT_COUNTERVALUE = POINTER(PDH_FMT_COUNTERVALUE) | |
| class PDH_FMT_COUNTERVALUE_ITEM_W(Structure): | |
| _fields_ = [ | |
| ("szName", LPWSTR), | |
| ("FmtValue", PDH_FMT_COUNTERVALUE), | |
| ] | |
| szName: str | |
| FmtValue: PDH_FMT_COUNTERVALUE | |
| PPDH_FMT_COUNTERVALUE_ITEM_W = POINTER(PDH_FMT_COUNTERVALUE_ITEM_W) | |