425{
429 DWORD RegDataType, RegDataSize;
430 BOOL GlobalFifoEnable;
432 DWORD RegDisposition;
439 DWORD cchMaxValueName;
440 DWORD cbMaxValueData;
441 DWORD cbSecurityDescriptor;
444
445 dprintf (
"RegOpenKeyExW HKLM\\System\\Setup: ");
448 0,
450 &hKey1);
451 dprintf(
"\t\tdwError =%x\n",dwError);
453 {
455 cchClass=260;
457 , szClass, &cchClass,
NULL, &cSubKeys
458 , &cchMaxSubkey, &cchMaxClass, &cValues, &cchMaxValueName
459 , &cbMaxValueData, &cbSecurityDescriptor, &ftLastWriteTime);
460 dprintf (
"\t\t\t\tdwError %x\n", dwError);
462 dprintf (
"\tnb of subkeys=%d,last write : %d/%d/%d %d:%02.2d'%02.2d''%03.3d\n",cSubKeys
470 );
471 }
472
473
476 L"System\\ControlSet001\\Services\\Serial",
477 0,
480 dprintf (
"\t\t\t\t\tdwError %x\n", dwError);
481 RegDataSize = sizeof(GlobalFifoEnable);
483 {
484 dprintf (
"RegQueryValueExW: ");
488 &RegDataType,
489 (
PBYTE)&GlobalFifoEnable,
490 &RegDataSize);
491 dprintf(
"\t\t\t\tdwError =%x\n",dwError);
492 if (dwError == 0)
493 {
494 dprintf(
"\tValue:DT=%d, DS=%d, Value=%d\n"
495 ,RegDataType
496 ,RegDataSize
497 ,GlobalFifoEnable);
498 }
499 }
502 L"Parameters\\Serial001",
503 0,
505 0,
508 &hPortKey,
509 &RegDisposition
510 );
511 dprintf (
"\t\t\t\tdwError %x\n", dwError);
512
515 L"Software\\test4reactos\\test",
516 0,
522 &dwDisposition);
523
524 dprintf (
"\t\t\t\tdwError %x ", dwError);
525 dprintf (
"dwDisposition %x\n", dwDisposition);
527 {
531 0,
533 (
BYTE*)
L"TestString",
534 20);
535
536 dprintf (
"\t\t\t\tdwError %x\n", dwError);
539 dprintf (
"\t\t\t\t\tdwError %x\n", dwError);
540 }
542
544
548 0,
554 &dwDisposition);
555
556 dprintf (
"\t\t\t\tdwError %x ", dwError);
557 dprintf (
"dwDisposition %x\n", dwDisposition);
558
559
561 {
563 cchClass=260;
565 , szClass, &cchClass,
NULL, &cSubKeys
566 , &cchMaxSubkey, &cchMaxClass, &cValues, &cchMaxValueName
567 , &cbMaxValueData, &cbSecurityDescriptor, &ftLastWriteTime);
568 dprintf (
"\t\t\t\tdwError %x\n", dwError);
570 dprintf (
"\tnb of subkeys=%d,last write : %d/%d/%d %d:%02.2d'%02.2d''%03.3d\n",cSubKeys
578 );
581 dprintf (
"\t\t\t\t\tdwError %x\n", dwError);
582 }
584}
#define RegCloseKey(hKey)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryInfoKeyW(HKEY hKey, LPWSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
#define HKEY_LOCAL_MACHINE