-
Notifications
You must be signed in to change notification settings - Fork 0
/
nduCType.pas
83 lines (70 loc) · 2.91 KB
/
nduCType.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{*------------------------------------------------------------------------------
C Typen Deklaration (Übersetztung der Variabeln von C in Delphi)
@Author nitschchedu
@Version 1 Alpha
@Todo C Typen Convertation
-------------------------------------------------------------------------------}
unit nduCType;
interface
uses
Windows, Classes;
type
//*** Übersetztung der Variabeln von C in Delphi ***//
//*** ------------------------------------------ ***//
//C //Delphi //Komentar
//*** ------------------------------------------ ***//
Bool = LongBool; ///C Bool
Int = Integer; ///C Int
unsigned_short = Word; ///C unsigned short
ushort = Word; ///C ushort
short = Smallint; ///C short
signed_short = Smallint; ///C signed short
UINT = Cardinal; ///C UINT
DWORD = Cardinal; ///C DWORD
unsigned_long = Cardinal; ///C unsigned short
unsigned_long_int = Cardinal; ///C unsigned short int
ulong = Cardinal; ///C ULong
long = Longint; ///C Long
signed_char = Shortint; ///C signed char
unsigned_char = Byte; ///C unsigned char
uchar = Byte; ///C UChar
LPSTR = PChar; ///C LPSTR
PSTR = PChar; ///C PSTR
//C Void (Gibt es nicht in Delphi) (ist ne procedure)
//void = Pointer;
PVOID = Pointer; ///C PVoid
PPVOID = ^PVOID; ///C ppvoid
float = Single; ///C float
long_double = Extended; ///C long double
wchar = WideChar; ///C WChar
ulonglong = TLargeInteger; ///C ulonglong
LPCTSTR = PWideChar; ///C LPCTSTR
Handle = THandle; ///C Handle
LPByte = PByte; ///C LPByte
PLPCWSTR = ^LPCWSTR; ///C PLPCWSTR
PPByte = ^PByte; ///C PPByte
unsigned_int = Cardinal; ///C unsigned int
Punsigned_int = ^unsigned_int; ///C unsigned int *
unsigned = Cardinal; ///C unsigned
LPVOID = Pointer; ///C LPVOID
ULONG_PTR = LongWord; ///C ULONG_PTR
PTSTR = LPWSTR; ///C PTSTR
PPTSTR = ^PTSTR; ///C PPTSTR
int32 = Longint; ///C int32
//*** ------------------------------------------ ***//
//*** ------------------------------------------ ***//
//*** ------------------------------------------ ***//
//*** crtdefs.h ***//
Tndu_time32_t = long; ///C time32_t aus der crtdefs.h
Tndu_errno_t = Integer; ///C errno_t aus der crtdefs.h
Tndu_size_t = Int64; ///C size_t aus der crtdefs.h
//*** ------------------------------------------ ***//
//*** ------------------------------------------ ***//
_SecHandle = record
dwLower: ULONG_PTR;
dwUpper: ULONG_PTR;
end;
SecHandle = _SecHandle;
PSecHandle = ^SecHandle;
implementation
end.