Repository: retep998/winapi-rs (language: rust)

Issue:
The PDH_MAX_COUNTER_PATH constant is missing from the pdh module.
This constant is defined in the `pdh.h` header file along with a number of others that are useful for safely creating buffers when using the PDH api.

```
#if (_WIN32_WINDOWS >= 0x0502 || _WIN32_WINNT >= 0x0502 || (defined(NTDDI_VERSION) && NTDDI_VERSION >= NTDDI_WIN2003))
#define PDH_MAX_COUNTER_NAME    1024  // Maximum counter name length.
#define PDH_MAX_INSTANCE_NAME   1024  // Maximum counter instance name length.
#define PDH_MAX_COUNTER_PATH    2048  // Maximum full counter path length.
#define PDH_MAX_DATASOURCE_PATH 1024  // MAximum full counter log name length.
#endif
```


Discussion / hints:

Fix patch:
diff --git a/src/um/pdh.rs b/src/um/pdh.rs
index 9ef4ee74a..7a93855de 100644
--- a/src/um/pdh.rs
+++ b/src/um/pdh.rs
@@ -10,6 +10,10 @@ use shared::guiddef::GUID;
 use shared::minwindef::{BOOL, DWORD, FILETIME, LPDWORD, UCHAR};
 use shared::windef::HWND;
 use um::winnt::{BOOLEAN, HANDLE, LONG, LONGLONG, LPCSTR, LPCWSTR, LPSTR, LPWSTR};
+pub const PDH_MAX_COUNTER_NAME: usize = 1024;
+pub const PDH_MAX_INSTANCE_NAME: usize = 1024;
+pub const PDH_MAX_COUNTER_PATH: usize = 2048;
+pub const PDH_MAX_DATASOURCE_PATH: usize = 1024;
 pub const PDH_FMT_RAW: DWORD = 0x00000010;
 pub const PDH_FMT_ANSI: DWORD = 0x00000020;
 pub const PDH_FMT_UNICODE: DWORD = 0x00000040;


Test patch: