Commit f1e1fd05 authored by Steve Lustbader's avatar Steve Lustbader Committed by Alexandre Julliard

Assorted Win2k/WinXP stubs.

parent a5d7fbfb
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
@ stdcall AccessCheck(ptr long long ptr ptr ptr ptr ptr) AccessCheck @ stdcall AccessCheck(ptr long long ptr ptr ptr ptr ptr) AccessCheck
@ stub AccessCheckAndAuditAlarmA @ stub AccessCheckAndAuditAlarmA
@ stub AccessCheckAndAuditAlarmW @ stub AccessCheckAndAuditAlarmW
@ stub AccessCheckByType #(ptr ptr long long ptr long ptr ptr ptr ptr ptr) AccessCheckByType
@ stdcall AddAccessAllowedAce (ptr long long ptr) AddAccessAllowedAce @ stdcall AddAccessAllowedAce (ptr long long ptr) AddAccessAllowedAce
@ stub AddAccessAllowedAceEx #(ptr long long long ptr) AddAccessAllowedAceEx
@ stub AddAccessDeniedAce @ stub AddAccessDeniedAce
@ stub AddAce @ stub AddAce
@ stub AddAuditAccessAce @ stub AddAuditAccessAce
...@@ -23,12 +25,17 @@ ...@@ -23,12 +25,17 @@
@ stdcall CloseServiceHandle(long) CloseServiceHandle @ stdcall CloseServiceHandle(long) CloseServiceHandle
@ stub CommandLineFromMsiDescriptor @ stub CommandLineFromMsiDescriptor
@ stdcall ControlService(long long ptr) ControlService @ stdcall ControlService(long long ptr) ControlService
@ stub ConvertSidToStringSidA #(ptr str) ConvertSidToStringSidA
@ stub ConvertSidToStringSidW #(ptr wstr) ConvertSidToStringSidW
@ stub ConvertStringSecurityDescriptorToSecurityDescriptorA #(str long ptr ptr) ConvertStringSecurityDescriptorToSecurityDescriptorA
@ stub ConvertStringSecurityDescriptorToSecurityDescriptorW #(wstr long ptr ptr) ConvertStringSecurityDescriptorToSecurityDescriptorW
@ stdcall CopySid(long ptr ptr) CopySid @ stdcall CopySid(long ptr ptr) CopySid
@ stub CreatePrivateObjectSecurity @ stub CreatePrivateObjectSecurity
@ stub CreateProcessAsUserA @ stub CreateProcessAsUserA
@ stub CreateProcessAsUserW @ stub CreateProcessAsUserW
@ stdcall CreateServiceA(long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateServiceA @ stdcall CreateServiceA(long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateServiceA
@ stdcall CreateServiceW (long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateServiceW @ stdcall CreateServiceW (long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateServiceW
@ stub CredProfileLoaded
@ stdcall CryptAcquireContextA(ptr str str long long) CryptAcquireContextA @ stdcall CryptAcquireContextA(ptr str str long long) CryptAcquireContextA
@ stdcall CryptAcquireContextW(ptr wstr wstr long long) CryptAcquireContextW @ stdcall CryptAcquireContextW(ptr wstr wstr long long) CryptAcquireContextW
@ stdcall CryptContextAddRef(long ptr long) CryptContextAddRef @ stdcall CryptContextAddRef(long ptr long) CryptContextAddRef
...@@ -72,7 +79,8 @@ ...@@ -72,7 +79,8 @@
@ stdcall DeleteService(long) DeleteService @ stdcall DeleteService(long) DeleteService
@ stdcall DeregisterEventSource(long) DeregisterEventSource @ stdcall DeregisterEventSource(long) DeregisterEventSource
@ stub DestroyPrivateObjectSecurity @ stub DestroyPrivateObjectSecurity
@ stub DuplicateToken @ stub DuplicateToken #(long long ptr) DuplicateToken
@ stub DuplicateTokenEx #(long long ptr long long ptr) DuplicateTokenEx
@ stub EnumDependentServicesA @ stub EnumDependentServicesA
@ stub EnumDependentServicesW @ stub EnumDependentServicesW
@ stdcall EnumServicesStatusA (long long long ptr long ptr ptr ptr) EnumServicesStatusA @ stdcall EnumServicesStatusA (long long long ptr long ptr ptr ptr) EnumServicesStatusA
...@@ -90,6 +98,8 @@ ...@@ -90,6 +98,8 @@
@ stub GetKernelObjectSecurity @ stub GetKernelObjectSecurity
@ stdcall GetLengthSid(ptr) GetLengthSid @ stdcall GetLengthSid(ptr) GetLengthSid
@ stub GetMangledSiteSid @ stub GetMangledSiteSid
@ stub GetNamedSecurityInfoA #(str long long ptr ptr ptr ptr ptr) GetNamedSecurityInfoA
@ stub GetNamedSecurityInfoW #(wstr long long ptr ptr ptr ptr ptr) GetNamedSecurityInfoW
@ stdcall GetNumberOfEventLogRecords (long ptr) GetNumberOfEventLogRecords @ stdcall GetNumberOfEventLogRecords (long ptr) GetNumberOfEventLogRecords
@ stdcall GetOldestEventLogRecord (long ptr) GetOldestEventLogRecord @ stdcall GetOldestEventLogRecord (long ptr) GetOldestEventLogRecord
@ stub GetPrivateObjectSecurity @ stub GetPrivateObjectSecurity
...@@ -99,6 +109,7 @@ ...@@ -99,6 +109,7 @@
@ stdcall GetSecurityDescriptorLength(ptr) GetSecurityDescriptorLength @ stdcall GetSecurityDescriptorLength(ptr) GetSecurityDescriptorLength
@ stdcall GetSecurityDescriptorOwner(ptr ptr ptr) GetSecurityDescriptorOwner @ stdcall GetSecurityDescriptorOwner(ptr ptr ptr) GetSecurityDescriptorOwner
@ stdcall GetSecurityDescriptorSacl (ptr ptr ptr ptr) GetSecurityDescriptorSacl @ stdcall GetSecurityDescriptorSacl (ptr ptr ptr ptr) GetSecurityDescriptorSacl
@ stub GetSecurityInfo #(long long long ptr ptr ptr ptr ptr) GetSecurityInfo
@ stub GetServiceDisplayNameA @ stub GetServiceDisplayNameA
@ stub GetServiceDisplayNameW @ stub GetServiceDisplayNameW
@ stub GetServiceKeyNameA @ stub GetServiceKeyNameA
...@@ -169,6 +180,7 @@ ...@@ -169,6 +180,7 @@
@ stub QueryServiceLockStatusW @ stub QueryServiceLockStatusW
@ stub QueryServiceObjectSecurity @ stub QueryServiceObjectSecurity
@ stdcall QueryServiceStatus(long ptr) QueryServiceStatus @ stdcall QueryServiceStatus(long ptr) QueryServiceStatus
@ stdcall QueryServiceStatusEx (long long ptr long ptr) QueryServiceStatusEx
@ stdcall ReadEventLogA (long long long ptr long ptr ptr) ReadEventLogA @ stdcall ReadEventLogA (long long long ptr long ptr ptr) ReadEventLogA
@ stdcall ReadEventLogW (long long long ptr long ptr ptr) ReadEventLogW @ stdcall ReadEventLogW (long long long ptr long ptr ptr) ReadEventLogW
@ stdcall RegCloseKey(long) RegCloseKey @ stdcall RegCloseKey(long) RegCloseKey
...@@ -233,6 +245,7 @@ ...@@ -233,6 +245,7 @@
@ stdcall SetFileSecurityW(wstr long ptr) SetFileSecurityW @ stdcall SetFileSecurityW(wstr long ptr) SetFileSecurityW
@ stdcall SetKernelObjectSecurity(long long ptr) SetKernelObjectSecurity @ stdcall SetKernelObjectSecurity(long long ptr) SetKernelObjectSecurity
@ stub SetPrivateObjectSecurity @ stub SetPrivateObjectSecurity
@ stub SetSecurityDescriptorControl #(ptr long long)
@ stdcall SetSecurityDescriptorDacl(ptr long ptr long) SetSecurityDescriptorDacl @ stdcall SetSecurityDescriptorDacl(ptr long ptr long) SetSecurityDescriptorDacl
@ stdcall SetSecurityDescriptorGroup (ptr ptr long) SetSecurityDescriptorGroup @ stdcall SetSecurityDescriptorGroup (ptr ptr long) SetSecurityDescriptorGroup
@ stdcall SetSecurityDescriptorOwner (ptr ptr long) SetSecurityDescriptorOwner @ stdcall SetSecurityDescriptorOwner (ptr ptr long) SetSecurityDescriptorOwner
......
...@@ -700,3 +700,22 @@ QueryServiceStatus( SC_HANDLE hService, LPSERVICE_STATUS lpservicestatus ) ...@@ -700,3 +700,22 @@ QueryServiceStatus( SC_HANDLE hService, LPSERVICE_STATUS lpservicestatus )
return TRUE; return TRUE;
} }
/******************************************************************************
* QueryServiceStatusEx [ADVAPI32.@]
*
* PARAMS
* hService [handle to service]
* InfoLevel [information level]
* lpBuffer [buffer]
* cbBufSize [size of buffer]
* pcbBytesNeeded [bytes needed]
*/
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel,
LPBYTE lpBuffer, DWORD cbBufSize,
LPDWORD pcbBytesNeeded)
{
FIXME("stub\n");
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
@ stdcall NtQueryKey (long long ptr long ptr) NtQueryKey @ stdcall NtQueryKey (long long ptr long ptr) NtQueryKey
@ stub NtQueryMutant @ stub NtQueryMutant
@ stdcall NtQueryObject(long long long long long) NtQueryObject @ stdcall NtQueryObject(long long long long long) NtQueryObject
@ stub NtQueryOpenSubKeys
@ stdcall NtQueryPerformanceCounter (long long) NtQueryPerformanceCounter @ stdcall NtQueryPerformanceCounter (long long) NtQueryPerformanceCounter
@ stdcall NtQuerySection (long long long long long) NtQuerySection @ stdcall NtQuerySection (long long long long long) NtQuerySection
@ stdcall NtQuerySecurityObject (long long long long long) NtQuerySecurityObject @ stdcall NtQuerySecurityObject (long long long long long) NtQuerySecurityObject
...@@ -240,6 +241,7 @@ ...@@ -240,6 +241,7 @@
@ stub NtTestAlert @ stub NtTestAlert
@ stub NtUnloadDriver @ stub NtUnloadDriver
@ stdcall NtUnloadKey(long) NtUnloadKey @ stdcall NtUnloadKey(long) NtUnloadKey
@ stub NtUnloadKeyEx
@ stub NtUnlockFile @ stub NtUnlockFile
@ stdcall NtUnlockVirtualMemory(long ptr ptr long) NtUnlockVirtualMemory @ stdcall NtUnlockVirtualMemory(long ptr ptr long) NtUnlockVirtualMemory
@ stdcall NtUnmapViewOfSection(long ptr) NtUnmapViewOfSection @ stdcall NtUnmapViewOfSection(long ptr) NtUnmapViewOfSection
...@@ -682,6 +684,7 @@ ...@@ -682,6 +684,7 @@
@ stdcall ZwQueryKey(long long ptr long ptr) NtQueryKey @ stdcall ZwQueryKey(long long ptr long ptr) NtQueryKey
@ stub ZwQueryMutant @ stub ZwQueryMutant
@ stdcall ZwQueryObject(long long long long long) NtQueryObject @ stdcall ZwQueryObject(long long long long long) NtQueryObject
@ stub ZwQueryOpenSubKeys
@ stdcall ZwQueryPerformanceCounter (long long) NtQueryPerformanceCounter @ stdcall ZwQueryPerformanceCounter (long long) NtQueryPerformanceCounter
@ stdcall ZwQuerySection (long long long long long) NtQuerySection @ stdcall ZwQuerySection (long long long long long) NtQuerySection
@ stdcall ZwQuerySecurityObject (long long long long long) NtQuerySecurityObject @ stdcall ZwQuerySecurityObject (long long long long long) NtQuerySecurityObject
...@@ -755,6 +758,7 @@ ...@@ -755,6 +758,7 @@
@ stub ZwTestAlert @ stub ZwTestAlert
@ stub ZwUnloadDriver @ stub ZwUnloadDriver
@ stdcall ZwUnloadKey(long) NtUnloadKey @ stdcall ZwUnloadKey(long) NtUnloadKey
@ stub ZwUnloadKeyEx
@ stub ZwUnlockFile @ stub ZwUnlockFile
@ stdcall ZwUnlockVirtualMemory(long ptr ptr long) NtUnlockVirtualMemory @ stdcall ZwUnlockVirtualMemory(long ptr ptr long) NtUnlockVirtualMemory
@ stdcall ZwUnmapViewOfSection(long ptr) NtUnmapViewOfSection @ stdcall ZwUnmapViewOfSection(long ptr) NtUnmapViewOfSection
......
...@@ -114,6 +114,10 @@ typedef struct _SERVICE_STATUS { ...@@ -114,6 +114,10 @@ typedef struct _SERVICE_STATUS {
DWORD dwWaitHint; DWORD dwWaitHint;
} SERVICE_STATUS, *LPSERVICE_STATUS; } SERVICE_STATUS, *LPSERVICE_STATUS;
typedef enum _SC_STATUS_TYPE {
SC_STATUS_PROCESS_INFO = 0
} SC_STATUS_TYPE;
/* Service main function prototype */ /* Service main function prototype */
typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR*); typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR*);
...@@ -188,7 +192,7 @@ BOOL WINAPI StartServiceCtrlDispatcherA(LPSERVICE_TABLE_ENTRYA); ...@@ -188,7 +192,7 @@ BOOL WINAPI StartServiceCtrlDispatcherA(LPSERVICE_TABLE_ENTRYA);
BOOL WINAPI StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW); BOOL WINAPI StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW);
#define StartServiceCtrlDispatcher WINELIB_NAME_AW(StartServiceCtrlDispatcher) #define StartServiceCtrlDispatcher WINELIB_NAME_AW(StartServiceCtrlDispatcher)
BOOL WINAPI QueryServiceStatus(SC_HANDLE,LPSERVICE_STATUS); BOOL WINAPI QueryServiceStatus(SC_HANDLE,LPSERVICE_STATUS);
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE,SC_STATUS_TYPE,LPBYTE,DWORD,LPDWORD);
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment