2 * Copyright 2005 Ulrich Czekalla (For CodeWeavers)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_LMJOIN_H
20 #define __WINE_LMJOIN_H
26 #ifndef __WINCRYPT_H__
27 typedef const struct _CERT_CONTEXT
*PCCERT_CONTEXT
;
30 typedef enum tagNETSETUP_JOIN_STATUS
32 NetSetupUnknownStatus
= 0,
34 NetSetupWorkgroupName
,
36 } NETSETUP_JOIN_STATUS
, *PNETSETUP_JOIN_STATUS
;
38 typedef enum _DSREG_JOIN_TYPE
40 DSREG_UNKNOWN_JOIN
= 0,
41 DSREG_DEVICE_JOIN
= 1,
42 DSREG_WORKPLACE_JOIN
= 2
43 } DSREG_JOIN_TYPE
, *PDSREG_JOIN_TYPE
;
45 typedef struct _DSREG_USER_INFO
49 LPWSTR pszUserKeyName
;
50 } DSREG_USER_INFO
, *PDSREG_USER_INFO
;
52 typedef struct _DSREG_JOIN_INFO
54 DSREG_JOIN_TYPE joinType
;
55 PCCERT_CONTEXT pJoinCertificate
;
59 LPWSTR pszJoinUserEmail
;
60 LPWSTR pszTenantDisplayName
;
61 LPWSTR pszMdmEnrollmentUrl
;
62 LPWSTR pszMdmTermsOfUseUrl
;
63 LPWSTR pszMdmComplianceUrl
;
64 LPWSTR pszUserSettingSyncUrl
;
65 DSREG_USER_INFO
*pUserInfo
;
66 } DSREG_JOIN_INFO
, *PDSREG_JOIN_INFO
;
68 NET_API_STATUS NET_API_FUNCTION
NetGetJoinInformation(
71 PNETSETUP_JOIN_STATUS type
);
73 HRESULT NET_API_FUNCTION
NetGetAadJoinInformation(
75 PDSREG_JOIN_INFO
*ppJoinInfo
);