mirror of https://github.com/vxunderground/VX-API
29 lines
372 B
C++
29 lines
372 B
C++
#include "StringManipulation.h"
|
|
|
|
PCHAR CaplockStringA(_In_ PCHAR Ptr)
|
|
{
|
|
PCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
}
|
|
|
|
PWCHAR CaplockStringW(_In_ PWCHAR Ptr)
|
|
{
|
|
PWCHAR sv = Ptr;
|
|
while (*sv != '\0')
|
|
{
|
|
if (*sv >= 'a' && *sv <= 'z')
|
|
*sv = *sv - ('a' - 'A');
|
|
|
|
sv++;
|
|
}
|
|
return Ptr;
|
|
}
|
|
|