I need an algorithm to generate unique file name. I cannot use standard Win32 function GetTempFileName because of it allows create not more than 65536 filenames with the given prefix. I the limit need much more than 65536.

Thanks in advance