Source code of Windows XP (NT5)
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.

38 lines
1.1 KiB

  1. #ifndef H__timer
  2. #define H__timer
  3. typedef VOID (*FP_TimerCallback) ( DWORD_PTR dwUserInfo1,
  4. DWORD dwUserInfo2,
  5. DWORD_PTR dwUserInfo3 );
  6. HTIMER TimerSet( long timeoutPeriod, /* msec */
  7. FP_TimerCallback TimerCallback,
  8. DWORD_PTR dwUserInfo1,
  9. DWORD dwUserInfo2,
  10. DWORD_PTR dwUserInfo3 );
  11. BOOL TimerDelete( HTIMER hTimer );
  12. VOID TimerSlice( void );
  13. /*
  14. The following is a list of timeouts that the user must set up
  15. */
  16. /* timeoutRcvConnCmd: how long to wait from when netintf tells us we have
  17. a conection to when we recv the connect command from the other side */
  18. extern DWORD timeoutRcvConnCmd;
  19. /* timeoutRcvConnRsp: how long to wait from when we send the conn cmd
  20. to when we recv the connect command response from the other side */
  21. extern DWORD timeoutRcvConnRsp;
  22. /* timeoutMemoryPause: how long to wait between sending packets that cause
  23. memory errors on the remote side. */
  24. extern DWORD timeoutMemoryPause;
  25. /* timeoutSendRsp: how long to wait between sending a packet and expecting
  26. a response from the other side regarding that packet */
  27. extern DWORD timeoutSendRsp;
  28. #endif