LoadImage: loading notepad (/dos/windows/notepad.exe)
           [C:\WINDOWS\NOTEPAD.EXE]
LoadImage: loading COMMDLG (/dos/windows/system/commdlg.dll)
           [C:\WINDOWS\SYSTEM\COMMDLG.DLL]
LoadImage: loading sysres.dll (/home/bob/wine/work/sysres.dll)
           [E:\WINE\WORK\SYSRES.DLL]
5: ADDR TYPE 3,  TYPE 5,  OFFSET 0012,  TARGET 0001 005b
    Additive = 1
int21: get interrupt vector  0
int21: set interrupt vector  0 (0047:2ed0)
HEAP_LocalInit: owner 006f, start 006f0be8, length 0800
HEAP_LocalInit: owner 00cf, start 00cf0d58, length 0400
HeapAlloc: free_list 00d70000, flags 0, bytes 28
HeapAlloc: returning 00d70010
_WinMain // hTaskMain=0001 hInstMain=006F !
LoadLibrary 'sysres.dll'
HeapAlloc: free_list 00d70000, flags 0, bytes 24
HeapAlloc: returning 00d70040
HEAP_LocalInit: owner 00e7, start 00e700fa, length 0000
LoadLibrary returned Library hInst=00E7
System Resources Loaded // hSysRes='00E7'
Calling InitTask (KERNEL.91), 16-bit stack at 006f:ff84, return to 004722cb
  ESP 0000ff84, EBP 0000ff92, SS 006f
Calling DOS3Call (KERNEL.102), 16-bit stack at 006f:ff82, return to 00472645
  ESP 0000ff82, EBP 0000ff90, SS 006f
int21: AX 3500, BX 0081, CX 1900, DX 0001, SI 0000, DI 006f, DS 006f, ES 007f
Calling DOS3Call (KERNEL.102), 16-bit stack at 006f:ff82, return to 00472667
  ESP 0000ff82, EBP 0000ff90, SS 006f
int21: AX 2500, BX 0000, CX 1900, DX 2ed0, SI 0000, DI 006f, DS 0047, ES 0000
Calling DOS3Call (KERNEL.102), 16-bit stack at 006f:ff84, return to 004727fa
  ESP 0000ff84, EBP 0000ff92, SS 006f
int21: AX 3000, BX 0000, CX 7ff0, DX 2ed0, SI 065c, DI 065c, DS 006f, ES 0077
Calling LockSegment (KERNEL.23), 16-bit stack at 006f:ffb0, return to 00473091
  ESP 0000ffb0, EBP 0000ffbe, SS 006f
Returning 0000006f from LockSegment (KERNEL.23)
Calling LocalAlloc (KERNEL.5), 16-bit stack at 006f:ffae, return to 004730a9
  ESP 0000ffae, EBP 0000ffbc, SS 006f
WIN16_LocalAlloc: flags 20, bytes 18
    called from segment 0047
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000d7b44, flags 20, bytes 18
HeapAlloc: returning 006f0bf4
WIN16_LocalAlloc: returning 6f0bf4
Returning 006f0bf4 from LocalAlloc (KERNEL.5)
Calling UnlockSegment (KERNEL.24), 16-bit stack at 006f:ffb0, return to 004730b5
  ESP 0000ffb0, EBP 0000ffbe, SS 006f
Returning 0000006f from UnlockSegment (KERNEL.24)
Calling LockSegment (KERNEL.23), 16-bit stack at 006f:ffae, return to 00473091
  ESP 0000ffae, EBP 0000ffbc, SS 006f
Returning 0000006f from LockSegment (KERNEL.23)
Calling LocalAlloc (KERNEL.5), 16-bit stack at 006f:ffac, return to 004730a9
  ESP 0000ffac, EBP 0000ffba, SS 006f
WIN16_LocalAlloc: flags 20, bytes 4
    called from segment 0047
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000d7b44, flags 20, bytes 4
HeapAlloc: returning 006f0c18
WIN16_LocalAlloc: returning 6f0c18
Returning 006f0c18 from LocalAlloc (KERNEL.5)
Calling UnlockSegment (KERNEL.24), 16-bit stack at 006f:ffae, return to 004730b5
  ESP 0000ffae, EBP 0000ffbc, SS 006f
