RegressionTests__ExternalInterfaceTests.st
author Claus Gittinger <cg@exept.de>
Thu, 17 May 2018 23:11:54 +0200
changeset 1931 bdc99c92a5a6
parent 1447 2351db93aa5b
child 1500 d406a10b2965
child 2089 650f7c30736e
permissions -rw-r--r--
initial checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
     1
"{ Package: 'stx:goodies/regression' }"
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ NameSpace: RegressionTests }"
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
TestCase subclass:#ExternalInterfaceTests
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:''
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	category:'tests-Regression'
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
!ExternalInterfaceTests class methodsFor:'documentation'!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
documentation
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
"
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
    documentation to be added.
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
    [author:]
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    19
	cg (cg@FUSI)
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
    [instance variables:]
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
    [class variables:]
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
    [see also:]
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
"
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
history
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
    "Created: / 23-04-2006 / 08:13:27 / cg"
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
! !
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    34
!ExternalInterfaceTests methodsFor:'procedures'!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    35
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    36
CreateProcess: imageName commandLine: commandLine pSecurity: pSecurity tSecurity: tSecurity inheritHandles: inheritHandles creationFlags: creationFlags environment: environment currentDirectoryName: currentDirectoryName startupInfo: startupInfo processInfo: processInfo
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    37
    "Create a new process running in a separate address space. n.b., we use CreateProcessA
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    38
    (the ANSI version) rather than CreateProcessW (the UNICODE/wide version) as we want the
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    39
    daemon, vworad, to receive its command line arguments as ANSI strings not wide strings."
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    40
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    41
    <C: BOOL CreateProcessA(
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    42
	    LPCTSR imageName,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    43
	    LPCTSTR commandLine,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    44
	    struct SECURITY_ATTRIBUTES *pSecurity,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    45
	    struct SECURITY_ATTRIBUTES *tSecurity,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    46
	    BOOL inheritHandles,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    47
	    DWORD creationFlags,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    48
	    LPVOID environment,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    49
	    LPTSTR currentDirectoryName,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    50
	    struct STARTUPINFO *startupInfo,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    51
	    struct PROCESS_INFORMATION *processInfo)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    52
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    53
"
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    54
self new
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    55
 CreateProcess: 'foo' commandLine: 'foo bla' pSecurity: nil tSecurity: nil inheritHandles: false
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    56
 creationFlags: 0 environment: nil currentDirectoryName: 'baz' startupInfo: nil processInfo: nil
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    57
"
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    58
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    59
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    60
TerminateProcess: hProcess exitCode: dwExitCode
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    61
	"Kill the specified process."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    62
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    63
	self primTerminateProcess: hProcess exitCode: 1234
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    64
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    65
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    66
closeHandle: aHandle
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    67
	"Close an OS Handle decrementing it's use count."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    68
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    69
	<C: int CloseHandle(HANDLE aHandle)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    70
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    71
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    72
primTerminateProcess: hProcess exitCode: dwExitCode
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    73
	"Kill the specified process."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    74
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    75
	<C: BOOL TerminateProcess(HANDLE hProcess, DWORD dwExitCode)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    76
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    77
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    78
setCurrentDirectory: pathName
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    79
	"Set the current working directory."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    80
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    81
	<C: BOOL _wincall SetCurrentDirectoryA(LPCTSTR pathName)>
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    82
	^self externalAccessFailedWith: _errorCode
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    83
! !
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    84
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    85
!ExternalInterfaceTests methodsFor:'structs'!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    86
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    87
PROCESS_INFORMATION
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    88
	"Describes a created process and its main thread."
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    89
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    90
	<C: struct PROCESS_INFORMATION {
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    91
			HANDLE hProcess;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    92
			HANDLE hThread;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    93
			DWORD dwProcessId;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    94
			DWORD dwThreadId;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    95
		}>
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    96
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    97
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
    98
