Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
692 B

;
; Stub.asm library stub to do local init for us
;
?WIN=1
.xlist
include cmacros.inc
.list
assumes cs,CODE
assumes ds,DATA
sBegin DATA
externw hInstApp
sEnd DATA
sBegin CODE
ExternFP <LocalInit>
; CX = size of heap
; DI = module handle
; DS = automatic data segment
; ES:SI = address of command line (not used)
;
cProc LibInit,<FAR,PUBLIC,NODATA>,<si,di>
cBegin
mov hInstApp,di
xor ax,ax
jcxz LoadExit ; Fail if no heap
push ax ; LocalInit((LPSTR)NULL, cbHeap);
push ax
push cx
call LocalInit
jcxz LoadExit
LoadExit:
cEnd
sEnd CODE
end LibInit