Changeset 7983 for trunk/src


Ignore:
Timestamp:
Feb 21, 2002, 11:52:43 PM (24 years ago)
Author:
sandervl
Message:

update

Location:
trunk/src
Files:
2 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/ntdll.def

    r7253 r7983  
    1 ; $Id: ntdll.def,v 1.41 2001-10-29 02:26:38 bird Exp $
     1; $Id: ntdll.def,v 1.42 2002-02-21 22:52:42 sandervl Exp $
    22
    33;
     
    6464;   NlsMbOemCodePageTag                             @53
    6565    NtAcceptConnectPort           = _NtAcceptConnectPort@24     @54
    66 ;   NtAccessCheck                                   @55
     66    NtAccessCheck                 = _NtAccessCheck@32            @55
    6767;   NtAccessCheckAndAuditAlarm                      @56
    6868;   NtAddAtom                                   @57
     
    244244;   NtSetLowWaitHighEventPair                       @231
    245245;   NtSetLowWaitHighThread                      @232
    246 ;   NtSetSecurityObject                         @233
     246    NtSetSecurityObject           = _NtSetSecurityObject@12             @233
    247247;   NtSetSystemEnvironmentValue                     @234
    248248;   NtSetSystemInformation                      @235
     
    430430;   RtlGetCallersAddress                        @414
    431431;   RtlGetCompressionWorkSpaceSize                  @415
    432 ;   RtlGetControlSecurityDescriptor                @416
     432    RtlGetControlSecurityDescriptor = _RtlGetControlSecurityDescriptor@12 @416
    433433;   RtlGetCurrentDirectory_U                        @417
    434434    RtlGetDaclSecurityDescriptor  = _RtlGetDaclSecurityDescriptor@16    @418
     
    449449;   RtlImageRvaToSection                        @433
    450450;   RtlImageRvaToVa                         @434
    451 ;   RtlImpersonateSelf                          @435
     451    RtlImpersonateSelf            = _RtlImpersonateSelf@4               @435
    452452    RtlInitAnsiString             = _RtlInitAnsiString@8                @436
    453453;   RtlInitCodePageTable                        @437
     
    490490;   RtlLookupAtomInAtomTable                        @474
    491491;   RtlLookupElementGenericTable                    @475
    492 ;   RtlMakeSelfRelativeSD                       @476
     492    RtlMakeSelfRelativeSD          = _RtlMakeSelfRelativeSD@12          @476
    493493;   RtlMapGenericMask                           @477
    494494    RtlMoveMemory                  = _RtlMoveMemory@12                  @478
  • trunk/src/NTDLL/rtl.cpp

    r6372 r7983  
    1 /* $Id: rtl.cpp,v 1.13 2001-07-20 15:39:47 sandervl Exp $ */
     1/* $Id: rtl.cpp,v 1.14 2002-02-21 22:52:42 sandervl Exp $ */
    22
    33/*
     
    2929#include "stackframe.h"
    3030#include "ntddk.h"
    31 #include "imagehlp.h"
    3231#include "winreg.h"
    3332#include "heapstring.h"
     
    334333 * FIXME: prototype guessed
    335334 */
    336 BOOLEAN WINAPI RtlDestroyHeap(HANDLE Heap)
     335HANDLE WINAPI RtlDestroyHeap( HANDLE Heap )
    337336{
    338337  dprintf(("NTDLL: RtlDestroyHeap(%08xh)\n",
     
    505504
    506505
    507 /******************************************************************************
    508  * RtlEnlargedIntegerMultiply [NTDLL.341]
    509  * Note: This even works, since gcc returns 64bit values in eax/edx just like
    510  * the caller expects. However... The relay code won't grok this I think.
    511  *
    512  * @@@PH: Parameters are unknown
    513  */
    514 /* longlong in VAC++ ? */
    515 
    516 extern INT WINAPI RtlEnlargedIntegerMultiply(INT factor1,
    517                                              INT factor2);
    518 
    519506
    520507/******************************************************************************
    521508 *  RtlFormatCurrentUserKeyPath             [NTDLL.371]
    522509 */
    523 DWORD WINAPI RtlFormatCurrentUserKeyPath(PUNICODE_STRING pustrKeyPath)
     510NTSTATUS WINAPI RtlFormatCurrentUserKeyPath(IN OUT PUNICODE_STRING pustrKeyPath)
    524511{
    525512  dprintf(("NTDLL: RtlFormatCurrentUserKeyPath(%08xh) not correctly implemented.\n",
  • trunk/src/NTDLL/rtlstr.c

    r7254 r7983  
    606606 * including the terminating NULL.
    607607 */
    608 UINT WINAPI RtlOemStringToUnicodeSize(PSTRING str)
     608UINT WINAPI RtlOemStringToUnicodeSize( const STRING *str )
    609609{
    610610    DWORD ret = MultiByteToWideChar( CP_OEMCP, 0, str->Buffer, str->Length, NULL, 0 );
     
    619619 * including the terminating NULL.
    620620 */
    621 DWORD WINAPI RtlAnsiStringToUnicodeSize(PSTRING str)
     621DWORD WINAPI RtlAnsiStringToUnicodeSize( const STRING *str )
    622622{
    623623    DWORD ret = MultiByteToWideChar( CP_ACP, 0, str->Buffer, str->Length, NULL, 0 );
  • trunk/src/NTDLL/sec.cpp

    r5568 r7983  
    1 /* $Id: sec.cpp,v 1.8 2001-04-22 10:38:59 sandervl Exp $ */
     1/* $Id: sec.cpp,v 1.9 2002-02-21 22:52:43 sandervl Exp $ */
    22
    33/*
     
    2626#include "ntdll.h"
    2727
     28#include <debugtools.h>
    2829
    2930ODINDEBUGCHANNEL(NTDLL-SEC)
     
    807808}
    808809
     810
     811/******************************************************************************
     812 *  RtlImpersonateSelf          [NTDLL.@]
     813 */
     814BOOL WINAPI
     815RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
     816{
     817        FIXME("(%08x), stub\n", ImpersonationLevel);
     818        return TRUE;
     819}
     820
     821/******************************************************************************
     822 *  NtAccessCheck               [NTDLL.@]
     823 */
     824NTSTATUS WINAPI
     825NtAccessCheck(
     826        IN PSECURITY_DESCRIPTOR SecurityDescriptor,
     827        IN HANDLE ClientToken,
     828        IN ACCESS_MASK DesiredAccess,
     829        IN PGENERIC_MAPPING GenericMapping,
     830        OUT PPRIVILEGE_SET PrivilegeSet,
     831        OUT PULONG ReturnLength,
     832        OUT PULONG GrantedAccess,
     833        OUT PBOOLEAN AccessStatus)
     834{
     835        FIXME("(%p, %04x, %08lx, %p, %p, %p, %p, %p), stub\n",
     836          SecurityDescriptor, ClientToken, DesiredAccess, GenericMapping,
     837          PrivilegeSet, ReturnLength, GrantedAccess, AccessStatus);
     838        *AccessStatus = TRUE;
     839        return STATUS_SUCCESS;
     840}
     841
     842/******************************************************************************
     843 *  NtSetSecurityObject         [NTDLL.@]
     844 */
     845NTSTATUS WINAPI
     846NtSetSecurityObject(
     847        IN HANDLE Handle,
     848        IN SECURITY_INFORMATION SecurityInformation,
     849        IN PSECURITY_DESCRIPTOR SecurityDescriptor)
     850{
     851        FIXME("0x%08x 0x%08lx %p\n", Handle, SecurityInformation, SecurityDescriptor);
     852        return STATUS_SUCCESS;
     853}
     854
     855/******************************************************************************
     856 * RtlGetControlSecurityDescriptor (NTDLL.@)
     857 */
     858
     859NTSTATUS WINAPI RtlGetControlSecurityDescriptor(
     860        PSECURITY_DESCRIPTOR  pSecurityDescriptor,
     861        PSECURITY_DESCRIPTOR_CONTROL pControl,
     862        LPDWORD lpdwRevision)
     863{
     864        FIXME("(%p,%p,%p),stub!\n",pSecurityDescriptor,pControl,lpdwRevision);
     865        return STATUS_SUCCESS;
     866}               
     867
     868/**************************************************************************
     869 *                 RtlMakeSelfRelativeSD                [NTDLL.@]
     870 */
     871NTSTATUS WINAPI RtlMakeSelfRelativeSD(
     872        IN PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
     873        IN PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
     874        IN OUT LPDWORD lpdwBufferLength)
     875{
     876        FIXME("(%p,%p,%p(%lu))\n", pAbsoluteSecurityDescriptor,
     877        pSelfRelativeSecurityDescriptor, lpdwBufferLength,*lpdwBufferLength);
     878        return STATUS_SUCCESS;
     879}
  • trunk/src/advapi32/ADVAPI32.CPP

    r6510 r7983  
    1 /* $Id: ADVAPI32.CPP,v 1.19 2001-08-10 19:31:19 sandervl Exp $ */
     1/* $Id: ADVAPI32.CPP,v 1.20 2002-02-21 22:51:58 sandervl Exp $ */
    22
    33/*
     
    10051005
    10061006
    1007 /*****************************************************************************
    1008  * Name      : LookupAccountNameA
    1009  * Purpose   : The LookupAccountName function accepts the name of a system and
    1010  *             an account as input. It retrieves a security identifier (SID)
    1011  *             for the account and the name of the domain on which the account was found.
    1012  * Parameters: LPCSTR       lpSystemName           address of string for system name
    1013  *             LPCSTR       lpAccountName          address of string for account name
    1014  *             PSID          Sid                    address of security identifier
    1015  *             LPDWORD       cbSid                  address of size of security identifier
    1016  *             LPTSTR        ReferencedDomainName   address of string for referenced domain
    1017  *             LPDWORD       cbReferencedDomainName address of size of domain string
    1018  *             PSID_NAME_USE peUse                  address of SID-type indicator
    1019  * Variables :
    1020  * Result    :
    1021  * Remark    :
    1022  * Status    : UNTESTED STUB
    1023  *
    1024  * Author    : Patrick Haller [Tue, 1998/06/16 23:00]
    1025  *****************************************************************************/
    1026 
    1027 BOOL WIN32API LookupAccountNameA(LPCSTR       lpSystemName,
    1028                                     LPCSTR       lpAccountName,
    1029                                     PSID          Sid,
    1030                                     LPDWORD       cbSid,
    1031                                     LPTSTR        ReferencedDomainName,
    1032                                     LPDWORD       cbReferencedDomainName,
    1033                                     PSID_NAME_USE peUse)
    1034 {
    1035   dprintf(("ADVAPI32: LookupAccountNameA(%s,%s,%08xh,%08xh,%s,%08xh,%08xh) not implemented.\n",
    1036            lpSystemName,
    1037            lpAccountName,
    1038            Sid,
    1039            cbSid,
    1040            ReferencedDomainName,
    1041            cbReferencedDomainName,
    1042            peUse));
    1043 
    1044   return (FALSE); /* signal failure */
    1045 }
    1046 
    10471007
    10481008/*****************************************************************************
     
    16811641
    16821642
    1683 /*****************************************************************************
    1684  * Name      : SetKernelObjectSecurity
    1685  * Purpose   : The SetKernelObjectSecurity function sets the security of a kernel
    1686  *             object. For example, this can be a process, thread, or event.
    1687  * Parameters: HANDLE               hObject handle of object
    1688  *             SECURITY_INFORMATION si      type of information to set
    1689  *             PSECURITY_DESCRIPTOR psd     address of security descriptor
    1690  * Variables :
    1691  * Result    :
    1692  * Remark    :
    1693  * Status    : UNTESTED STUB
    1694  *
    1695  * Author    : Patrick Haller [Tue, 1998/06/16 23:00]
    1696  *****************************************************************************/
    1697 
    1698 BOOL WIN32API SetKernelObjectSecurity(HANDLE               hObject,
    1699                                          SECURITY_INFORMATION si,
    1700                                          PSECURITY_DESCRIPTOR psd)
    1701 {
    1702   dprintf(("ADVAPI32: SetKernelObjectSecurity(%08xh,%08xh,%08xh) not implemented.\n",
    1703            hObject,
    1704            si,
    1705            psd));
    1706 
    1707   return (FALSE); /* signal failure */
    1708 }
    1709 
    17101643
    17111644/*****************************************************************************
  • trunk/src/advapi32/lsa.cpp

    r4400 r7983  
    1 /* $Id: lsa.cpp,v 1.6 2000-10-03 05:38:09 bird Exp $ */
     1/* $Id: lsa.cpp,v 1.7 2002-02-21 22:51:59 sandervl Exp $ */
    22
    33/*
     
    284284                                      ULONG                CountOfRights);
    285285
    286 NTSTATUS WIN32API LsaClose(LSA_HANDLE hLsaObject);
    287286
    288287NTSTATUS WIN32API LsaCreateTrustedDomainEx(LSA_HANDLE                       PolicyHandle,
     
    317316                                               PULONG                   CountReturned);
    318317
    319 NTSTATUS WIN32API LsaFreeMemory(PVOID Buffer);
    320318
    321319NTSTATUS WIN32API LsaLookupNames(LSA_HANDLE                   PolicyHandle,
     
    325323                                 PLSA_TRANSLATED_SID*         Sids);
    326324
    327 NTSTATUS WIN32API LsaLookupSids(LSA_HANDLE                   PolicyHandle,
    328                                 ULONG                        Count,
    329                                 PSID*                        Sids,
    330                                 PLSA_REFERENCED_DOMAIN_LIST* ReferencedDomains,
    331                                 PLSA_TRANSLATED_NAME*        Names);
    332325
    333326ULONG WIN32API LsaNtStatusToWinError(NTSTATUS Status);
     
    343336                                             PLSA_HANDLE         TrustedDomainHandle);
    344337
    345 NTSTATUS WIN32API LsaQueryInformationPolicy(LSA_HANDLE               PolicyHandle,
    346                                             POLICY_INFORMATION_CLASS InformationClass,
    347                                             PVOID *                  Buffer);
    348338
    349339NTSTATUS WIN32API LsaQueryTrustedDomainInfo(LSA_HANDLE                 PolicyHandle,
     
    420410
    421411
    422 /*****************************************************************************
    423  * Name      : LsaClose
    424  * Purpose   : The LsaClose function closes a handle to an LSA policy object.
    425  * Parameters: LSA_HANDLE ObjectHandle
    426  * Variables :
    427  * Result    : NTSTATUS
    428  * Remark    :
    429  * Status    : UNTESTED STUB
    430  *
    431  * Author    : Patrick Haller [Thu, 1999/11/04 23:00]
    432  *****************************************************************************/
    433 
    434 ODINFUNCTION1(NTSTATUS,LsaClose,LSA_HANDLE,hLsaObject)
    435 {
    436   dprintf(("ADVAPI32:Lsa: LsaClose not implemented.\n"));
    437   return 0;
    438 }
    439412
    440413
     
    608581
    609582
    610 /*****************************************************************************
    611  * Name      : LsaFreeMemory
    612  * Purpose   : The LsaFreeMemory function frees memory allocated for
    613  *             an output buffer by an LSA function call. LSA functions that
    614  *             return variable-length output buffers always allocate the
    615  *             buffer on behalf of the caller. The caller must free this
    616  *             memory by passing the returned buffer pointer to
    617  *             LsaFreeMemory when the memory is no longer required.
    618  * Parameters: PVOID Buffer
    619  * Variables :
    620  * Result    : NTSTATUS
    621  * Remark    :
    622  * Status    : UNTESTED STUB
    623  *
    624  * Author    : Patrick Haller [Thu, 1999/11/04 23:00]
    625  *****************************************************************************/
    626 
    627 ODINFUNCTION1(NTSTATUS, LsaFreeMemory,
    628               PVOID,    Buffer)
    629 {
    630   dprintf(("ADVAPI32:Lsa: LsaFreeMemory not implemented.\n"));
    631   return 0;
    632 }
    633583
    634584
     
    663613
    664614
    665 /*****************************************************************************
    666  * Name      : LsaLookupSids
    667  * Purpose   : The LsaLookupSids function looks up the names
    668  *             that corresponding to an array of SIDs. If a name can
    669  *             not be mapped to a SID, LsaLookupSids converts
    670  *             the SID to character form.
    671  * Parameters: LSA_HANDLE PolicyHandle,
    672  *             ULONG                       Count
    673  *             PSID                        *Sids
    674  *             PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains
    675  *             PLSA_TRANSLATED_NAME        *Names
    676  * Variables :
    677  * Result    : NTSTATUS
    678  * Remark    :
    679  * Status    : UNTESTED STUB
    680  *
    681  * Author    : Patrick Haller [Thu, 1999/11/04 23:00]
    682  *****************************************************************************/
    683 
    684 ODINFUNCTION5(NTSTATUS,                    LsaLookupSids,
    685               LSA_HANDLE,                  PolicyHandle,
    686               ULONG,                       Count,
    687               PSID*,                       Sids,
    688               PLSA_REFERENCED_DOMAIN_LIST*,ReferencedDomains,
    689               PLSA_TRANSLATED_NAME*,       Names)
    690 {
    691   dprintf(("ADVAPI32:Lsa: LsaLookupNames not implemented.\n"));
    692   return 0;
    693 }
    694615
    695616
     
    745666}
    746667
    747 
    748 /*****************************************************************************
    749  * Name      : LsaQueryInformationPolicy
    750  * Purpose   : The LsaQueryInformationPolicy function
    751  *             retrieves information about an LSA policy object.
    752  * Parameters:  LSA_HANDLE PolicyHandle,
    753  *              POLICY_INFORMATION_CLASS InformationClass,
    754  *              PVOID *Buffer
    755  * Variables :
    756  * Result    : NTSTATUS
    757  * Remark    :
    758  * Status    : UNTESTED STUB
    759  *
    760  * Author    : Patrick Haller [Thu, 1999/11/04 23:00]
    761  *****************************************************************************/
    762 
    763 ODINFUNCTION3(NTSTATUS,                 LsaQueryInformationPolicy,
    764               LSA_HANDLE,               PolicyHandle,
    765               POLICY_INFORMATION_CLASS, InformationClass,
    766               PVOID *,                  Buffer)
    767 {
    768   dprintf(("ADVAPI32:Lsa: LsaQueryInformationPolicy not implemented.\n"));
    769   return 0;
    770 }
    771668
    772669
  • trunk/src/advapi32/makefile

    r7842 r7983  
    1 # $Id: makefile,v 1.29 2002-02-08 14:13:16 sandervl Exp $
     1# $Id: makefile,v 1.30 2002-02-21 22:52:00 sandervl Exp $
    22
    33#
     
    2222$(OBJDIR)\lsa.obj \
    2323$(OBJDIR)\security.obj \
     24$(OBJDIR)\security_odin.obj \
    2425$(OBJDIR)\systemfunction.obj \
    2526$(OBJDIR)\service.obj \
Note: See TracChangeset for help on using the changeset viewer.