首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

PB中使用winapi生成唯一的永不重复字符串

1、定义结构及外部函数global type uuid from structure ulong data1 uint data2 uint data3 character data4[8]end typeFunction ulong UuidCreate(ref uuid lpUUID) LIBRARY "rpcrt4"Function ulong UuidToString (ref uuid lpUUID, ref long lpUUIDString) LIBRARY "rpcrt4" Alias for "UuidToStringA"Function ulong RpcStringFree(long lpUUIDString) LIBRARY "rpcrt4" Alias for "RpcStringFreeA" 2、函数主体CONSTANT Long RPC_S_OK = 0CONSTANT Long RPC_S_UUID_LOCAL_ONLY =...
类别:程序开发 - PowerBuilder    查看:122    更新:2014-05-12