FreeRDP
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
Data Structures | |
struct | QUOTA_LIMITS |
Macros | |
#define | LOGON32_LOGON_INTERACTIVE 2 |
#define | LOGON32_LOGON_NETWORK 3 |
#define | LOGON32_LOGON_BATCH 4 |
#define | LOGON32_LOGON_SERVICE 5 |
#define | LOGON32_LOGON_UNLOCK 7 |
#define | LOGON32_LOGON_NETWORK_CLEARTEXT 8 |
#define | LOGON32_LOGON_NEW_CREDENTIALS 9 |
#define | LOGON32_PROVIDER_DEFAULT 0 |
#define | LOGON32_PROVIDER_WINNT35 1 |
#define | LOGON32_PROVIDER_WINNT40 2 |
#define | LOGON32_PROVIDER_WINNT50 3 |
#define | LOGON32_PROVIDER_VIRTUAL 4 |
#define | LogonUser LogonUserA |
#define | LogonUserEx LogonUserExA |
#define | GetUserNameEx GetUserNameExA |
Typedefs | |
typedef struct QUOTA_LIMITS * | PQUOTA_LIMITS |
typedef enum EXTENDED_NAME_FORMAT * | PEXTENDED_NAME_FORMAT |
Enumerations | |
enum | EXTENDED_NAME_FORMAT { NameUnknown = 0 , NameFullyQualifiedDN = 1 , NameSamCompatible = 2 , NameDisplay = 3 , NameUniqueId = 6 , NameCanonical = 7 , NameUserPrincipal = 8 , NameCanonicalEx = 9 , NameServicePrincipal = 10 , NameDnsDomain = 12 } |
Functions | |
WINPR_API BOOL | LogonUserA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) |
WINPR_API BOOL | LogonUserW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) |
WINPR_API BOOL | LogonUserExA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits) |
WINPR_API BOOL | LogonUserExW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits) |
WINPR_API BOOL | GetUserNameExA (EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize) |
WINPR_API BOOL | GetUserNameExW (EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize) |
#define GetUserNameEx GetUserNameExA |
#define LOGON32_LOGON_BATCH 4 |
#define LOGON32_LOGON_INTERACTIVE 2 |
WinPR: Windows Portable Runtime Security Support Provider Interface
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#define LOGON32_LOGON_NETWORK 3 |
#define LOGON32_LOGON_NETWORK_CLEARTEXT 8 |
#define LOGON32_LOGON_NEW_CREDENTIALS 9 |
#define LOGON32_LOGON_SERVICE 5 |
#define LOGON32_LOGON_UNLOCK 7 |
#define LOGON32_PROVIDER_DEFAULT 0 |
#define LOGON32_PROVIDER_VIRTUAL 4 |
#define LOGON32_PROVIDER_WINNT35 1 |
#define LOGON32_PROVIDER_WINNT40 2 |
#define LOGON32_PROVIDER_WINNT50 3 |
#define LogonUser LogonUserA |
#define LogonUserEx LogonUserExA |
typedef enum EXTENDED_NAME_FORMAT * PEXTENDED_NAME_FORMAT |
typedef struct QUOTA_LIMITS * PQUOTA_LIMITS |
enum EXTENDED_NAME_FORMAT |
WINPR_API BOOL GetUserNameExA | ( | EXTENDED_NAME_FORMAT | NameFormat, |
LPSTR | lpNameBuffer, | ||
PULONG | nSize | ||
) |
WINPR_API BOOL GetUserNameExW | ( | EXTENDED_NAME_FORMAT | NameFormat, |
LPWSTR | lpNameBuffer, | ||
PULONG | nSize | ||
) |
WINPR_API BOOL LogonUserA | ( | LPCSTR | lpszUsername, |
LPCSTR | lpszDomain, | ||
LPCSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken | ||
) |
WINPR_API BOOL LogonUserExA | ( | LPCSTR | lpszUsername, |
LPCSTR | lpszDomain, | ||
LPCSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken, | ||
PSID * | ppLogonSid, | ||
PVOID * | ppProfileBuffer, | ||
LPDWORD | pdwProfileLength, | ||
PQUOTA_LIMITS | pQuotaLimits | ||
) |
WINPR_API BOOL LogonUserExW | ( | LPCWSTR | lpszUsername, |
LPCWSTR | lpszDomain, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken, | ||
PSID * | ppLogonSid, | ||
PVOID * | ppProfileBuffer, | ||
LPDWORD | pdwProfileLength, | ||
PQUOTA_LIMITS | pQuotaLimits | ||
) |
WINPR_API BOOL LogonUserW | ( | LPCWSTR | lpszUsername, |
LPCWSTR | lpszDomain, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken | ||
) |