Fixed some more STDCALL issues

svn path=/trunk/; revision=905
This commit is contained in:
Eric Kohl 1999-12-27 15:06:13 +00:00
parent 38d1018911
commit 005106acbb
8 changed files with 103 additions and 38 deletions

View file

@ -1,4 +1,4 @@
/* $Id: rtl.h,v 1.22 1999/12/26 17:22:18 ea Exp $ /* $Id: rtl.h,v 1.23 1999/12/27 15:04:50 ekohl Exp $
* *
*/ */
@ -865,6 +865,20 @@ RtlRetrieveUshort (
PUSHORT SourceAddress PUSHORT SourceAddress
); );
VOID
STDCALL
RtlSecondsSince1970ToTime (
ULONG SecondsSince1970,
PLARGE_INTEGER Time
);
VOID
STDCALL
RtlSecondsSince1980ToTime (
ULONG SecondsSince1980,
PLARGE_INTEGER Time
);
NTSTATUS NTSTATUS
STDCALL STDCALL
RtlSetDaclSecurityDescriptor ( RtlSetDaclSecurityDescriptor (
@ -908,12 +922,28 @@ RtlStoreUshort (
); );
BOOLEAN BOOLEAN
STDCALL
RtlTimeFieldsToTime ( RtlTimeFieldsToTime (
PTIME_FIELDS TimeFields, PTIME_FIELDS TimeFields,
PLARGE_INTEGER Time PLARGE_INTEGER Time
); );
BOOLEAN
STDCALL
RtlTimeToSecondsSince1970 (
PLARGE_INTEGER Time,
PULONG SecondsSince1970
);
BOOLEAN
STDCALL
RtlTimeToSecondsSince1980 (
PLARGE_INTEGER Time,
PULONG SecondsSince1980
);
VOID VOID
STDCALL
RtlTimeToTimeFields ( RtlTimeToTimeFields (
PLARGE_INTEGER Time, PLARGE_INTEGER Time,
PTIME_FIELDS TimeFields PTIME_FIELDS TimeFields

View file

@ -1,4 +1,4 @@
; $Id: ntdll.def,v 1.31 1999/12/22 14:48:23 dwelch Exp $ ; $Id: ntdll.def,v 1.32 1999/12/27 15:06:13 ekohl Exp $
; ;
; ReactOS Operating System ; ReactOS Operating System
; ;
@ -487,7 +487,7 @@ RtlLargeIntegerNegate@8
RtlLargeIntegerShiftLeft@12 RtlLargeIntegerShiftLeft@12
RtlLargeIntegerShiftRight@12 RtlLargeIntegerShiftRight@12
RtlLargeIntegerSubtract@16 RtlLargeIntegerSubtract@16
RtlLengthSecurityDescriptor RtlLengthSecurityDescriptor@4
RtlLockHeap@4 RtlLockHeap@4
RtlMoveMemory@12 RtlMoveMemory@12
RtlMultiByteToUnicodeN@20 RtlMultiByteToUnicodeN@20

View file

@ -1,4 +1,4 @@
; $Id: ntdll.edf,v 1.21 1999/12/22 14:48:23 dwelch Exp $ ; $Id: ntdll.edf,v 1.22 1999/12/27 15:06:13 ekohl Exp $
; ;
; ReactOS Operating System ; ReactOS Operating System
; ;
@ -482,7 +482,7 @@ RtlLargeIntegerNegate=RtlLargeIntegerNegate@8
RtlLargeIntegerShiftLeft=RtlLargeIntegerShiftLeft@12 RtlLargeIntegerShiftLeft=RtlLargeIntegerShiftLeft@12
RtlLargeIntegerShiftRight=RtlLargeIntegerShiftRight@12 RtlLargeIntegerShiftRight=RtlLargeIntegerShiftRight@12
RtlLargeIntegerSubtract=RtlLargeIntegerSubtract@16 RtlLargeIntegerSubtract=RtlLargeIntegerSubtract@16
RtlLengthSecurityDescriptor RtlLengthSecurityDescriptor=RtlLengthSecurityDescriptor@4
RtlLockHeap=RtlLockHeap@4 RtlLockHeap=RtlLockHeap@4
RtlMoveMemory=RtlMoveMemory@12 RtlMoveMemory=RtlMoveMemory@12
RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20 RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20

View file

@ -1,4 +1,5 @@
/* /* $Id: security.c,v 1.2 1999/12/27 15:06:00 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* PURPOSE: Rtl security functions * PURPOSE: Rtl security functions
@ -16,7 +17,11 @@
/* FUNCTIONS ***************************************************************/ /* FUNCTIONS ***************************************************************/
ULONG RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor) ULONG
STDCALL
RtlLengthSecurityDescriptor (
PSECURITY_DESCRIPTOR SecurityDescriptor
)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
} }

