|
#include <fcntl.h>
#include <wsreg.h>
int main(int argc, char **argv)
{
int result;
if (wsreg_initialize(WSREG_INIT_NORMAL, NULL)) {
printf("conversion recommended, sufficient access denied\n");
}
if (wsreg_can_access_registry(O_RDONLY)) {
printf("registry read access granted\n");
} else {
printf("registry read access denied\n");
}
if (wsreg_can_access_registry(O_RDWR)) {
printf("registry read/write access granted\n");
} else {
printf("registry read/write access denied\n");
}
}
|