mirror of
https://github.com/microsoft/HybridRow.git
synced 2026-01-21 18:33:02 +00:00
Release roll-up snapshot of C#/C++ codebase at version 1.1.0-preview. This release matches the current shipping nugets.
24 lines
497 B
C++
24 lines
497 B
C++
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// ------------------------------------------------------------
|
|
|
|
#include "pch.h"
|
|
#include "Guid.h"
|
|
#include "winerror.h"
|
|
|
|
namespace rpc
|
|
{
|
|
#include <rpc.h>
|
|
}
|
|
|
|
namespace cdb_hr
|
|
{
|
|
Guid Guid::NewGuid() noexcept
|
|
{
|
|
Guid retval;
|
|
rpc::RPC_STATUS status = rpc::UuidCreate(&retval.m_data);
|
|
cdb_core::Contract::Requires(status == S_OK);
|
|
return retval;
|
|
}
|
|
}
|