[pso] [tema2windows]

Anda Nicolae nicolae.anda at gmail.com
Sun Apr 18 16:26:45 EEST 2010


Salut,

Am o problema la tema pe windows. Am incercat sa obtin parametrul
modulului urmand indicatiile din link
(http://elf.cs.pub.ro/so2/wiki/_media/teme/tema2/reg_mod.c).

Din ce am observat in test.c line 112:
/*CHECK(RegSetValueExW(key, 	parameter, 0, REG_DWORD, &option,
sizeof(DWORD)));*/
DefaultType trebuie sa fie REG_DWORD, iar DefaultLenght =
sizeof(ULONG) (== sizeof(DWORD)).

Ca modificari fata de link-ul din enunt, am:

ULONG value, x = 5;
table[0].Name = L"";
table[0].EntryContext = &value;
table[0].DefaultType = REG_DWORD;
table[0].DefaultData = &x;
table[0].DefaultLength = sizeof(ULONG);

Dupa ce apelez
status = RtlQueryRegistryValues(RTL_REGISTRY_ABSOLUTE, path, table,
NULL, NULL);
verific daca status == STATUS_SUCCESS si apoi afisez value, insa mereu
este valoarea initiala, nicicum 1 (OPTION_RECEIVER_ONLY) sau 2
(OPTION_SENDER_ONLY).


Any ideas why this happens?

Multumesc,

Anda


More information about the pso mailing list