From f7020c0d16baf2b960e7123e233e20c519f6a340 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 15 Dec 2018 21:46:30 -0600 Subject: Import implementation of UtilCA from old repo's WixCA/scasched/scaexec. (#3) --- src/ca/scasmbexec.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/ca/scasmbexec.h (limited to 'src/ca/scasmbexec.h') diff --git a/src/ca/scasmbexec.h b/src/ca/scasmbexec.h new file mode 100644 index 00000000..e3c8f8bb --- /dev/null +++ b/src/ca/scasmbexec.h @@ -0,0 +1,27 @@ +#pragma once +// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. + + +struct SCA_SMBP_USER_PERMS +{ + DWORD nPermissions; + ACCESS_MODE accessMode; + WCHAR* wzUser; + //Not adding Password because I can't find anywhere that it is used +}; + +struct SCA_SMBP // hungarian ssp +{ + WCHAR* wzKey; + WCHAR* wzDescription; + WCHAR* wzComponent; + WCHAR* wzDirectory; // full path of the dir to share to + + DWORD dwUserPermissionCount; //Count of SCA_SMBP_EX_USER_PERMS structures + SCA_SMBP_USER_PERMS* pUserPerms; + BOOL fUseIntegratedAuth; +}; + + +HRESULT ScaEnsureSmbExists(SCA_SMBP* pssp); +HRESULT ScaDropSmb(SCA_SMBP* pssp); -- cgit v1.2.3-55-g6feb