Hi,

the below patch adds the missing Net...ServiceAccount functions to
lmaccess.h.  The prototypes and the flag value are based on the MSDN
documentation.

Ok to apply?


Thanks,
Corinna


        * lmaccess.h (SERVICE_ACCOUNT_FLAG_LINK_TO_HOST_ONLY): Define.
        (NetAddServiceAccount): Add prototype.
        (NetRemoveServiceAccount): Ditto.
        (NetIsServiceAccount): Ditto.
        (NetEnumerateServiceAccounts): Ditto.


Index: include/lmaccess.h
===================================================================
--- include/lmaccess.h  (revision 5627)
+++ include/lmaccess.h  (working copy)
@@ -881,6 +881,13 @@
   MSA_INFO_STATE State;
 } MSA_INFO_0, *PMSA_INFO_0;
 
+#define SERVICE_ACCOUNT_FLAG_LINK_TO_HOST_ONLY 0x00000001
+
+  NTSTATUS WINAPI NetAddServiceAccount (LPWSTR ServerName,LPWSTR 
AccountName,LPWSTR Reserved,DWORD Flags);
+  NTSTATUS WINAPI NetRemoveServiceAccount (LPWSTR ServerName,LPWSTR 
AccountName,DWORD Flags);
+  NTSTATUS WINAPI NetIsServiceAccount (LPWSTR ServerName,LPWSTR 
AccountName,BOOL *IsService);
+  NTSTATUS WINAPI NetEnumerateServiceAccounts (LPWSTR ServerName,DWORD 
Flags,DWORD *AccountsCount, PZPWSTR *Accounts);
+
 #endif /*(_WIN32_WINNT >= 0x0601)*/
 
 #ifdef __cplusplus

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to