C# .NET 利用系统API生成有序GUID

2023-07-31 16:54:49 码农 1368
[DllImport("rpcrt4.dll", SetLastError = true)]
static extern int UuidCreateSequential(out Guid guid);

public static Guid GenerateSequentialGuid()
{
    Guid guid;
    int result = UuidCreateSequential(out guid);
    if (result != 0)
    {
        throw new ApplicationException("Create sequential guid failed: " + result);
    }
    return guid;
}
—— 完 ——
  • 建筑智能化集成系统验收文件中,不包括的文件是( )。
  • C# .NET Ping 域名或IP地址
  • 电子围栏系统工程
  • 常见的网络操作系统
  • 【201305-单选22】以下关于我国地图坐标系统的描述不正确的是:
  • C# 计算指定年月的当月工作日方法
  • ()is not included in the main contents of the operation and maintenance of the  information system.
  • 楼宇自控系统(Building Automation System,简称BAS )
  • 【201305-单选02】网络操作系统除了具有通常操作系统的4大功能外,还具有的功能是( )
  • ()是一种通过对信息进行均衡、安全的防护,提高整个系统最低安全性能的原则。

© CopyRight 2014~2024 薄学网.