Returning 0000006f from UnlockSegment (KERNEL.24)
Calling WaitEvent (KERNEL.30), 16-bit stack at 006f:ffcc, return to 00472302
  ESP 0000ffcc, EBP 0000ffda, SS 006f
Returning 00000000 from WaitEvent (KERNEL.30)
Calling InitApp (USER.5), 16-bit stack at 006f:ffcc, return to 0047230b
  ESP 0000ffcc, EBP 0000ffda, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 76
HeapAlloc: returning 00ef000c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 40
HeapAlloc: returning 00f7000c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 96
HeapAlloc: returning 00f70048
HeapAlloc: free_list 000b9c2c, flags 2, bytes 36
HeapAlloc: returning 00f700c0
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f700fc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70120
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70144
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70168
HeapAlloc: free_list 000b9c2c, flags 2, bytes 24
HeapAlloc: returning 00f7018c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 24
HeapAlloc: returning 00f701bc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f701ec
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70210
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70234
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f70258
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f7027c
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef006c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f702a0
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f70384
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f703d8
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef0090
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f704bc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f705a0
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef00b4
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f705f4
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f706d8
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef00d8
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f7072c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f70810
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef00fc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f70864
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f70948
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
WIN16_LocalAlloc: flags 2, bytes 76
    called from segment 0047
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000d7b44, flags 2, bytes 76
HeapAlloc: returning 006f0c30
WIN16_LocalAlloc: returning 6f0c30
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef0120
HeapAlloc: free_list 000b8ba8, flags 2, bytes 11
HeapAlloc: returning 00ef015c
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef0174
HeapAlloc: free_list 000b8ba8, flags 2, bytes 11
HeapAlloc: returning 00ef01b0
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef01c8
HeapAlloc: free_list 000b8ba8, flags 2, bytes 14
HeapAlloc: returning 00ef0204
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef0228
HeapAlloc: free_list 000b8ba8, flags 2, bytes 12
HeapAlloc: returning 00ef0264
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef0288
HeapAlloc: free_list 000b8ba8, flags 2, bytes 13
HeapAlloc: returning 00ef02c4
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef02e8
HeapAlloc: free_list 000b8ba8, flags 2, bytes 9
HeapAlloc: returning 00ef0324
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef033c
HeapAlloc: free_list 000b8ba8, flags 2, bytes 14
HeapAlloc: returning 00ef0378
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef039c
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef03d8
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 38
HeapAlloc: returning 00ef0414
HeapAlloc: free_list 000b8ba8, flags 2, bytes 14
HeapAlloc: returning 00ef0450
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f7099c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f7099c
HEAP_LocalFindHeap: owner 006f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 104
HeapAlloc: returning 00ef0474
HeapAlloc: free_list 000b9c2c, flags 2, bytes 20
HeapAlloc: returning 00f7099c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709cc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
HeapAlloc: free_list 000b9c2c, flaInitializing DLLs
Initializing COMMDLG, cs:ip 00c7:0000, ds 00cf
gs 2, bytes 28
HeapAlloc: returning 00f70a2c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f70a5c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f70a5c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
Calling LocalInit (KERNEL.4), 16-bit stack at 006f:ff9c, return to 00c7005d
  ESP 0000ff9c, EBP 0000ffaa, SS 006f
HEAP_LocalFindHeap: owner 00cf
WIN16_LocalInit // return segment=00CF !
Returning 000000cf from LocalInit (KERNEL.4)
Calling UnlockSegment (KERNEL.24), 16-bit stack at 006f:ff92, return to 00bf016b
  ESP 0000ff92, EBP 0000ffa0, SS 006f
Returning 000000cf from UnlockSegment (KERNEL.24)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf000c
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000014 from GetSystemMetrics (USER.179)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf0018
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000001 from GetSystemMetrics (USER.179)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf0024
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000001 from GetSystemMetrics (USER.179)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf0030
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000010 from GetSystemMetrics (USER.179)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf003c
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000010 from GetSystemMetrics (USER.179)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf0048
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000012 from GetSystemMetrics (USER.179)
Calling GetSysColor (USER.180), 16-bit stack at 006f:ff8c, return to 00bf0054
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00ffffff from GetSysColor (USER.180)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff8c, return to 00bf00ec
  ESP 0000ff8c, EBP 0000ff9a, SS 006f
