Some advapi32 stubs

Mike McCormack mike at codeweavers.com
Tue Aug 12 00:06:35 CDT 2003


ChangeLog:
* stubs for advapi32 functions InitiateSystemShutdownEx, SetEntriesInAcl 
and SetNamedSecurityInfo

-------------- next part --------------
Index: dlls/advapi32/advapi.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/advapi.c,v
retrieving revision 1.21
diff -u -r1.21 advapi.c
--- dlls/advapi32/advapi.c	18 Mar 2003 18:35:50 -0000	1.21
+++ dlls/advapi32/advapi.c	12 Aug 2003 04:47:32 -0000
@@ -143,3 +143,30 @@
     TRACE("stub %s (harmless)\n", debugstr_w(lpMachineName));
     return TRUE;
 }
+
+/******************************************************************************
+ * InitiateSystemShutdownExA [ADVAPI32.@]
+ */
+BOOL WINAPI InitiateSystemShutdownExA( LPSTR lpMachineName, LPSTR lpMessage,
+         DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
+         DWORD dwReason)
+{
+     FIXME("%s %s %ld %d %d %ld\n", debugstr_a(lpMachineName),
+            debugstr_a(lpMessage), dwTimeout, bForceAppsClosed,
+            bRebootAfterShutdown, dwReason);
+     return TRUE;
+} 
+
+/******************************************************************************
+ * InitiateSystemShutdownExA [ADVAPI32.@]
+ */
+BOOL WINAPI InitiateSystemShutdownExW( LPWSTR lpMachineName, LPWSTR lpMessage,
+         DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
+         DWORD dwReason)
+{
+     FIXME("%s %s %ld %d %d %ld\n", debugstr_w(lpMachineName),
+            debugstr_w(lpMessage), dwTimeout, bForceAppsClosed,
+            bRebootAfterShutdown, dwReason);
+     return TRUE;
+} 
+
Index: dlls/advapi32/advapi32.spec
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/advapi32.spec,v
retrieving revision 1.39
diff -u -r1.39 advapi32.spec
--- dlls/advapi32/advapi32.spec	11 Aug 2003 18:41:28 -0000	1.39
+++ dlls/advapi32/advapi32.spec	12 Aug 2003 04:47:33 -0000
@@ -134,6 +134,8 @@
 @ stdcall InitializeSid(ptr ptr long)
 @ stub InitiateSystemShutdownA
 @ stub InitiateSystemShutdownW
+@ stdcall InitiateSystemShutdownExA(wstr wstr long long long long)
+@ stdcall InitiateSystemShutdownExW(wstr wstr long long long long)
 @ stub InstallApplication
 @ stub IsProcessRestricted
 @ stdcall IsTextUnicode(ptr long ptr) ntdll.RtlIsTextUnicode
@@ -245,9 +247,13 @@
 @ stdcall ReportEventW (long long long long ptr long long wstr ptr)
 @ stdcall RevertToSelf()
 @ stub SetAclInformation
+@ stdcall SetEntriesInAclA(long ptr ptr ptr)
+@ stdcall SetEntriesInAclW(long ptr ptr ptr)
 @ stdcall SetFileSecurityA(str long ptr )
 @ stdcall SetFileSecurityW(wstr long ptr)
 @ stdcall SetKernelObjectSecurity(long long ptr)
+@ stdcall SetNamedSecurityInfoA(str long ptr ptr ptr ptr ptr)
+@ stdcall SetNamedSecurityInfoW(wstr long ptr ptr ptr ptr ptr)
 @ stub SetPrivateObjectSecurity
 @ stub SetSecurityDescriptorControl #(ptr long long)
 @ stdcall SetSecurityDescriptorDacl(ptr long ptr long)
@@ -338,5 +344,7 @@
 @ stdcall CheckTokenMembership(long ptr ptr)
 @ stub WmiQuerySingleInstanceW
 @ stub WmiSetSingleInstanceW
+
 @ stub WmiOpenBlock
 @ stub WmiCloseBlock
+
Index: dlls/advapi32/security.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/security.c,v
retrieving revision 1.57
diff -u -r1.57 security.c
--- dlls/advapi32/security.c	11 Aug 2003 18:41:28 -0000	1.57
+++ dlls/advapi32/security.c	12 Aug 2003 04:47:33 -0000
@@ -1350,3 +1350,48 @@
 {
     FIXME("%p %p\n", pTrustee, pSid);
 }
+
+/******************************************************************************
+ * SetEntriesInAclA [ADVAPI32.@]
+ */
+DWORD WINAPI SetEntriesInAclA( ULONG count, PEXPLICIT_ACCESSA pEntries,
+                               PACL OldAcl, PACL* NewAcl )
+{
+    FIXME("%ld %p %p %p\n",count,pEntries,OldAcl,NewAcl);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/******************************************************************************
+ * SetEntriesInAclW [ADVAPI32.@]
+ */
+DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
+                               PACL OldAcl, PACL* NewAcl )
+{
+    FIXME("%ld %p %p %p\n",count,pEntries,OldAcl,NewAcl);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/******************************************************************************
+ * SetNamedSecurityInfoA [ADVAPI32.@]
+ */
+DWORD WINAPI SetNamedSecurityInfoA(LPSTR pObjectName,
+        SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo,
+        PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl)
+{
+    FIXME("%s %d %ld %p %p %p %p\n", debugstr_a(pObjectName), ObjectType,
+           SecurityInfo, psidOwner, psidGroup, pDacl, pSacl);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/******************************************************************************
+ * SetNamedSecurityInfoW [ADVAPI32.@]
+ */
+DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
+        SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo,
+        PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl)
+{
+    FIXME("%s %d %ld %p %p %p %p\n", debugstr_w(pObjectName), ObjectType,
+           SecurityInfo, psidOwner, psidGroup, pDacl, pSacl);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+


More information about the wine-patches mailing list