UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 00029 #ifndef _OSL_SECURITY_H_ 00030 #define _OSL_SECURITY_H_ 00031 00032 #include <rtl/ustring.h> 00033 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 typedef enum { 00039 osl_Security_E_None, 00040 osl_Security_E_UserUnknown, 00041 osl_Security_E_WrongPassword, 00042 osl_Security_E_Unknown, 00043 osl_Security_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM 00044 } oslSecurityError; 00045 00051 typedef void* oslSecurity; 00052 00059 SAL_DLLPUBLIC oslSecurity SAL_CALL osl_getCurrentSecurity(void); 00060 00072 SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUser( 00073 rtl_uString *strUserName, 00074 rtl_uString *strPasswd, 00075 oslSecurity *pSecurity 00076 ); 00077 00090 SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUserOnFileServer( 00091 rtl_uString *strUserName, 00092 rtl_uString *strPasswd, 00093 rtl_uString *strFileServer, 00094 oslSecurity *pSecurity 00095 ); 00096 00101 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isAdministrator( 00102 oslSecurity Security); 00103 00108 SAL_DLLPUBLIC void SAL_CALL osl_freeSecurityHandle( 00109 oslSecurity Security); 00110 00116 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserIdent( 00117 oslSecurity Security, rtl_uString **strIdent); 00118 00124 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserName( 00125 oslSecurity Security, rtl_uString **strName); 00126 00132 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getHomeDir( 00133 oslSecurity Security, rtl_uString **strDirectory); 00134 00140 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getConfigDir( 00141 oslSecurity Security, rtl_uString **strDirectory); 00142 00143 00150 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_loadUserProfile( 00151 oslSecurity Security); 00152 00153 00160 SAL_DLLPUBLIC void SAL_CALL osl_unloadUserProfile( 00161 oslSecurity Security); 00162 00163 #ifdef __cplusplus 00164 } 00165 #endif 00166 00167 #endif /* _OSL_SECURITY_H_ */ 00168 00169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */