| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | Security.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains user security function declarations. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | |
| 17 | #include <xstring> |
| 18 | #include "wrl/client.h" |
| 19 | #include "wil/resource.h" |
| 20 | |
| 21 | namespace Security { |
| 22 | |
| 23 | /// <summary> |
| 24 | /// Initializes the job object for a instance. |
| 25 | /// </summary> |
| 26 | void InitializeInstanceJob(_In_ HANDLE jobHandle); |
| 27 | |
| 28 | /// <summary> |
| 29 | /// Returns true if the provided token is a member of the local administrators group |
| 30 | /// </summary> |
| 31 | bool IsTokenLocalAdministrator(_In_ HANDLE token); |
| 32 | } // namespace Security |