mirror of
https://github.com/microsoft/HybridRow.git
synced 2026-01-22 10:53:07 +00:00
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.
This commit is contained in:
23
src/Serialization/HybridRow.Native/Guid.cpp
Normal file
23
src/Serialization/HybridRow.Native/Guid.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// ------------------------------------------------------------
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user