Merge branch 'release-2.140.101'
[feisty_meow.git] / nucleus / library / security / win32_security.h
1 #ifndef WIN32_SECURITY_CLASS
2 #define WIN32_SECURITY_CLASS
3
4 /*****************************************************************************\
5 *                                                                             *
6 *  Name   : win32_security                                                    *
7 *  Author : Sue Richeson                                                      *
8 *  Author : Chris Koeritz                                                     *
9 *                                                                             *
10 *  Purpose:                                                                   *
11 *                                                                             *
12 *    Some helper functions for security calls.  These are lower level than    *
13 *  nt_security and only require bare OS calls.                                *
14 *                                                                             *
15 *******************************************************************************
16 * Copyright (c) 2000 By Author.  This program is free software; you can       *
17 * redistribute it and/or modify it under the terms of the GNU General Public  *
18 * License as published by the Free Software Foundation; either version 2 of   *
19 * the License or (at your option) any later version.  This is online at:      *
20 *     http://www.fsf.org/copyleft/gpl.html                                    *
21 * Please send any updates to: fred@gruntose.com                               *
22 \*****************************************************************************/
23
24 #ifdef __WIN32__
25
26
27
28 // forward.
29 #include <basis/astring.h>
30
31 class win32_security
32 {
33 public:
34   static bool GetUserAndDomainName(astring &UserName, astring &DomainName);
35     //!< returns user account and windows domain of logged in user.
36
37   static astring full_user();
38     //!< returns user and domain combined into a parsable form: user[domain]
39 };
40
41 #endif // windows.
42
43 #endif // outer guard.
44