add winpcap 4.0.2 from url http://www.winpcap.org/
[natblaster.git] / winpcap / Packet9x / VXD / Functs.asm
blob848cdf691fb30c161a59ba827e95e524b53a0d77
1 .LALL
4 ; Copyright (c) 1999, 2000
5 ; Politecnico di Torino. All rights reserved.
7 ; Redistribution and use in source and binary forms, with or without
8 ; modification, are permitted provided that: (1) source code distributions
9 ; retain the above copyright notice and this paragraph in its entirety, (2)
10 ; distributions including binary code include the above copyright notice and
11 ; this paragraph in its entirety in the documentation or other materials
12 ; provided with the distribution, and (3) all advertising materials mentioning
13 ; features or use of this software display the following acknowledgement:
14 ; ``This product includes software developed by the netgroup of Politecnico
15 ; di Torino, and its contributors.'' Neither the name of
16 ; the University nor the names of its contributors may be used to endorse
17 ; or promote products derived from this software without specific prior
18 ; written permission.
19 ; THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
20 ; WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
21 ; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24 TITLE $PACKET
25 .386P
26 INCLUDE VMM.INC
27 INCLUDE NDIS.INC
28 INCLUDE NETVXD.INC ; Net VxD initialization oredr
29 include vtd.inc
31 ; the following equate makes the VXD dynamically loadable.
32 %DEVICE_DYNAMIC EQU 1
34 VxD_LOCKED_DATA_SEG
36 VxD_LOCKED_DATA_ENDS
39 VxD_LOCKED_CODE_SEG
42 BeginProc _SetReadTimeOut@12, PUBLIC
44 push esi
46 mov eax, [esp+12] ;number of ms
47 mov edx, [esp+16] ;data returned to the procedure
48 mov esi, [esp+8]
49 VMMcall Set_Global_Time_Out
50 mov eax, esi
52 pop esi
53 ret 3*4
55 _SetReadTimeOut@12 EndP
58 BeginProc _CancelReadTimeOut@0, PUBLIC
60 VMMcall Cancel_Time_Out
62 ret
64 _CancelReadTimeOut@0 EndP
67 BeginProc _QuerySystemTime@0, PUBLIC
69 VxdCall VTD_Get_Real_Time
70 ret
72 _QuerySystemTime@0 EndP
75 BeginProc _GetDate@0, PUBLIC
77 VxdCall VTD_Get_Date_And_Time
78 ret
80 _GetDate@0 EndP
82 VxD_LOCKED_CODE_ENDS
84 END