10 Jun
2006
10 Jun
'06
8:38 a.m.
On Sat, 10 Jun 2006, Thomas Heller wrote:
I have not tested the speed, but extending my snippet to also work on 98 should be nearly trivial:
try: _func = windll.rpcrt4.UuidCreateSequential except AttributeError: _func = windll.rpcrt4.UuidCreate
def CreateGuid(): uuid = UUID() if 0 == _func(byref(uuid)): return str(buffer(uuid))
Okay. Thanks for this. I'll give it a shot. -- ?!ng