blob: 246ed9ce0414f7deab087b50412a04ebbbd13667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "stdafx.h"
HNETLIBUSER g_hNetlib = nullptr;
void LoadNetlib()
{
NETLIBUSER nlu = {};
nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS;
nlu.szDescriptiveName.a = MODULENAME;
nlu.szSettingsModule = MODULENAME;
g_hNetlib = Netlib_RegisterUser(&nlu);
}
void UnloadNetlib()
{
if (g_hNetlib) {
Netlib_CloseHandle(g_hNetlib);
g_hNetlib = nullptr;
}
}
|