| OLD | NEW |
| 1 /* | 1 /* |
| 2 * $Id: security.h 435 2009-09-19 09:32:29Z jloden $ | 2 * $Id: security.h 1142 2011-10-05 18:45:49Z g.rodola $ |
| 3 * |
| 4 * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. |
| 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. |
| 3 * | 7 * |
| 4 * Security related functions for Windows platform (Set privileges such as | 8 * Security related functions for Windows platform (Set privileges such as |
| 5 * SeDebug), as well as security helper functions. | 9 * SeDebug), as well as security helper functions. |
| 6 */ | 10 */ |
| 7 | 11 |
| 8 #include <windows.h> | 12 #include <windows.h> |
| 9 | 13 |
| 10 | 14 |
| 11 BOOL SetPrivilege(HANDLE hToken, LPCTSTR Privilege, BOOL bEnablePrivilege); | 15 BOOL SetPrivilege(HANDLE hToken, LPCTSTR Privilege, BOOL bEnablePrivilege); |
| 12 int SetSeDebug(); | 16 int SetSeDebug(); |
| 13 int UnsetSeDebug(); | 17 int UnsetSeDebug(); |
| 14 HANDLE token_from_handle(HANDLE hProcess); | 18 HANDLE token_from_handle(HANDLE hProcess); |
| 15 int HasSystemPrivilege(HANDLE hProcess); | 19 int HasSystemPrivilege(HANDLE hProcess); |
| 16 | 20 |
| OLD | NEW |