1 | 'crt.sbp
|
---|
2 |
|
---|
3 | #ifndef _DEFINE_CRTDLL_NAME
|
---|
4 | Const _CrtDllName = "msvcrt"
|
---|
5 | #endif
|
---|
6 |
|
---|
7 | Declare Function _beginthread cdecl Lib _CrtDllName (start_address As VoidPtr, stack_size As DWord, arglist As VoidPtr) As HANDLE
|
---|
8 | Declare Function _beginthreadex cdecl Lib _CrtDllName (
|
---|
9 | security As *SECURITY_ATTRIBUTES,
|
---|
10 | stack_size As DWord,
|
---|
11 | start_address As VoidPtr,
|
---|
12 | arglist As VoidPtr,
|
---|
13 | initflag As DWord,
|
---|
14 | ByRef thrdaddr As DWord) As HANDLE
|
---|
15 | Declare Sub _endthread cdecl Lib _CrtDllName ()
|
---|
16 | Declare Sub _endthreadex cdecl Lib _CrtDllName (retval As DWord)
|
---|
17 |
|
---|
18 | Declare Function strstr cdecl Lib _CrtDllName (s1 As LPSTR, s2 As LPSTR) As LPSTR
|
---|
19 | Declare Function memmove cdecl Lib _CrtDllName (dest As VoidPtr, src As VoidPtr, count As SIZE_T) As VoidPtr
|
---|
20 | Declare Function _mbsstr cdecl Lib _CrtDllName (s1 As LPSTR, s2 As LPSTR) As LPSTR
|
---|
21 |
|
---|
22 | Declare Function memcmp CDecl Lib _CrtDllName (buf1 As VoidPtr, buf2 As VoidPtr, c As SIZE_T) As Long
|
---|
23 | Declare Function memicmp CDecl Lib _CrtDllName Alias "_memicmp" (buf1 As VoidPtr, buf2 As VoidPtr, c As SIZE_T) As Long
|
---|
24 |
|
---|
25 | TypeDef va_list = VoidPtr
|
---|
26 |
|
---|
27 | Declare Function sprintf CDecl Lib _CrtDllName (buffer As PSTR, format As PCSTR, ...) As Long
|
---|
28 | Declare Function _snprintf CDecl Lib _CrtDllName (buffer As PSTR, count As SIZE_T, format As PCSTR, ...) As Long
|
---|
29 | Declare Function _scprintf CDecl Lib _CrtDllName (format As PCSTR, ...) As Long
|
---|
30 | Declare Function vsprintf CDecl Lib _CrtDllName (buffer As PSTR, format As PCSTR, argptr As va_list) As Long
|
---|
31 | Declare Function _vsnprintf CDecl Lib _CrtDllName (buffer As PSTR, count As SIZE_T, format As PCSTR, argptr As va_list) As Long
|
---|
32 | Declare Function _vscprintf CDecl Lib _CrtDllName (format As PCSTR, argptr As va_list) As Long
|
---|
33 |
|
---|
34 | Declare Function swprintf CDecl Lib _CrtDllName (buffer As PWSTR, format As PCWSTR, ...) As Long
|
---|
35 | Declare Function _snwprintf CDecl Lib _CrtDllName (buffer As PWSTR, count As SIZE_T, format As PCWSTR, ...) As Long
|
---|
36 | Declare Function _scwprintf CDecl Lib _CrtDllName (format As PCWSTR, ...) As Long
|
---|
37 | Declare Function vswprintf CDecl Lib _CrtDllName (buffer As PWSTR, format As PCWSTR, argptr As va_list) As Long
|
---|
38 | Declare Function _vsnwprintf CDecl Lib _CrtDllName (buffer As PWSTR, count As SIZE_T, format As PCWSTR, argptr As va_list) As Long
|
---|
39 | Declare Function _vscwprintf CDecl Lib _CrtDllName (format As PCWSTR, argptr As va_list) As Long
|
---|
40 |
|
---|
41 | Declare Function sscanf CDecl Lib _CrtDllName (buffer As PCSTR, format As PCSTR, ...) As Long
|
---|
42 | Declare Function swscanf CDecl Lib _CrtDllName (buffer As PCWSTR, format As PCWSTR, ...) As Long
|
---|
43 |
|
---|
44 | #ifdef UNICODE
|
---|
45 | Declare Function _stprintf CDecl Lib _CrtDllName Alias "swprintf" (buffer As PWSTR, format As PCWSTR, ...) As Long
|
---|
46 | Declare Function _sntprintf CDecl Lib _CrtDllName Alias "_snwprintf" (buffer As PWSTR, count As SIZE_T, format As PCWSTR, ...) As Long
|
---|
47 | Declare Function _sctprintf CDecl Lib _CrtDllName Alias "_scwprintf" (format As PCWSTR, ...) As Long
|
---|
48 | Declare Function _vstprintf CDecl Lib _CrtDllName Alias "vswprintf" (buffer As PWSTR, format As PCWSTR, argptr As va_list) As Long
|
---|
49 | Declare Function _vsntprintf CDecl Lib _CrtDllName Alias "_vsnwprintf" (buffer As PWSTR, count As SIZE_T, format As PCWSTR, argptr As va_list) As Long
|
---|
50 | Declare Function _vsctprintf CDecl Lib _CrtDllName Alias "_vscwprintf" (format As PCWSTR, argptr As va_list) As Long
|
---|
51 |
|
---|
52 | Declare Function _stscanf CDecl Lib _CrtDllName Alias "swscanf" (buffer As PCWSTR, format As PCWSTR, ...) As Long
|
---|
53 | #else
|
---|
54 | Declare Function _stprintf CDecl Lib _CrtDllName Alias "sprintf" (buffer As PSTR, format As PCSTR, ...) As Long
|
---|
55 | Declare Function _sntprintf CDecl Lib _CrtDllName Alias "_snprintf" (buffer As PSTR, count As SIZE_T, format As PCSTR, ...) As Long
|
---|
56 | Declare Function _sctprintf CDecl Lib _CrtDllName Alias "_scprintf" (format As PCSTR, ...) As Long
|
---|
57 | Declare Function _vstprintf CDecl Lib _CrtDllName Alias "vsprintf" (buffer As PSTR, format As PCSTR, argptr As va_list) As Long
|
---|
58 | Declare Function _vsntprintf CDecl Lib _CrtDllName Alias "_vsnprintf" (buffer As PSTR, count As SIZE_T, format As PCSTR, argptr As va_list) As Long
|
---|
59 | Declare Function _vsctprintf CDecl Lib _CrtDllName Alias "_vscprintf" (format As PCSTR, argptr As va_list) As Long
|
---|
60 |
|
---|
61 | Declare Function _stscanf CDecl Lib _CrtDllName Alias "sscanf" (buffer As PCSTR, format As PCSTR, ...) As Long
|
---|
62 | #endif
|
---|
63 |
|
---|
64 | Declare Function strtol CDecl Lib _CrtDllName (s As PCSTR, ByRef endPtr As PSTR, base As Long) As Long
|
---|
65 | Declare Function wcstol CDecl Lib _CrtDllName (s As PCWSTR, ByRef endPtr As PWSTR, base As Long) As Long
|
---|
66 |
|
---|
67 | #ifdef UNICODE
|
---|
68 | Declare Function _tcstol CDecl Lib _CrtDllName Alias "wcstol" (s As PCTSTR, ByRef endPtr As PTSTR, base As Long) As Long
|
---|
69 | #else
|
---|
70 | Declare Function _tcstol CDecl Lib _CrtDllName Alias "strtol" (s As PCTSTR, ByRef endPtr As PTSTR, base As Long) As Long
|
---|
71 | #endif
|
---|
72 |
|
---|
73 | Declare Function memcmp cdecl lib "msvcrt" (p1 As VoidPtr, p2 As VoidPtr, n As SIZE_T) As Long
|
---|
74 | Declare Function wmemcmp cdecl lib "msvcrt" (p1 As *WCHAR, p2 As WCHAR, n As SIZE_T) As Long
|
---|