SECURITY_ATTRIBUTES
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
    99
	"Describes security of associated process."
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   100
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   101
	<C: struct SECURITY_ATTRIBUTES {
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   102
			DWORD nLength;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   103
			LPVOID lpSecurityDescriptor;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   104
			BOOL bInheritHandle;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   105
		}>
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   106
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   107
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   108
STARTUPINFO
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   109
	"Describes how we want the process to be started."
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   110
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   111
	<C: struct STARTUPINFO {
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   112
			DWORD   cb;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   113
			LPSTR           lpReserved;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   114
			LPSTR           lpDesktop;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   115
			LPSTR           lpTitle;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   116
			DWORD           dwX;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   117
			DWORD           dwY;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   118
			DWORD           dwXSize;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   119
			DWORD           dwYSize;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   120
			DWORD           dwXCountChars;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   121
			DWORD           dwYCountChars;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   122
			DWORD           dwFillAttribute;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   123
			DWORD           dwFlags;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   124
			WORD            wShowWindow;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   125
			WORD            cbReserved2;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   126
			LPBYTE          lpReserved2;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   127
			HANDLE  hStdInput;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   128
			HANDLE  hStdOutput;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   129
			HANDLE  hStdError;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   130
		}>
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   131
! !
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   132
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!ExternalInterfaceTests methodsFor:'tests'!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    |fn|
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   138
    OperatingSystem isMSWINDOWSlike ifFalse:[
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   139
	"This test makes sense only on windows"
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   140
	^ self.
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   141
    ].
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   142
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
    fn := ExternalLibraryFunction
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   144
	    name:'Beep'
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   145
	    module:'kernel32.dll'
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   146
	    returnType:(CType bool)
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   147
	    argumentTypes:(Array with:(CType unsignedLong) with:(CType unsignedLong)).
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   149
    fn beCallTypeAPI.
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    fn invokeWith:440 with:1.
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    "
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
     self run:#test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
     self new test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
! !
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   158
!ExternalInterfaceTests methodsFor:'types'!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   159
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   160
BOOL
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   161
    <C: typedef long BOOL>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   162
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   163
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   164
     self new BOOL
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   165
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   166
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   167
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   168
BYTE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   169
    <C: typedef unsigned char BYTE>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   170
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   171
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   172
     self new BYTE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   173
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   174
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   175
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   176
DWORD
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   177
    <C: typedef unsigned long DWORD>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   178
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   179
    "
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   180
       self new DWORD
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   181
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   182
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   183
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   184
HANDLE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   185
    <C: typedef void * HANDLE>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   186
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   187
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   188
     self new HANDLE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   189
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   190
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   191
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   192
LPBYTE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   193
    <C: typedef BYTE *LPBYTE>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   194
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   195
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   196
     self new LPBYTE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   197
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   198
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   199
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   200
LPCTSR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   201
    <C: typedef void * LPCTSR>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   202
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   203
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   204
     self new LPCTSR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   205
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   206
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   207
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   208
LPCTSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   209
    <C: typedef void * LPCTSTR>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   210
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   211
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   212
     self new LPCTSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   213
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   214
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   215
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   216
LPSIZE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   217
    <C: typedef SIZE * LPSIZE>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   218
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   219
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   220
     self new LPSIZE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   221
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   222
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   223
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   224
LPSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   225
    <C: typedef char * LPSTR>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   226
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   227
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   228
     self new LPSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   229
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   230
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   231
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   232
LPTSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   233
    <C: typedef void * LPTSTR>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   234
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   235
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   236
     self new LPTSTR
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   237
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   238
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   239
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   240
LPVOID
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   241
    <C: typedef void * LPVOID>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   242
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   243
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   244
     self new LPVOID
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   245
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   246
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   247
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   248
SIZE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   249
    <C: typedef struct {
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   250
	    long cx;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   251
	    long cy;
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   252
    } SIZE>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   253
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   254
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   255
     self new SIZE
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   256
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   257
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   258
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   259
WORD
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   260
    <C: typedef unsigned short WORD>
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   261
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   262
    "
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   263
     self new WORD
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   264
    "
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   265
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   266
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   267
fooType
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   268
   <C: struct foo {
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   269
	long l1;
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   270
	float f1;
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   271
   }>
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   272
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   273
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   274
     self new fooType
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   275
    "
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   276
!
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   277
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   278
var1
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   279
    <C: #define var1 1234>
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   280
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   281
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   282
     self new var1
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   283
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   284
!
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   285
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   286
var2
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   287
    <C: #define var1 "hello">
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   288
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   289
    "
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   290
     self new var2
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   291
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   292
!
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   293
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   294
var3
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   295
    <C: #define var1 1.2345>
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   296
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   297
    "
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   298
     self new var3
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   299
    "
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   300
! !
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   301
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
!ExternalInterfaceTests class methodsFor:'documentation'!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
version
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
    ^ '$Header$'
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
! !