RegressionTests__ExternalInterfaceTests.st
author Claus Gittinger <cg@exept.de>
Fri, 16 Aug 2019 19:43:44 +0200
changeset 2386 76737c597924
parent 2092 5784e2503949
permissions -rw-r--r--
#UI_ENHANCEMENT by exept class: RegressionTests::ExternalInterfaceTests changed: #test_call_03
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
2091
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    34
!ExternalInterfaceTests methodsFor:'structs'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    35
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    36
PROCESS_INFORMATION
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    37
	"Describes a created process and its main thread."
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    38
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    39
	<C: struct PROCESS_INFORMATION {
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    40
			HANDLE hProcess;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    41
			HANDLE hThread;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    42
			DWORD dwProcessId;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    43
			DWORD dwThreadId;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    44
		}>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    45
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    46
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    47
!ExternalInterfaceTests methodsFor:'structs'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    48
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    49
SECURITY_ATTRIBUTES
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    50
	"Describes security of associated process."
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    51
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    52
	<C: struct SECURITY_ATTRIBUTES {
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    53
			DWORD nLength;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    54
			LPVOID lpSecurityDescriptor;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    55
			BOOL bInheritHandle;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    56
		}>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    57
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    58
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    59
!ExternalInterfaceTests methodsFor:'structs'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    60
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    61
STARTUPINFOA
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    62
	"Describes how we want the process to be started."
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    63
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    64
	<C: struct STARTUPINFOA {
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    65
			DWORD   cb;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    66
			LPSTR           lpReserved;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    67
			LPSTR           lpDesktop;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    68
			LPSTR           lpTitle;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    69
			DWORD           dwX;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    70
			DWORD           dwY;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    71
			DWORD           dwXSize;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    72
			DWORD           dwYSize;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    73
			DWORD           dwXCountChars;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    74
			DWORD           dwYCountChars;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    75
			DWORD           dwFillAttribute;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    76
			DWORD           dwFlags;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    77
			WORD            wShowWindow;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    78
			WORD            cbReserved2;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    79
			LPBYTE          lpReserved2;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    80
			HANDLE  hStdInput;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    81
			HANDLE  hStdOutput;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    82
			HANDLE  hStdError;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    83
		}>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    84
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    85
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    86
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    87
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    88
BOOL
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    89
    <C: typedef long BOOL>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    90
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    91
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    92
     self new BOOL
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    93
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    94
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    95
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    96
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    97
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    98
BYTE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
    99
    <C: typedef unsigned char BYTE>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   100
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   101
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   102
     self new BYTE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   103
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   104
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   105
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   106
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   107
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   108
DWORD
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   109
    <C: typedef unsigned long DWORD>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   110
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   111
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   112
       self new DWORD
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   113
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   114
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   115
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   116
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   117
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   118
HANDLE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   119
    <C: typedef void * HANDLE>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   120
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   121
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   122
     self new HANDLE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   123
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   124
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   125
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   126
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   127
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   128
LPBYTE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   129
    <C: typedef BYTE *LPBYTE>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   130
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   131
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   132
     self new LPBYTE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   133
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   134
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   135
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   136
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   137
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   138
LPCTSR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   139
    <C: typedef void * LPCTSR>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   140
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   141
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   142
     self new LPCTSR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   143
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   144
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   145
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   146
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   147
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   148
LPCTSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   149
    <C: typedef void * LPCTSTR>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   150
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   151
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   152
     self new LPCTSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   153
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   154
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   155
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   156
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   157
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   158
LPSIZE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   159
    <C: typedef SIZE * LPSIZE>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   160
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   161
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   162
     self new LPSIZE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   163
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   164
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   165
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   166
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   167
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   168
LPSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   169
    <C: typedef char * LPSTR>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   170
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   171
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   172
     self new LPSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   173
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   174
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   175
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   176
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   177
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   178
LPTSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   179
    <C: typedef void * LPTSTR>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   180
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   181
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   182
     self new LPTSTR
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   183
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   184
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   185
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   186
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   187
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   188
LPVOID
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   189
    <C: typedef void * LPVOID>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   190
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   191
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   192
     self new LPVOID
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   193
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   194
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   195
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   196
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   197
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   198
SIZE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   199
    <C: typedef struct {
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   200
	    long cx;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   201
	    long cy;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   202
    } SIZE>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   203
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   204
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   205
     self new SIZE
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   206
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   207
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   208
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   209
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   210
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   211
WORD
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   212
    <C: typedef unsigned short WORD>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   213
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   214
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   215
     self new WORD
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   216
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   217
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   218
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   219
!ExternalInterfaceTests methodsFor:'types'!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   220
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   221
fooType
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   222
   <C: struct foo {
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   223
	long l1;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   224
	float f1;
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   225
   }>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   226
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   227
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   228
     self new fooType
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   229
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   230
! !
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   231
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   232
!ExternalInterfaceTests methodsFor:'procedures'!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   233
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   234
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
   235
    "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
   236
    (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
   237
    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
   238
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   239
    <C: BOOL CreateProcessA(
2089
650f7c30736e wrong types fixed
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   240
	    LPCSTR imageName,
650f7c30736e wrong types fixed
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   241
	    LPSTR commandLine,
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   242
	    struct SECURITY_ATTRIBUTES *pSecurity,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   243
	    struct SECURITY_ATTRIBUTES *tSecurity,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   244
	    BOOL inheritHandles,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   245
	    DWORD creationFlags,
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   246
	    LPVOID environment,
2089
650f7c30736e wrong types fixed
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   247
	    LPCSTR currentDirectoryName,
650f7c30736e wrong types fixed
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
   248
	    struct STARTUPINFOA *startupInfo,
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   249
	    struct PROCESS_INFORMATION *processInfo)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   250
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   251
"
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   252
self new
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   253
 CreateProcess: 'foo' commandLine: 'foo bla' pSecurity: nil tSecurity: nil inheritHandles: false
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   254
 creationFlags: 0 environment: nil currentDirectoryName: 'baz' startupInfo: nil processInfo: nil
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   255
"
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   256
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   257
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   258
TerminateProcess: hProcess exitCode: dwExitCode
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   259
	"Kill the specified process."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   260
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   261
	self primTerminateProcess: hProcess exitCode: 1234
325
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
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   264
closeHandle: aHandle
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   265
	"Close an OS Handle decrementing it's use count."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   266
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   267
	<C: int CloseHandle(HANDLE aHandle)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   268
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   269
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   270
primTerminateProcess: hProcess exitCode: dwExitCode
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   271
	"Kill the specified process."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   272
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   273
	<C: BOOL TerminateProcess(HANDLE hProcess, DWORD dwExitCode)>
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   274
!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   275
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   276
setCurrentDirectory: pathName
2091
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   277
        "Set the current working directory."
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   278
2091
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   279
        <C: BOOL _wincall
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   280
            SetCurrentDirectoryA(LPCSTR pathName)>
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   281
        "/ ^self externalAccessFailedWith: _errorCode
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   282
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   283
    "Modified: / 04-03-2019 / 11:15:34 / Claus Gittinger"
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   284
! !
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   285
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   286
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
!ExternalInterfaceTests methodsFor:'tests'!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    |fn|
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   292
    OperatingSystem isMSWINDOWSlike ifFalse:[
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   293
	"This test makes sense only on windows"
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   294
	^ self.
671
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   295
    ].
3c017f244c8e changed: #test_call_01
Stefan Vogel <sv@exept.de>
parents: 544
diff changeset
   296
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
    fn := ExternalLibraryFunction
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   298
	    name:'Beep'
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   299
	    module:'kernel32.dll'
2090
94c3f840c088 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2089
diff changeset
   300
	    callType:'api'
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   301
	    returnType:(CType bool)
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   302
	    argumentTypes:(Array with:(CType unsignedLong) with:(CType unsignedLong)).
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    fn invokeWith:440 with:1.
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
    "
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
     self run:#test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
     self new test_call_01
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
    "
2091
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   310
!
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   311
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   312
test_call_02
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   313
    |fn|
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   314
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   315
    fn := ExternalLibraryFunction
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   316
            name:'printf'
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   317
            module:'libc'
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   318
            returnType:(CType void)
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   319
            argumentTypes:(Array with:(CType charPointer) 
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   320
                                 with:(CType int)).
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   321
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   322
    fn invokeWith:c'hello world %d\n' with:1.
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   323
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   324
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   325
     self run:#test_call_02
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   326
     self new test_call_02
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   327
    "
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   328
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   329
    "Created: / 04-03-2019 / 11:12:23 / Claus Gittinger"
2092
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   330
!
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   331
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   332
test_call_03
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   333
    |fn nsApp|
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   334
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   335
    OperatingSystem isOSXlike ifFalse:[
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   336
        "This test makes sense only on OSX"
2386
76737c597924 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 2092
diff changeset
   337
        self skip:'Skipped on non-OSX systems'.
2092
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   338
    ].
2386
76737c597924 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 2092
diff changeset
   339
    ObjCClass isNil ifTrue:[
76737c597924 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 2092
diff changeset
   340
        self skip:'ObjCClass not loaded'.
76737c597924 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 2092
diff changeset
   341
    ].
76737c597924 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 2092
diff changeset
   342
2092
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   343
    nsApp := ObjCClass named:'NSApplication'.
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   344
    
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   345
    fn := ExternalLibraryFunction
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   346
            name:'sharedApplication'
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   347
            module:nil
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   348
            callType:'objc'
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   349
            returnType:(CType void)
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   350
            argumentTypes:#().
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   351
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   352
    fn invokeObjCOn:nsApp.
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   353
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   354
    "
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   355
     self run:#test_call_03
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   356
     self new test_call_03
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   357
    "
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   358
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   359
    "Created: / 04-03-2019 / 11:41:02 / Claus Gittinger"
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
! !
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   362
!ExternalInterfaceTests methodsFor:'types'!
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   363
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   364
var1
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   365
    <C: #define var1 1234>
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   366
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   367
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   368
     self new var1
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   369
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   370
!
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   371
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   372
var2
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   373
    <C: #define var1 "hello">
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   374
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   375
    "
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   376
     self new var2
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   377
    "
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   378
!
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   379
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   380
var3
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   381
    <C: #define var1 1.2345>
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   382
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   383
    "
1447
2351db93aa5b package changes
Claus Gittinger <cg@exept.de>
parents: 671
diff changeset
   384
     self new var3
341
580b8efa4649 c: #define added
Claus Gittinger <cg@exept.de>
parents: 325
diff changeset
   385
    "
325
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   386
! !
3f956b746c71 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   387
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
!ExternalInterfaceTests class methodsFor:'documentation'!
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
version
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
    ^ '$Header$'
2092
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   392
!
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   393
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   394
version_CVS
5784e2503949 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2091
diff changeset
   395
    ^ '$Header$'
324
cf40af91120c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
! !
2091
752e665a5a7f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 2090
diff changeset
   397