netkvm-prot: add system directory getter class

Signed-off-by: Yuri Benditovich <[email protected]>
This commit is contained in:
Yuri Benditovich authored and Yan Vugenfirer committed 2024-04-05 16:47:02 +03:00
1 parent 3ae4694b64
commit 1be84c81fe
1 file changed
+17
@@ -777,6 +777,23 @@ public:
}
};
class CSystemDirectory : public CString
{
public:
CSystemDirectory()
{
WCHAR* p = new WCHAR[MAX_PATH];
if (p)
{
if (GetSystemDirectory(p, MAX_PATH))
{
Append(p);
Append(L"\\");
}
delete[] p;
}
}
};
class CProtocolServiceImplementation :
public CServiceImplementation,
public CThreadOwner,