Jump to content

[CLEO] [SNIPPET] GetTickCount


Nic
 Share

Recommended Posts

 Snippet:

 

//0AB1: call_scm_func @GetTickCount 0 _returnedTickCount 31@ - Exemplu de executare a functiei
:GetTickCount
0AA2: 2@ = load_library "kernel32.dll" // IF and SET
31@ = 0
   if 0AA4: 3@ = get_proc_address "GetTickCount" library 2@ // http://www.geoffchappell.com/studies/windows/win32/kernel32/api/index.htm   https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408(v=vs.85).aspx
   then    
   0AA7: call_function 3@ num_params 0 pop 0 31@    
   end
0AA3: free_library 2@
0AB2: ret 1 31@

 

Explicația:

Snippet-ul se foloseste de mai multe protocoale ale windows-ului si reuseste sa redea in milisecunde timpul exact de cand pc-ul este pornit.

 

Sursa

Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.