mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
26 lines
328 B
C++
26 lines
328 B
C++
PCHAR CaplockStringA(PCHAR Ptr)
|
|
{
|
|
PCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
}
|
|
|
|
PWCHAR CaplockStringW(PWCHAR Ptr)
|
|
{
|
|
PWCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
}
|