View file

@ -51,8 +51,12 @@ static __inline void NormalizeTimeFields(CSHORT *FieldToNormalize,
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
VOID RtlTimeToTimeFields(PLARGE_INTEGER liTime, VOID
PTIME_FIELDS TimeFields) STDCALL
RtlTimeToTimeFields (
PLARGE_INTEGER liTime,
PTIME_FIELDS TimeFields
)
{ {
const int *Months; const int *Months;
int LeapSecondCorrections, SecondsInDay, CurYear; int LeapSecondCorrections, SecondsInDay, CurYear;
@ -121,8 +125,12 @@ VOID RtlTimeToTimeFields(PLARGE_INTEGER liTime,
TimeFields->Day = (CSHORT) (Days + 1); TimeFields->Day = (CSHORT) (Days + 1);
} }
BOOLEAN RtlTimeFieldsToTime(PTIME_FIELDS tfTimeFields, BOOLEAN
PLARGE_INTEGER Time) STDCALL
RtlTimeFieldsToTime (
PTIME_FIELDS tfTimeFields,
PLARGE_INTEGER Time
)
{ {
int CurYear, CurMonth; int CurYear, CurMonth;
long long int rcTime; long long int rcTime;
@ -182,3 +190,5 @@ BOOLEAN RtlTimeFieldsToTime(PTIME_FIELDS tfTimeFields,
return TRUE; return TRUE;
} }
/* EOF */

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.def,v 1.34 1999/12/26 20:21:02 ea Exp $ ; $Id: ntoskrnl.def,v 1.35 1999/12/27 15:05:33 ekohl Exp $
; ;
; reactos/ntoskrnl/ntoskrnl.def ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -251,12 +251,12 @@ RtlMultiByteToUnicodeSize@12
RtlOemStringToUnicodeSize@4 RtlOemStringToUnicodeSize@4
RtlOemStringToUnicodeString@12 RtlOemStringToUnicodeString@12
RtlOemToUnicodeN@20 RtlOemToUnicodeN@20
RtlSecondsSince1970ToTime RtlSecondsSince1970ToTime@8
RtlSecondsSince1980ToTime RtlSecondsSince1980ToTime@8
RtlTimeFieldsToTime RtlTimeFieldsToTime@8
RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1970@8
RtlTimeToSecondsSince1980 RtlTimeToSecondsSince1980@8
RtlTimeToTimeFields RtlTimeToTimeFields@8
RtlUnicodeStringToAnsiSize@4 RtlUnicodeStringToAnsiSize@4
RtlUnicodeStringToAnsiString@12 RtlUnicodeStringToAnsiString@12
RtlUnicodeStringToInteger@12 RtlUnicodeStringToInteger@12

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.edf,v 1.21 1999/12/26 20:21:02 ea Exp $ ; $Id: ntoskrnl.edf,v 1.22 1999/12/27 15:05:33 ekohl Exp $
; ;
; reactos/ntoskrnl/ntoskrnl.def ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -250,12 +250,12 @@ RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20
RtlMultiByteToUnicodeSize=RtlMultiByteToUnicodeSize@12 RtlMultiByteToUnicodeSize=RtlMultiByteToUnicodeSize@12
RtlOemStringToUnicodeSize=RtlOemStringToUnicodeSize@4 RtlOemStringToUnicodeSize=RtlOemStringToUnicodeSize@4
RtlOemStringToUnicodeString=RtlOemStringToUnicodeString@12 RtlOemStringToUnicodeString=RtlOemStringToUnicodeString@12
RtlSecondsSince1970ToTime RtlSecondsSince1970ToTime=RtlSecondsSince1970ToTime@8
RtlSecondsSince1980ToTime RtlSecondsSince1980ToTime=RtlSecondsSince1980ToTime@8
RtlTimeFieldsToTime RtlTimeFieldsToTime=RtlTimeFieldsToTime@8
RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1970=RtlTimeToSecondsSince1970@8
RtlTimeToSecondsSince1980 RtlTimeToSecondsSince1980=RtlTimeToSecondsSince1980@8
RtlTimeToTimeFields RtlTimeToTimeFields=RtlTimeToTimeFields@8
RtlUnicodeStringToAnsiSize=RtlUnicodeStringToAnsiSize@4 RtlUnicodeStringToAnsiSize=RtlUnicodeStringToAnsiSize@4
RtlUnicodeStringToAnsiString=RtlUnicodeStringToAnsiString@12 RtlUnicodeStringToAnsiString=RtlUnicodeStringToAnsiString@12
RtlUnicodeStringToInteger=RtlUnicodeStringToInteger@12 RtlUnicodeStringToInteger=RtlUnicodeStringToInteger@12

View file

@ -1,4 +1,4 @@
/* $Id: time.c,v 1.8 1999/10/24 17:51:54 ekohl Exp $ /* $Id: time.c,v 1.9 1999/12/27 15:05:15 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -58,8 +58,12 @@ static __inline void NormalizeTimeFields(CSHORT *FieldToNormalize,
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
VOID RtlTimeToTimeFields(PLARGE_INTEGER liTime, VOID
PTIME_FIELDS TimeFields) STDCALL
RtlTimeToTimeFields (
PLARGE_INTEGER liTime,
PTIME_FIELDS TimeFields
)
{ {
const int *Months; const int *Months;
int LeapSecondCorrections, SecondsInDay, CurYear; int LeapSecondCorrections, SecondsInDay, CurYear;
@ -128,8 +132,12 @@ VOID RtlTimeToTimeFields(PLARGE_INTEGER liTime,
TimeFields->Day = (CSHORT) (Days + 1); TimeFields->Day = (CSHORT) (Days + 1);
} }
BOOLEAN RtlTimeFieldsToTime(PTIME_FIELDS tfTimeFields, BOOLEAN
PLARGE_INTEGER Time) STDCALL
RtlTimeFieldsToTime (
PTIME_FIELDS tfTimeFields,
PLARGE_INTEGER Time
)
{ {
int CurYear, CurMonth, MonthLength; int CurYear, CurMonth, MonthLength;
long long int rcTime; long long int rcTime;
@ -197,8 +205,11 @@ BOOLEAN RtlTimeFieldsToTime(PTIME_FIELDS tfTimeFields,
VOID VOID
RtlSecondsSince1970ToTime (ULONG SecondsSince1970, STDCALL
PLARGE_INTEGER Time) RtlSecondsSince1970ToTime (
ULONG SecondsSince1970,
PLARGE_INTEGER Time
)
{ {
LONGLONG llTime; LONGLONG llTime;
@ -209,8 +220,11 @@ RtlSecondsSince1970ToTime (ULONG SecondsSince1970,
VOID VOID
RtlSecondsSince1980ToTime (ULONG SecondsSince1980, STDCALL
PLARGE_INTEGER Time) RtlSecondsSince1980ToTime (
ULONG SecondsSince1980,
PLARGE_INTEGER Time
)
{ {
LONGLONG llTime; LONGLONG llTime;
@ -221,8 +235,11 @@ RtlSecondsSince1980ToTime (ULONG SecondsSince1980,
BOOLEAN BOOLEAN
RtlTimeToSecondsSince1970 (PLARGE_INTEGER Time, STDCALL
PULONG SecondsSince1970) RtlTimeToSecondsSince1970 (
PLARGE_INTEGER Time,
PULONG SecondsSince1970
)
{ {
LARGE_INTEGER liTime; LARGE_INTEGER liTime;
@ -239,8 +256,11 @@ RtlTimeToSecondsSince1970 (PLARGE_INTEGER Time,
BOOLEAN BOOLEAN
RtlTimeToSecondsSince1980 (PLARGE_INTEGER Time, STDCALL
PULONG SecondsSince1980) RtlTimeToSecondsSince1980 (
PLARGE_INTEGER Time,
PULONG SecondsSince1980
)
{ {
LARGE_INTEGER liTime; LARGE_INTEGER liTime;