I have problems with using RegSetKeySecurity().
I'm doing following:
1) constructing security decriptor.
MyGroup KEY_READ | KEY_WRITE
2) call RegOpenKeyEx() with KEY_ALL_ACCESS. Key is
3) Setting only DACL with RegSetKeySecurity()
4) Closing key with RegCloseKey()
The are no errors are returned from these API calls.
But DACL of registry of key is not changed.
I can change DACL of key with regedt32 program.
The question is how to change DACL of registry
key in the way that works.
I'm using NT 4.0 SP3. MS Visual C++ 4.2.