Returning 00000001 from GetSystemMetrics (USER.179)
Calling GetVersion (KERNEL.3), 16-bit stack at 006f:ff8e, return to 00bf00f4
  ESP 0000ff8e, EBP 0000ff9c, SS 006f
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff8a, return to 00bf0115
  ESP 0000ff8a, EBP 0000ff98, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 31
HeapAlloc: returning 00ef04ec
Returning 0000c13b from RegisterWindowMessage (USER.118)
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff8a, return to 00bf0122
  ESP 0000ff8a, EBP 0000ff98, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 27
HeapAlloc: returning 00ef051c
Returning 0000c147 from RegisterWindowMessage (USER.118)
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff8a, return to 00bf012f
  ESP 0000ff8a, EBP 0000ff98, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 23
HeapAlloc: returning 00ef054c
Returning 0000c153 from RegisterWindowMessage (USER.118)
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff8a, return to 00bf013c
  ESP 0000ff8a, EBP 0000ff98, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 20
HeapAlloc: returning 00ef0570
Returning 0000c15c from RegisterWindowMessage (USER.118)
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff8a, return to 00bf0149
  ESP 0000ff8a, EBP 0000ff98, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 24
HeapAlloc: returning 00ef0594
Returning 0000c165 from RegisterWindowMessage (USER.118)
Calling GetWinFlags (KERNEL.132), 16-bit stack at 006f:ff94, return to 00bf0189
  ESP 0000ff94, EBP 0000ffa2, SS 006f
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ff92, return to 00bf019e
  ESP 0000ff92, EBP 0000ffa0, SS 006f
Returning 00000000 from GetSystemMetrics (USER.179)
Calling GetDC (USER.66), 16-bit stack at 006f:ff92, return to 00bf01a9
  ESP 0000ff92, EBP 0000ffa0, SS 006f
Returning 00000864 from GetDC (USER.66)
Calling CreateCompatibleDC (GDI.52), 16-bit stack at 006f:ff92, return to 00bf01b8
  ESP 0000ff92, EBP 0000ffa0, SS 006f
HeapAlloc: free_list 000b9c2c, flags 2, bytes 204
HeapAlloc: returning 00f70a8c
HeapAlloc: free_list 000b9c2c, flags 2, bytes 64
HeapAlloc: returning 00f70b70
Returning 00000a8c from CreateCompatibleDC (GDI.52)
Calling CreateCompatibleBitmap (GDI.51), 16-bit stack at 006f:ff8e, return to 00bf01ca
  ESP 0000ff8e, EBP 0000ff9c, SS 006f
HeapAlloc: free_list 000b9c2c, flags 2, bytes 36
HeapAlloc: returning 00f709fc
Returning 000009fc from CreateCompatibleBitmap (GDI.51)
Calling SelectObject (GDI.45), 16-bit stack at 006f:ff90, return to 00bf01db
  ESP 0000ff90, EBP 0000ff9e, SS 006f
Returning 000000c0 from SelectObject (GDI.45)
Calling SelectObject (GDI.45), 16-bit stack at 006f:ff90, return to 00bf01ec
  ESP 0000ff90, EBP 0000ff9e, SS 006f
Returning 000009fc from SelectObject (GDI.45)
Calling DeleteObject (GDI.69), 16-bit stack at 006f:ff92, return to 00bf01f4
  ESP 0000ff92, EBP 0000ffa0, SS 006f
Returning 00000001 from DeleteObject (GDI.69)
Calling ReleaseDC (USER.68), 16-bit stack at 006f:ff90, return to 00bf01ff
  ESP 0000ff90, EBP 0000ff9e, SS 006f
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
HeapAlloc: free_list 000b9c2c, flags 2, bytes 28
HeapAlloc: returning 00f709fc
Returning 00000001 from ReleaseDC (USER.68)
Calling GetModuleHandle (KERNEL.47), 16-bit stack at 006f:ff7e, return to 00b7017f
  ESP 0000ff7e, EBP 0000ff8c, SS 006f
