Files
HybridRow/src/Serialization/HybridRow.Native/Guid.cpp
Jason Hunter ce112dcdf1 Release 1.1.0-preview 3 (#6)
Release roll-up snapshot of C#/C++ codebase at version 1.1.0-preview.
This release matches the current shipping nugets.
2021-05-05 17:18:35 -07:00

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;
}
}