codekingpro/portable-devtools
115k
1/*2 * restricted_token.h3 * helper routine to ensure restricted token on Windows4 *5 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group6 * Portions Copyright (c) 1994, Regents of the University of California7 *8 * src/include/common/restricted_token.h9 */10#ifndef COMMON_RESTRICTED_TOKEN_H11#define COMMON_RESTRICTED_TOKEN_H12 13/*14 * On Windows make sure that we are running with a restricted token,15 * On other platforms do nothing.16 */17void get_restricted_token(void);18 19#ifdef WIN3220/* Create a restricted token and execute the specified process with it. */21HANDLE CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo);22#endif23 24#endif /* COMMON_RESTRICTED_TOKEN_H */25 