AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
security.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 
4 #ifndef INCLUDED_OSL_SECURITY_H
5 #define INCLUDED_OSL_SECURITY_H
6 
7 #include "sal/config.h"
8 
9 #include "rtl/ustring.h"
10 #include "sal/saldllapi.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef enum {
23 
29 typedef void* oslSecurity;
30 
37 SAL_DLLPUBLIC oslSecurity SAL_CALL osl_getCurrentSecurity(void);
38 
51  rtl_uString *strUserName,
52  rtl_uString *strPasswd,
53  oslSecurity *pSecurity
54  );
55 
69  rtl_uString *strUserName,
70  rtl_uString *strPasswd,
71  rtl_uString *strFileServer,
72  oslSecurity *pSecurity
73  );
74 
80  oslSecurity Security);
81 
87  oslSecurity Security);
88 
95  oslSecurity Security, rtl_uString **strIdent);
96 
103  oslSecurity Security, rtl_uString **strName);
104 
113  oslSecurity Security, rtl_uString **strName);
114 
121  oslSecurity Security, rtl_uString **strDirectory);
122 
129  oslSecurity Security, rtl_uString **strDirectory);
130 
131 
139  oslSecurity Security);
140 
141 
148  oslSecurity Security);
149 
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 #endif // INCLUDED_OSL_SECURITY_H
155 
156 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition: types.h:18
SAL_DLLPUBLIC sal_Bool osl_isAdministrator(oslSecurity Security)
Query if the user who is denotes by this security has administrator rights.
SAL_DLLPUBLIC sal_Bool osl_getHomeDir(oslSecurity Security, rtl_uString **strDirectory)
Get the home directory of the user of this security handle.
SAL_DLLPUBLIC oslSecurityError osl_loginUserOnFileServer(rtl_uString *strUserName, rtl_uString *strPasswd, rtl_uString *strFileServer, oslSecurity *pSecurity)
Create a security handle for the denoted user.
SAL_DLLPUBLIC sal_Bool osl_getUserIdent(oslSecurity Security, rtl_uString **strIdent)
Get the login ident for the user of this security handle.
SAL_DLLPUBLIC oslSecurityError osl_loginUser(rtl_uString *strUserName, rtl_uString *strPasswd, oslSecurity *pSecurity)
Deprecated API Create a security handle for the denoted user.
Definition: security.h:21
oslSecurityError
Definition: security.h:16
Definition: security.h:18
SAL_DLLPUBLIC sal_Bool osl_getShortUserName(oslSecurity Security, rtl_uString **strName)
Get the login name for the user of this security handle, excluding the domain name on Windows...
SAL_DLLPUBLIC sal_Bool osl_getConfigDir(oslSecurity Security, rtl_uString **strDirectory)
Get the directory for configuration data of the user of this security handle.
void * oslSecurity
Process handle.
Definition: security.h:29
SAL_DLLPUBLIC void osl_freeSecurityHandle(oslSecurity Security)
Free the security handle, created by osl_loginUser or osl_getCurrentSecurity.
Definition: security.h:17
#define SAL_MAX_ENUM
Definition: types.h:185
Definition: security.h:20
SAL_DLLPUBLIC oslSecurity osl_getCurrentSecurity(void)
Create a security handle for the current user.
SAL_DLLPUBLIC sal_Bool osl_getUserName(oslSecurity Security, rtl_uString **strName)
Get the login name for the user of this security handle.
SAL_DLLPUBLIC void osl_unloadUserProfile(oslSecurity Security)
Unload a User Profile Implemented just for Windows.
SAL_DLLPUBLIC sal_Bool osl_loadUserProfile(oslSecurity Security)
Load Profile of the User Implemented just for Windows.
Definition: security.h:19
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14