GetModuleHandle('GDI');
GetModuleHandle // searching in loaded modules
GetModuleHandle // searching in builtin libraries
GetModuleHandle('GDI') return FF02 
Returning 0000ff02 from GetModuleHandle (KERNEL.47)
Calling GetProcAddress (KERNEL.50), 16-bit stack at 006f:ff7c, return to 00b7018f
  ESP 0000ff7c, EBP 0000ff8a, SS 006f
Returning 00000000 from GetProcAddress (KERNEL.50)
Calling RegisterWindowMessage (USER.118), 16-bit stack at 006f:ff90, return to 00bf0212
  ESP 0000ff90, EBP 0000ff9e, SS 006f
HeapAlloc: free_list 000b8ba8, flags 2, bytes 17Initializing SYSRES.DLL, cs:ip 00df:0000, ds 00e7

HeapAlloc: returning 00ef05c4
Returning 0000c171 from RegisterWindowMessage (USER.118)
rv = 1
Calling LocalInit (KERNEL.4), 16-bit stack at 006f:ff9e, return to 00df0016
  ESP 0000ff9e, EBP 0000ffac, SS 006f
HEAP_LocalFindHeap: owner 00e7
HEAP_LocalInit: owner 00e7, start 00e70000, length b534
WIN16_LocalInit // return segment=00E7 !
Returning 000000e7 from LocalInit (KERNEL.4)
int21: AX 3000, BX 0001, CX 0000, DX 0000, SI 00e7, DI 00fa, DS 00e7, ES 00e7
Calling GetWinFlags (KERNEL.132), 16-bit stack at 006f:ffa4, return to 00df0034
  ESP 0065ffa4, EBP 0000ffb2, SS 006f
Calling UnlockSegment (KERNEL.24), 16-bit stack at 006f:ff96, return to 00df01dd
  ESP 0000ff96, EBP 0000ffa4, SS 006f
Returning 000000e7 from UnlockSegment (KERNEL.24)
rv = 1
Returning 00000001 from InitApp (USER.5)
Calling GetSystemMetrics (USER.179), 16-bit stack at 006f:ffa8, return to 00470c09
  ESP 0000ffa8, EBP 0000ffb6, SS 006f
Returning 00000000 from GetSystemMetrics (USER.179)
Calling GetProcAddress (KERNEL.50), 16-bit stack at 006f:ffa4, return to 00470c13
  ESP 0000ffa4, EBP 0000ffb2, SS 006f
GetProcAddress // GetCurrentTask()=0001
GetProcAddress: current module=0000 instance=006F!
GetProcAddress // Module Found ! w->filename='/dos/windows/notepad.exe'
GetProcAddress: 006F, 'REGISTERPENAPP'
GetProcAddress // function 'REGISTERPENAPP' not found !
Returning 00000000 from GetProcAddress (KERNEL.50)
Calling GetVersion (KERNEL.3), 16-bit stack at 006f:fe94, return to 004f02bc
  ESP 0000fe94, EBP 0000fea2, SS 006f
Calling LocalAlloc (KERNEL.5), 16-bit stack at 006f:fe7e, return to 004f0042
  ESP 0000fe7e, EBP 0000fe8c, SS 006f
WIN16_LocalAlloc: flags 40, bytes 3072
    called from segment 004f
HEAP_LocalFindHeap: owner 006f
HeapAlloc: free_list 000d7b44, flags 40, bytes 3072
HeapAlloc: returning 00000000
WIN16_LocalAlloc: returning 0
Returning 00000000 from LocalAlloc (KERNEL.5)
Calling DOS3Call (KERNEL.102), 16-bit stack at 006f:ff66, return to 00472799
  ESP 0000ff66, EBP 0000ff74, SS 006f
int21: AX 2500, BX 0c1a, CX 0000, DX 0000, SI 065int21: set interrupt vector  0 (0000:0000)
c, DI 065c, DS 0000, ES 006f
Calling DOS3Call (KERNEL.102), 16-bit stack at 006f:ff6c, return to 0047276e
  ESP 0000ff6c, EBP 0000ff7a, SS 006f
int21: AX 4c00, BX 0c1a, CX 0000, DX 0000, SI 065c, DI 065c, DS 006f, ES 006f
