Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b7f753a8
Commit
b7f753a8
authored
Dec 07, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi: Add stub for SnmpSvcGetUptime.
parent
5719881e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
main.c
dlls/snmpapi/main.c
+18
-0
snmpapi.spec
dlls/snmpapi/snmpapi.spec
+1
-1
No files found.
dlls/snmpapi/main.c
View file @
b7f753a8
...
@@ -112,6 +112,8 @@ static void asn_any_free(AsnAny *any)
...
@@ -112,6 +112,8 @@ static void asn_any_free(AsnAny *any)
any
->
asnType
=
ASN_NULL
;
any
->
asnType
=
ASN_NULL
;
}
}
static
ULONGLONG
startTime
;
/***********************************************************************
/***********************************************************************
* DllMain for SNMPAPI
* DllMain for SNMPAPI
*/
*/
...
@@ -127,6 +129,7 @@ BOOL WINAPI DllMain(
...
@@ -127,6 +129,7 @@ BOOL WINAPI DllMain(
return
FALSE
;
/* prefer native version */
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
startTime
=
GetTickCount64
();
break
;
break
;
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
break
;
break
;
...
@@ -136,6 +139,21 @@ BOOL WINAPI DllMain(
...
@@ -136,6 +139,21 @@ BOOL WINAPI DllMain(
}
}
/***********************************************************************
/***********************************************************************
* SnmpSvcGetUptime (SNMPAPI.@)
*
* BUGS
* This returns the number of centiseconds since the DLL was loaded,
* rather than the number of centiseconds since the SNMP service was
* started, since there isn't yet any SNMP service in Wine.
*/
DWORD
WINAPI
SnmpSvcGetUptime
(
void
)
{
ULONGLONG
now
=
GetTickCount64
();
return
(
now
-
startTime
)
/
10
;
}
/***********************************************************************
* SnmpUtilDbgPrint (SNMPAPI.@)
* SnmpUtilDbgPrint (SNMPAPI.@)
*
*
* NOTES
* NOTES
...
...
dlls/snmpapi/snmpapi.spec
View file @
b7f753a8
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
@ stub SnmpSvcGenerateTrap
@ stub SnmpSvcGenerateTrap
@ stub SnmpSvcGenerateWarmStartTrap
@ stub SnmpSvcGenerateWarmStartTrap
@ stub SnmpSvcGetEnterpriseOID
@ stub SnmpSvcGetEnterpriseOID
@ st
ub SnmpSvcGetUptime
@ st
dcall SnmpSvcGetUptime()
@ stub SnmpSvcInitUptime
@ stub SnmpSvcInitUptime
@ stub SnmpSvcReleaseMessage
@ stub SnmpSvcReleaseMessage
@ stub SnmpSvcReportEvent
@ stub SnmpSvcReportEvent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment