24{
28
30 L"System\\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters",
31 0,
33 &hInfoKey);
35 {
36 ERR(
"RegOpenKeyExW() failed!\n");
37 return;
38 }
39
43 0,
44 &dwType,
49 else
51
55 0,
56 &dwType,
61 else
63
66 L"MaximumCollectionCount",
67 0,
68 &dwType,
73 else
75
79 0,
80 &dwType,
83 if ((dwError ==
ERROR_SUCCESS) && (dwValue >= 1) && (dwValue <= 65535))
85 else
87
91 0,
92 &dwType,
95 if ((dwError ==
ERROR_SUCCESS) && (dwValue >= 50) && (dwValue <= 65535))
97 else
99
103 0,
104 &dwType,
107 if ((dwError ==
ERROR_SUCCESS) && (dwValue >= 60) && (dwValue <= 65535))
109 else
111
112
116 0,
117 &dwType,
120 if ((dwError ==
ERROR_SUCCESS) && (dwValue >= 64) && (dwValue <= 4096))
122 else
124
128 0,
129 &dwType,
132 if ((dwError ==
ERROR_SUCCESS) && (dwValue >= 1) && (dwValue <= 256))
134 else
136
140 0,
141 &dwType,
146 else
148
152 0,
153 &dwType,
158 else
160
164 0,
165 &dwType,
170 else
172
176 0,
177 &dwType,
182 else
184
188 0,
189 &dwType,
194 else
196
200 0,
201 &dwType,
206 else
208
212 0,
213 &dwType,
218 else
220
224 0,
225 &dwType,
230 else
232
235 L"ReadAheadThroughput",
236 0,
237 &dwType,
242 else
244
248 0,
249 &dwType,
254 else
256
259 L"ServerAnnounceBuffers",
260 0,
261 &dwType,
266 else
268
271 L"NumIllegalDatagramEvents",
272 0,
273 &dwType,
278 else
280
283 L"IllegalDatagramResetTime",
284 0,
285 &dwType,
290 else
292
295 L"LogElectionPackets",
296 0,
297 &dwType,
302 else
304
307 L"UseOpportunisticLocking",
308 0,
309 &dwType,
314 else
316
320 0,
321 &dwType,
326 else
328
331 0,
332 &dwType,
337 else
339
342 0,
343 &dwType,
348 else
350
352 L"UseLockReadUnlock",
353 0,
354 &dwType,
359 else
361
364 0,
365 &dwType,
370 else
372
375 0,
376 &dwType,
381 else
383
386 0,
387 &dwType,
392 else
394
397 0,
398 &dwType,
403 else
405
408 0,
409 &dwType,
414 else
416
418 L"BufFilesDenyWrite",
419 0,
420 &dwType,
425 else
427
430 0,
431 &dwType,
436 else
438
440 L"ForceCoreCreateMode",
441 0,
442 &dwType,
447 else
449
451 L"Use512ByteMaxTransfer",
452 0,
453 &dwType,
458 else
460
462}
WKSTA_INFO_502 WkstaInfo502
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
DWORD wki502_dormant_file_limit
DWORD wki502_illegal_datagram_event_reset_frequency
BOOL wki502_use_opportunistic_locking
DWORD wki502_pipe_increment
BOOL wki502_use_raw_write
DWORD wki502_lock_maximum
DWORD wki502_cache_file_timeout
DWORD wki502_num_mailslot_buffers
BOOL wki502_force_core_create_mode
BOOL wki502_buf_named_pipes
BOOL wki502_utilize_nt_caching
BOOL wki502_use_close_behind
BOOL wki502_use_encryption
DWORD wki502_read_ahead_throughput
DWORD wki502_num_srv_announce_buffers
BOOL wki502_buf_read_only_files
DWORD wki502_siz_char_buf
BOOL wki502_use_unlock_behind
DWORD wki502_collection_time
BOOL wki502_use_512_byte_max_transfer
DWORD wki502_sess_timeout
BOOL wki502_log_election_packets
DWORD wki502_max_illegal_datagram_events
DWORD wki502_maximum_collection_count
DWORD wki502_lock_increment
BOOL wki502_use_write_raw_data
BOOL wki502_buf_files_deny_write
DWORD wki502_pipe_maximum
BOOL wki502_use_lock_read_unlock
#define HKEY_LOCAL_MACHINE