> For the complete documentation index, see [llms.txt](https://malwaresourcecode.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malwaresourcecode.com/home/string-hashing/loselose.md).

# LoseLose

```cpp
#include <Windows.h>

UINT HashStringLoseLoseW(PWCHAR String)
{
    UINT Hash = 0;
    INT CharacterByte = 0;

    while ((CharacterByte = *String++))
        Hash += CharacterByte;

    return Hash;
}

INT main(VOID)
{
    WCHAR StringHashExample[] = L"Hash This String";
    UINT Hash = 0;

    Hash = HashStringLoseLoseW(StringHashExample);

    return ERROR_SUCCESS;
}
```
