Author: ekohl
Date: Sun May 20 18:31:10 2012
New Revision: 56645
URL:
http://svn.reactos.org/svn/reactos?rev=56645&view=rev
Log:
[SAMSRV]
- Convert to Wine debug messages.
- Add server side stubs of the SAM RPC interface. The RPC server is not implemented yet.
Added:
trunk/reactos/dll/win32/samsrv/samrpc.c (with props)
trunk/reactos/dll/win32/samsrv/samsrv.h (with props)
trunk/reactos/include/reactos/libs/samsrv/ (with props)
trunk/reactos/include/reactos/libs/samsrv/samsrv.h (with props)
Modified:
trunk/reactos/dll/win32/samsrv/CMakeLists.txt
trunk/reactos/dll/win32/samsrv/samsrv.c
trunk/reactos/dll/win32/samsrv/samsrv.spec
Modified: trunk/reactos/dll/win32/samsrv/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/CMakeList…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/CMakeLists.txt [iso-8859-1] Sun May 20 18:31:10 2012
@@ -1,16 +1,24 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${REACTOS_SOURCE_DIR}/include/reactos/idl)
-spec2def(samsrv.dll samsrv.spec)
+add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
+
+spec2def(samsrv.dll samsrv.spec ADD_IMPORTLIB)
list(APPEND SOURCE
+ samrpc.c
samsrv.c
samsrv.rc
- ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
+ ${CMAKE_CURRENT_BINARY_DIR}/samsrv_stubs.c
+ ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def
+ ${CMAKE_CURRENT_BINARY_DIR}/sam_s.c)
add_library(samsrv SHARED ${SOURCE})
-
set_module_type(samsrv win32dll ENTRYPOINT 0 UNICODE)
-add_importlibs(samsrv kernel32 ntdll)
+target_link_libraries(samsrv wine ${PSEH_LIB})
+add_importlibs(samsrv rpcrt4 kernel32 ntdll)
add_dependencies(samsrv psdk)
add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all)
Added: trunk/reactos/dll/win32/samsrv/samrpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samrpc.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samrpc.c (added)
+++ trunk/reactos/dll/win32/samsrv/samrpc.c [iso-8859-1] Sun May 20 18:31:10 2012
@@ -1,0 +1,816 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: Security Account Manager (SAM) Server
+ * FILE: reactos/dll/win32/samsrv/samrpc.c
+ * PURPOSE: RPC interface functions
+ *
+ * PROGRAMMERS: Eric Kohl
+ */
+
+/* INCLUDES ****************************************************************/
+
+#include "samsrv.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(samsrv);
+
+
+/* FUNCTIONS ***************************************************************/
+
+void __RPC_FAR * __RPC_USER midl_user_allocate(SIZE_T len)
+{
+ return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
+}
+
+
+void __RPC_USER midl_user_free(void __RPC_FAR * ptr)
+{
+ HeapFree(GetProcessHeap(), 0, ptr);
+}
+
+void __RPC_USER SAMPR_HANDLE_rundown(SAMPR_HANDLE hHandle)
+{
+}
+
+/* Function 0 */
+NTSTATUS
+NTAPI
+SamrConnect(IN PSAMPR_SERVER_NAME ServerName,
+ OUT SAMPR_HANDLE *ServerHandle,
+ IN ACCESS_MASK DesiredAccess)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 1 */
+NTSTATUS
+NTAPI
+SamrCloseHandle(IN OUT SAMPR_HANDLE *SamHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 2 */
+NTSTATUS
+NTAPI
+SamrSetSecurityObject(IN SAMPR_HANDLE ObjectHandle,
+ IN SECURITY_INFORMATION SecurityInformation,
+ IN PSAMPR_SR_SECURITY_DESCRIPTOR SecurityDescriptor)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 3 */
+NTSTATUS
+NTAPI
+SamrQuerySecurityObject(IN SAMPR_HANDLE ObjectHandle,
+ IN SECURITY_INFORMATION SecurityInformation,
+ OUT PSAMPR_SR_SECURITY_DESCRIPTOR * SecurityDescriptor)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 4 */
+NTSTATUS
+NTAPI
+SamrShutdownSamServer(IN SAMPR_HANDLE ServerHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 5 */
+NTSTATUS
+NTAPI
+SamrLookupDomainInSamServer(IN SAMPR_HANDLE ServerHandle,
+ IN PRPC_UNICODE_STRING Name,
+ OUT PRPC_SID *DomainId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 6 */
+NTSTATUS
+NTAPI
+SamrEnumerateDomainsInSamServer(IN SAMPR_HANDLE ServerHandle,
+ IN OUT unsigned long *EnumerationContext,
+ OUT PSAMPR_ENUMERATION_BUFFER *Buffer,
+ IN unsigned long PreferedMaximumLength,
+ OUT unsigned long *CountReturned)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 7 */
+NTSTATUS
+NTAPI
+SamrOpenDomain(IN SAMPR_HANDLE ServerHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN PRPC_SID DomainId,
+ OUT SAMPR_HANDLE *DomainHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 8 */
+NTSTATUS
+NTAPI
+SamrQueryInformationDomain(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_INFORMATION_CLASS DomainInformationClass,
+ OUT PSAMPR_DOMAIN_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 9 */
+NTSTATUS
+NTAPI
+SamrSetInformationDomain(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_INFORMATION_CLASS DomainInformationClass,
+ IN PSAMPR_DOMAIN_INFO_BUFFER DomainInformation)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 10 */
+NTSTATUS
+NTAPI
+SamrCreateGroupInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN PRPC_UNICODE_STRING Name,
+ IN ACCESS_MASK DesiredAccess,
+ OUT SAMPR_HANDLE *GroupHandle,
+ OUT unsigned long *RelativeId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 10 */
+NTSTATUS
+NTAPI
+SamrEnumerateGroupsInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN OUT unsigned long *EnumerationContext,
+ OUT PSAMPR_ENUMERATION_BUFFER *Buffer,
+ IN unsigned long PreferedMaximumLength,
+ OUT unsigned long *CountReturned)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 12 */
+NTSTATUS
+__stdcall
+SamrCreateUserInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN PRPC_UNICODE_STRING Name,
+ IN ACCESS_MASK DesiredAccess,
+ OUT SAMPR_HANDLE *UserHandle,
+ OUT unsigned long *RelativeId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 13 */
+NTSTATUS
+__stdcall
+SamrEnumerateUsersInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN OUT unsigned long *EnumerationContext,
+ IN unsigned long UserAccountControl,
+ OUT PSAMPR_ENUMERATION_BUFFER *Buffer,
+ IN unsigned long PreferedMaximumLength,
+ OUT unsigned long *CountReturned)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 14 */
+NTSTATUS
+__stdcall
+SamrCreateAliasInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN PRPC_UNICODE_STRING AccountName,
+ IN ACCESS_MASK DesiredAccess,
+ OUT SAMPR_HANDLE *AliasHandle,
+ OUT unsigned long *RelativeId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 15 */
+NTSTATUS
+__stdcall
+SamrEnumerateAliasesInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN OUT unsigned long *EnumerationContext,
+ OUT PSAMPR_ENUMERATION_BUFFER *Buffer,
+ IN unsigned long PreferedMaximumLength,
+ OUT unsigned long *CountReturned)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 16 */
+NTSTATUS
+__stdcall
+SamrGetAliasMembership(IN SAMPR_HANDLE DomainHandle,
+ IN PSAMPR_PSID_ARRAY SidArray,
+ OUT PSAMPR_ULONG_ARRAY Membership)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 17 */
+NTSTATUS
+__stdcall
+SamrLookupNamesInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN unsigned long Count,
+ IN RPC_UNICODE_STRING Names[],
+ OUT PSAMPR_ULONG_ARRAY RelativeIds,
+ OUT PSAMPR_ULONG_ARRAY Use)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 18 */
+NTSTATUS
+__stdcall
+SamrLookupIdsInDomain(IN SAMPR_HANDLE DomainHandle,
+ IN unsigned long Count,
+ IN unsigned long *RelativeIds,
+ OUT PSAMPR_RETURNED_USTRING_ARRAY Names,
+ OUT PSAMPR_ULONG_ARRAY Use)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 19 */
+NTSTATUS
+__stdcall
+SamrOpenGroup(IN SAMPR_HANDLE DomainHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN unsigned long GroupId,
+ OUT SAMPR_HANDLE *GroupHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 20 */
+NTSTATUS
+__stdcall
+SamrQueryInformationGroup(IN SAMPR_HANDLE GroupHandle,
+ IN GROUP_INFORMATION_CLASS GroupInformationClass,
+ OUT PSAMPR_GROUP_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 21 */
+NTSTATUS
+__stdcall
+SamrSetInformationGroup(IN SAMPR_HANDLE GroupHandle,
+ IN GROUP_INFORMATION_CLASS GroupInformationClass,
+ IN PSAMPR_GROUP_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 22 */
+NTSTATUS
+NTAPI
+SamrAddMemberToGroup(IN SAMPR_HANDLE GroupHandle,
+ IN unsigned long MemberId,
+ IN unsigned long Attributes)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 21 */
+NTSTATUS
+NTAPI
+SamrDeleteGroup(IN OUT SAMPR_HANDLE *GroupHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 24 */
+NTSTATUS
+NTAPI
+SamrRemoveMemberFromGroup(IN SAMPR_HANDLE GroupHandle,
+ IN unsigned long MemberId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 25 */
+NTSTATUS
+NTAPI
+SamrGetMembersInGroup(IN SAMPR_HANDLE GroupHandle,
+ OUT PSAMPR_GET_MEMBERS_BUFFER *Members)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 26 */
+NTSTATUS
+NTAPI
+SamrSetMemberAttributesOfGroup(IN SAMPR_HANDLE GroupHandle,
+ IN unsigned long MemberId,
+ IN unsigned long Attributes)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 27 */
+NTSTATUS
+NTAPI
+SamrOpenAlias(IN SAMPR_HANDLE DomainHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN unsigned long AliasId,
+ OUT SAMPR_HANDLE *AliasHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 28 */
+NTSTATUS
+NTAPI
+SamrQueryInformationAlias(IN SAMPR_HANDLE AliasHandle,
+ IN ALIAS_INFORMATION_CLASS AliasInformationClass,
+ OUT PSAMPR_ALIAS_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 29 */
+NTSTATUS
+NTAPI
+SamrSetInformationAlias(IN SAMPR_HANDLE AliasHandle,
+ IN ALIAS_INFORMATION_CLASS AliasInformationClass,
+ IN PSAMPR_ALIAS_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 30 */
+NTSTATUS
+NTAPI
+SamrDeleteAlias(IN OUT SAMPR_HANDLE *AliasHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 31 */
+NTSTATUS
+NTAPI
+SamrAddMemberToAlias(IN SAMPR_HANDLE AliasHandle,
+ IN PRPC_SID MemberId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 32 */
+NTSTATUS
+NTAPI
+SamrRemoveMemberFromAlias(IN SAMPR_HANDLE AliasHandle,
+ IN PRPC_SID MemberId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 33 */
+NTSTATUS
+NTAPI
+SamrGetMembersInAlias(IN SAMPR_HANDLE AliasHandle,
+ OUT PSAMPR_PSID_ARRAY_OUT Members)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 34 */
+NTSTATUS
+NTAPI
+SamrOpenUser(IN SAMPR_HANDLE DomainHandle,
+ IN unsigned long DesiredAccess,
+ IN unsigned long UserId,
+ OUT SAMPR_HANDLE *UserHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 35 */
+NTSTATUS
+NTAPI
+SamrDeleteUser(IN OUT SAMPR_HANDLE *UserHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 36 */
+NTSTATUS
+NTAPI
+SamrQueryInformationUser(IN SAMPR_HANDLE UserHandle,
+ IN USER_INFORMATION_CLASS UserInformationClass,
+ OUT PSAMPR_USER_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 37 */
+NTSTATUS
+NTAPI
+SamrSetInformationUser(IN SAMPR_HANDLE UserHandle,
+ IN USER_INFORMATION_CLASS UserInformationClass,
+ IN PSAMPR_USER_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 38 */
+NTSTATUS
+NTAPI
+SamrChangePasswordUser(IN SAMPR_HANDLE UserHandle,
+ IN unsigned char LmPresent,
+ IN PENCRYPTED_LM_OWF_PASSWORD OldLmEncryptedWithNewLm,
+ IN PENCRYPTED_LM_OWF_PASSWORD NewLmEncryptedWithOldLm,
+ IN unsigned char NtPresent,
+ IN PENCRYPTED_NT_OWF_PASSWORD OldNtEncryptedWithNewNt,
+ IN PENCRYPTED_NT_OWF_PASSWORD NewNtEncryptedWithOldNt,
+ IN unsigned char NtCrossEncryptionPresent,
+ IN PENCRYPTED_NT_OWF_PASSWORD NewNtEncryptedWithNewLm,
+ IN unsigned char LmCrossEncryptionPresent,
+ IN PENCRYPTED_LM_OWF_PASSWORD NewLmEncryptedWithNewNt)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 39 */
+NTSTATUS
+NTAPI
+SamrGetGroupsForUser(IN SAMPR_HANDLE UserHandle,
+ OUT PSAMPR_GET_GROUPS_BUFFER *Groups)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 40 */
+NTSTATUS
+NTAPI
+SamrQueryDisplayInformation(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
+ IN unsigned long Index,
+ IN unsigned long EntryCount,
+ IN unsigned long PreferredMaximumLength,
+ OUT unsigned long *TotalAvailable,
+ OUT unsigned long *TotalReturned,
+ OUT PSAMPR_DISPLAY_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 41 */
+NTSTATUS
+NTAPI
+SamrGetDisplayEnumerationIndex(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
+ IN PRPC_UNICODE_STRING Prefix,
+ OUT unsigned long *Index)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 42 */
+NTSTATUS
+NTAPI
+SamrTestPrivateFunctionsDomain(IN SAMPR_HANDLE DomainHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 43 */
+NTSTATUS
+NTAPI
+SamrTestPrivateFunctionsUser(IN SAMPR_HANDLE UserHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 44 */
+NTSTATUS
+NTAPI
+SamrGetUserDomainPasswordInformation(IN SAMPR_HANDLE UserHandle,
+ OUT PUSER_DOMAIN_PASSWORD_INFORMATION
PasswordInformation)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 45 */
+NTSTATUS
+NTAPI
+SamrRemoveMemberFromForeignDomain(IN SAMPR_HANDLE DomainHandle,
+ IN PRPC_SID MemberSid)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 46 */
+NTSTATUS
+NTAPI
+SamrQueryInformationDomain2(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_INFORMATION_CLASS DomainInformationClass,
+ OUT PSAMPR_DOMAIN_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 47 */
+NTSTATUS
+NTAPI
+SamrQueryInformationUser2(IN SAMPR_HANDLE UserHandle,
+ IN USER_INFORMATION_CLASS UserInformationClass,
+ OUT PSAMPR_USER_INFO_BUFFER *Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 48 */
+NTSTATUS
+NTAPI
+SamrQueryDisplayInformation2(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
+ IN unsigned long Index,
+ IN unsigned long EntryCount,
+ IN unsigned long PreferredMaximumLength,
+ OUT unsigned long *TotalAvailable,
+ OUT unsigned long *TotalReturned,
+ OUT PSAMPR_DISPLAY_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 49 */
+NTSTATUS
+NTAPI
+SamrGetDisplayEnumerationIndex2(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
+ IN PRPC_UNICODE_STRING Prefix,
+ OUT unsigned long *Index)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 50 */
+NTSTATUS
+NTAPI
+SamrCreateUser2InDomain(IN SAMPR_HANDLE DomainHandle,
+ IN PRPC_UNICODE_STRING Name,
+ IN unsigned long AccountType,
+ IN unsigned long DesiredAccess,
+ OUT SAMPR_HANDLE *UserHandle,
+ OUT unsigned long *GrantedAccess,
+ OUT unsigned long *RelativeId)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 51 */
+NTSTATUS
+NTAPI
+SamrQueryDisplayInformation3(IN SAMPR_HANDLE DomainHandle,
+ IN DOMAIN_DISPLAY_INFORMATION DisplayInformationClass,
+ IN unsigned long Index,
+ IN unsigned long EntryCount,
+ IN unsigned long PreferredMaximumLength,
+ OUT unsigned long *TotalAvailable,
+ OUT unsigned long *TotalReturned,
+ OUT PSAMPR_DISPLAY_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 52 */
+NTSTATUS
+NTAPI
+SamrAddMultipleMembersToAlias(IN SAMPR_HANDLE AliasHandle,
+ IN PSAMPR_PSID_ARRAY MembersBuffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 53 */
+NTSTATUS
+NTAPI
+SamrRemoveMultipleMembersFromAlias(IN SAMPR_HANDLE AliasHandle,
+ IN PSAMPR_PSID_ARRAY MembersBuffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 54 */
+NTSTATUS
+NTAPI
+SamrOemChangePasswordUser2(IN handle_t BindingHandle,
+ IN PRPC_STRING ServerName,
+ IN PRPC_STRING UserName,
+ IN PSAMPR_ENCRYPTED_USER_PASSWORD
NewPasswordEncryptedWithOldLm,
+ IN PENCRYPTED_LM_OWF_PASSWORD
OldLmOwfPasswordEncryptedWithNewLm)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 55 */
+NTSTATUS
+NTAPI
+SamrUnicodeChangePasswordUser2(IN handle_t BindingHandle,
+ IN PRPC_UNICODE_STRING ServerName,
+ IN PRPC_UNICODE_STRING UserName,
+ IN PSAMPR_ENCRYPTED_USER_PASSWORD
NewPasswordEncryptedWithOldNt,
+ IN PENCRYPTED_NT_OWF_PASSWORD
OldNtOwfPasswordEncryptedWithNewNt,
+ IN unsigned char LmPresent,
+ IN PSAMPR_ENCRYPTED_USER_PASSWORD
NewPasswordEncryptedWithOldLm,
+ IN PENCRYPTED_LM_OWF_PASSWORD
OldLmOwfPasswordEncryptedWithNewNt)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 56 */
+NTSTATUS
+NTAPI
+SamrGetDomainPasswordInformation(IN handle_t BindingHandle,
+ IN PRPC_UNICODE_STRING Unused,
+ OUT PUSER_DOMAIN_PASSWORD_INFORMATION
PasswordInformation)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 57 */
+NTSTATUS
+NTAPI
+SamrConnect2(IN PSAMPR_SERVER_NAME ServerName,
+ OUT SAMPR_HANDLE *ServerHandle,
+ IN ACCESS_MASK DesiredAccess)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 58 */
+NTSTATUS
+NTAPI
+SamrSetInformationUser2(IN SAMPR_HANDLE UserHandle,
+ IN USER_INFORMATION_CLASS UserInformationClass,
+ IN PSAMPR_USER_INFO_BUFFER Buffer)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 59 */
+NTSTATUS
+NTAPI
+SamrSetBootKeyInformation(IN handle_t BindingHandle) /* FIXME */
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 60 */
+NTSTATUS
+NTAPI
+SamrGetBootKeyInformation(IN handle_t BindingHandle) /* FIXME */
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 61 */
+NTSTATUS
+NTAPI
+SamrConnect3(IN handle_t BindingHandle) /* FIXME */
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 62 */
+NTSTATUS
+NTAPI
+SamrConnect4(IN PSAMPR_SERVER_NAME ServerName,
+ OUT SAMPR_HANDLE *ServerHandle,
+ IN unsigned long ClientRevision,
+ IN ACCESS_MASK DesiredAccess)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 63 */
+NTSTATUS
+NTAPI
+SamrUnicodeChangePasswordUser3(IN handle_t BindingHandle) /* FIXME */
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 64 */
+NTSTATUS
+NTAPI
+SamrConnect5(IN PSAMPR_SERVER_NAME ServerName,
+ IN ACCESS_MASK DesiredAccess,
+ IN unsigned long InVersion,
+ IN SAMPR_REVISION_INFO *InRevisionInfo,
+ OUT unsigned long *OutVersion,
+ OUT SAMPR_REVISION_INFO *OutRevisionInfo,
+ OUT SAMPR_HANDLE *ServerHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 65 */
+NTSTATUS
+NTAPI
+SamrRidToSid(IN SAMPR_HANDLE ObjectHandle,
+ IN unsigned long Rid,
+ OUT PRPC_SID *Sid)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 66 */
+NTSTATUS
+NTAPI
+SamrSetDSRMPassword(IN handle_t BindingHandle,
+ IN PRPC_UNICODE_STRING Unused,
+ IN unsigned long UserId,
+ IN PENCRYPTED_NT_OWF_PASSWORD EncryptedNtOwfPassword)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* Function 67 */
+NTSTATUS
+NTAPI
+SamrValidatePassword(IN handle_t Handle,
+ IN PASSWORD_POLICY_VALIDATION_TYPE ValidationType,
+ IN PSAM_VALIDATE_INPUT_ARG InputArg,
+ OUT PSAM_VALIDATE_OUTPUT_ARG *OutputArg)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/* EOF */
Propchange: trunk/reactos/dll/win32/samsrv/samrpc.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/dll/win32/samsrv/samrpc.c
------------------------------------------------------------------------------
svn:keywords = author date id revision
Modified: trunk/reactos/dll/win32/samsrv/samsrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] Sun May 20 18:31:10 2012
@@ -19,34 +19,29 @@
/* INCLUDES *****************************************************************/
-#define WIN32_NO_STATUS
-#include <windows.h>
-#define NTOS_MODE_USER
-#include <ndk/umtypes.h>
+#include <samsrv.h>
-//#include <samsrv.h>
-
-#define NDEBUG
-#include <debug.h>
-
+WINE_DEFAULT_DEBUG_CHANNEL(samsrv);
/* FUNCTIONS ****************************************************************/
-NTSTATUS WINAPI
+NTSTATUS
+NTAPI
SamIInitialize(VOID)
{
- DPRINT1("SamIInitialize() called\n");
+ TRACE("SamIInitialize() called\n");
- return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
-NTSTATUS WINAPI
+NTSTATUS
+NTAPI
SampInitializeRegistry(VOID)
{
- DPRINT1("SampInitializeRegistry() called\n");
+ TRACE("SampInitializeRegistry() called\n");
- return STATUS_SUCCESS;
+ return STATUS_SUCCESS;
}
/* EOF */
Added: trunk/reactos/dll/win32/samsrv/samsrv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.h?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.h (added)
+++ trunk/reactos/dll/win32/samsrv/samsrv.h [iso-8859-1] Sun May 20 18:31:10 2012
@@ -1,0 +1,19 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: Security Account Manager (LSA) Server
+ * FILE: reactos/dll/win32/samsrv/samsrv.h
+ * PURPOSE: Common header file
+ *
+ * PROGRAMMERS: Eric Kohl
+ */
+
+#define WIN32_NO_STATUS
+#include <windows.h>
+#define NTOS_MODE_USER
+#include <ndk/umtypes.h>
+
+#include <samsrv/samsrv.h>
+
+#include "sam_s.h"
+
+#include <wine/debug.h>
Propchange: trunk/reactos/dll/win32/samsrv/samsrv.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/dll/win32/samsrv/samsrv.h
------------------------------------------------------------------------------
svn:keywords = author date id revision
Modified: trunk/reactos/dll/win32/samsrv/samsrv.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.sp…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samsrv.spec [iso-8859-1] Sun May 20 18:31:10 2012
@@ -1,73 +1,73 @@
-;SamIAccountRestrictions
-;SamIConnect
-;SamICreateAccountByRid
-;SamIEnumerateAccountRids
-;SamIFree_SAMPR_ALIAS_INFO_BUFFER
-;SamIFree_SAMPR_DISPLAY_INFO_BUFFER
-;SamIFree_SAMPR_DOMAIN_INFO_BUFFER
-;SamIFree_SAMPR_ENUMERATION_BUFFER
-;SamIFree_SAMPR_GET_GROUPS_BUFFER
-;SamIFree_SAMPR_GET_MEMBERS_BUFFER
-;SamIFree_SAMPR_GROUP_INFO_BUFFER
-;SamIFree_SAMPR_PSID_ARRAY
-;SamIFree_SAMPR_RETURNED_USTRING_ARRAY
-;SamIFree_SAMPR_SR_SECURITY_DESCRIPTOR
-;SamIFree_SAMPR_ULONG_ARRAY
-;SamIFree_SAMPR_USER_INFO_BUFFER
-;SamIGetPrivateData
-;SamIGetSerialNumberDomain
+@ stub SamIAccountRestrictions
+@ stub SamIConnect
+@ stub SamICreateAccountByRid
+@ stub SamIEnumerateAccountRids
+@ stub SamIFree_SAMPR_ALIAS_INFO_BUFFER
+@ stub SamIFree_SAMPR_DISPLAY_INFO_BUFFER
+@ stub SamIFree_SAMPR_DOMAIN_INFO_BUFFER
+@ stub SamIFree_SAMPR_ENUMERATION_BUFFER
+@ stub SamIFree_SAMPR_GET_GROUPS_BUFFER
+@ stub SamIFree_SAMPR_GET_MEMBERS_BUFFER
+@ stub SamIFree_SAMPR_GROUP_INFO_BUFFER
+@ stub SamIFree_SAMPR_PSID_ARRAY
+@ stub SamIFree_SAMPR_RETURNED_USTRING_ARRAY
+@ stub SamIFree_SAMPR_SR_SECURITY_DESCRIPTOR
+@ stub SamIFree_SAMPR_ULONG_ARRAY
+@ stub SamIFree_SAMPR_USER_INFO_BUFFER
+@ stub SamIGetPrivateData
+@ stub SamIGetSerialNumberDomain
@ stdcall SamIInitialize()
-;SamINotifyDelta
-;SamISetAuditingInformation
-;SamISetPrivateData
-;SamISetSerialNumberDomain
+@ stub SamINotifyDelta
+@ stub SamISetAuditingInformation
+@ stub SamISetPrivateData
+@ stub SamISetSerialNumberDomain
@ stdcall SampInitializeRegistry()
-;SampRtlConvertUlongToUnicodeString
-;SamrAddMemberToAlias
-;SamrAddMemberToGroup
-;SamrAddMultipleMemberstoAlias
-;SamrChangePasswordUser
-;SamrCloseHandle
-;SamrConnect
-;SamrCreateAliasInDomain
-;SamrCreateGroupInDomain
-;SamrCreateUserInDomain
-;SamrDeleteAlias
-;SamrDeleteGroup
-;SamrDeleteUser
-;SamrEnumerateAliasesInDomain
-;SamrEnumerateDomainsInSamServer
-;SamrEnumerateGroupsInDomain
-;SamrEnumerateUsersInDomain
-;SamrGetAliasMembership
-;SamrGetGroupsForUser
-;SamrGetMembersInAlias
-;SamrGetMembersInGroup
-;SamrGetUserDomainPasswordInformation
-;SamrLookupDomainInSamServer
-;SamrLookupIdsInDomain
-;SamrLookupNamesInDomain
-;SamrOpenAlias
-;SamrOpenDomain
-;SamrOpenGroup
-;SamrOpenUser
-;SamrQueryDisplayInformation
-;SamrQueryInformationAlias
-;SamrQueryInformationDomain
-;SamrQueryInformationGroup
-;SamrQueryInformationUser
-;SamrQuerySecurityObject
-;SamrRemoveMemberFromAlias
-;SamrRemoveMemberFromForeignDomain
-;SamrRemoveMemberFromGroup
-;SamrRemoveMultipleMembersFromAlias
-;SamrSetInformationAlias
-;SamrSetInformationDomain
-;SamrSetInformationGroup
-;SamrSetInformationUser
-;SamrSetMemberAttributesOfGroup
-;SamrSetSecurityObject
-;SamrShutdownSamServer
-;SamrTestPrivateFunctionsDomain
-;SamrTestPrivateFunctionsUser
+@ stub SampRtlConvertUlongToUnicodeString
+@ stdcall SamrAddMemberToAlias(ptr ptr)
+@ stdcall SamrAddMemberToGroup(ptr long long)
+@ stdcall SamrAddMultipleMembersToAlias(ptr ptr)
+@ stdcall SamrChangePasswordUser(ptr long ptr ptr long ptr ptr long ptr long ptr)
+@ stdcall SamrCloseHandle(ptr)
+@ stdcall SamrConnect(ptr ptr long)
+@ stdcall SamrCreateAliasInDomain(ptr ptr long ptr ptr)
+@ stdcall SamrCreateGroupInDomain(ptr ptr long ptr ptr)
+@ stdcall SamrCreateUserInDomain(ptr ptr long ptr ptr)
+@ stdcall SamrDeleteAlias(ptr)
+@ stdcall SamrDeleteGroup(ptr)
+@ stdcall SamrDeleteUser(ptr)
+@ stdcall SamrEnumerateAliasesInDomain(ptr ptr ptr long ptr)
+@ stdcall SamrEnumerateDomainsInSamServer(ptr ptr ptr long ptr)
+@ stdcall SamrEnumerateGroupsInDomain(ptr ptr ptr long ptr)
+@ stdcall SamrEnumerateUsersInDomain(ptr ptr long ptr long ptr)
+@ stdcall SamrGetAliasMembership(ptr ptr ptr)
+@ stdcall SamrGetGroupsForUser(ptr ptr)
+@ stdcall SamrGetMembersInAlias(ptr ptr)
+@ stdcall SamrGetMembersInGroup(ptr ptr)
+@ stdcall SamrGetUserDomainPasswordInformation(ptr ptr)
+@ stdcall SamrLookupDomainInSamServer(ptr ptr ptr)
+@ stdcall SamrLookupIdsInDomain(ptr long ptr ptr ptr)
+@ stdcall SamrLookupNamesInDomain(ptr long ptr ptr ptr)
+@ stdcall SamrOpenAlias(ptr long long ptr)
+@ stdcall SamrOpenDomain(ptr long ptr ptr)
+@ stdcall SamrOpenGroup(ptr long long ptr)
+@ stdcall SamrOpenUser(ptr long long ptr)
+@ stdcall SamrQueryDisplayInformation(ptr long long long long ptr ptr ptr)
+@ stdcall SamrQueryInformationAlias(ptr long ptr)
+@ stdcall SamrQueryInformationDomain(ptr long ptr)
+@ stdcall SamrQueryInformationGroup(ptr long ptr)
+@ stdcall SamrQueryInformationUser(ptr long ptr)
+@ stdcall SamrQuerySecurityObject(ptr long ptr)
+@ stdcall SamrRemoveMemberFromAlias(ptr ptr)
+@ stdcall SamrRemoveMemberFromForeignDomain(ptr ptr)
+@ stdcall SamrRemoveMemberFromGroup(ptr long)
+@ stdcall SamrRemoveMultipleMembersFromAlias(ptr ptr)
+@ stdcall SamrSetInformationAlias(ptr long ptr)
+@ stdcall SamrSetInformationDomain(ptr long ptr)
+@ stdcall SamrSetInformationGroup(ptr long ptr)
+@ stdcall SamrSetInformationUser(ptr long ptr)
+@ stdcall SamrSetMemberAttributesOfGroup(ptr long long)
+@ stdcall SamrSetSecurityObject(ptr long ptr)
+@ stdcall SamrShutdownSamServer(ptr)
+@ stdcall SamrTestPrivateFunctionsDomain(ptr)
+@ stdcall SamrTestPrivateFunctionsUser(ptr)
; EOF
Propchange: trunk/reactos/include/reactos/libs/samsrv/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Sun May 20 18:31:10 2012
@@ -1,0 +1,2 @@
+([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))?
+(\d+)
Propchange: trunk/reactos/include/reactos/libs/samsrv/
------------------------------------------------------------------------------
bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/include/reactos/libs/samsrv/
------------------------------------------------------------------------------
bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/include/reactos/libs/samsrv/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/include/reactos/libs/samsrv/samsrv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/samsr…
==============================================================================
--- trunk/reactos/include/reactos/libs/samsrv/samsrv.h (added)
+++ trunk/reactos/include/reactos/libs/samsrv/samsrv.h [iso-8859-1] Sun May 20 18:31:10
2012
@@ -1,0 +1,13 @@
+#ifndef __SAMSRV__
+#define __SAMSRV__
+
+NTSTATUS
+NTAPI
+SamIInitialize(VOID);
+
+NTSTATUS
+NTAPI
+SampInitializeRegistry(VOID);
+
+
+#endif /* __SAMSRV__ */
Propchange: trunk/reactos/include/reactos/libs/samsrv/samsrv.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/include/reactos/libs/samsrv/samsrv.h
------------------------------------------------------------------------------
svn:keywords = author date id revision