Go to the source code of this file.
◆ log_error()
◆ pgwin32_is_admin()
Definition at line 49 of file win32security.c.
50{
56
61 {
62 log_error(
_(
"could not get SID for Administrators group: error code %lu\n"),
65 }
66
71 {
72 log_error(
_(
"could not get SID for PowerUsers group: error code %lu\n"),
75 }
76
79 {
80 log_error(
_(
"could not check access token membership: error code %lu\n"),
83 }
84
87
89 return 1;
90 else
91 return 0;
92}
#define log_error(errcodefn,...)
References _, fb(), and log_error.
Referenced by check_root().
◆ pgwin32_is_service()
Definition at line 120 of file win32security.c.
121{
128
129
132
133
136 {
139 }
140
141
145 {
146 fprintf(
stderr,
"could not get SID for local system account\n");
147 return -1;
148 }
149
151 {
152 fprintf(
stderr,
"could not check access token membership: error code %lu\n",
155 return -1;
156 }
158
160 {
163 }
164
165
169 {
170 fprintf(
stderr,
"could not get SID for service group: error code %lu\n",
172 return -1;
173 }
174
176 {
177 fprintf(
stderr,
"could not check access token membership: error code %lu\n",
180 return -1;
181 }
183
186 else
188
190}
#define fprintf(file, fmt, msg)
References fb(), and fprintf.
Referenced by send_message_to_server_log(), vwrite_stderr(), and write_stderr().