Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15088

Convert c to vb6

$
0
0
Can anyone help me convert this code to vb6?

I have already done the GetLocalTime part :)

Code:

Private Declare Sub GetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Private Type SYSTEMTIME
    wYear As Integer
    wMonth As Integer
    wDayOfWeek As Integer
    wDay As Integer
    wHour As Integer
    wMinute As Integer
    wSecond As Integer
    wMilliseconds As Integer
End Type

But need help with this:
Code:

static DWORD GetVolumeID(void)
{
        SYSTEMTIME s;
        DWORD d;
        WORD lo,hi,tmp;
 
        GetLocalTime(&s);
 
        lo = s.wDay + (s.wMonth << 8);
        tmp = (s.wMilliseconds/10) + (s.wSecond << 8);
        lo += tmp;
 
        hi = s.wMinute + (s.wHour << 8);
        hi += s.wYear;
 
        d = lo + (hi << 16);
        return d;
}


Viewing all articles
Browse latest Browse all 15088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>