ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

winsafer.h
Go to the documentation of this file.
00001 /*
00002  * Winsafer definitions
00003  *
00004  * Copyright (C) 2009 Nikolay Sivov
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00019  */
00020 
00021 #ifndef __WINE_WINSAFER_H
00022 #define __WINE_WINSAFER_H
00023 
00024 #include <guiddef.h>
00025 #include <wincrypt.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 DECLARE_HANDLE(SAFER_LEVEL_HANDLE);
00032 
00033 #define SAFER_SCOPEID_MACHINE  1
00034 #define SAFER_SCOPEID_USER     2
00035 
00036 #define SAFER_LEVELID_DISALLOWED   0x00000
00037 #define SAFER_LEVELID_UNTRUSTED    0x01000
00038 #define SAFER_LEVELID_CONSTRAINED  0x10000
00039 #define SAFER_LEVELID_NORMALUSER   0x20000
00040 #define SAFER_LEVELID_FULLYTRUSTED 0x40000
00041 
00042 #define SAFER_LEVEL_OPEN   1
00043 
00044 WINADVAPI BOOL WINAPI SaferCreateLevel(DWORD,DWORD,DWORD,SAFER_LEVEL_HANDLE*,LPVOID);
00045 
00046 typedef enum _SAFER_POLICY_INFO_CLASS {
00047     SaferPolicyLevelList = 1,
00048     SaferPolicyEnableTransparentEnforcement,
00049     SaferPolicyDefaultLevel,
00050     SaferPolicyEvaluateUserScope,
00051     SaferPolicyScopeFlags
00052 } SAFER_POLICY_INFO_CLASS;
00053 
00054 WINADVAPI BOOL WINAPI SaferGetPolicyInformation(DWORD,SAFER_POLICY_INFO_CLASS,DWORD,PVOID,PDWORD,LPVOID);
00055 
00056 #ifdef __cplusplus
00057 }
00058 #endif
00059 
00060 #endif /* __WINE_WINSAFER_H */

Generated on Sun May 27 2012 04:32:47 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.