CoCreateGuid()用法
来源:互联网 发布:大金的淘宝店 编辑:程序博客网 时间:2024/06/06 00:54
今天在程序中看到一函数,颇感陌生,特查之
CString CConnectManager::newGUID()
{
}
用来返回一个系统自动生成的32位字符串。
关于CoCreateGuid()函数,MSDN如下解释:
The GUID structure stores a GUID.
typedef struct _GUID {DWORD Data1;WORD Data2;WORD Data3;BYTE Data4[8]; } GUID;
Members
- Data1
Specifies the first 8 hexadecimal digits of the GUID.
- Data2
Specifies the first group of 4 hexadecimal digits.
- Data3
Specifies the second group of 4 hexadecimal digits.
- Data4
Array of 8 bytes. The first 2 bytes contain the third group of 4 hexadecimal digits. The remaining 6 bytes contain the final 12 hexadecimal digits.
Remarks
GUIDs are the Microsoft implementation of the distributed computing environment (DCE) universally unique identifier ( UUID). The RPC run-time libraries use UUIDs to check for compatibility between clients and servers and to select among multiple implementations of an interface. The Windows access-control functions use GUIDs to identify the type of object that an object-specific ACE in an access-control list (ACL) protects.
函数用来返回一个唯一的表示字符串。
- CoCreateGuid()用法
- CoCreateGuid
- VC中使用CoCreateGuid创建GUID
- 通过控制台程序使用cocreateguid获取guid
- 如何使用 CoCreateGUID API 以生成一个 GUID 以
- 在VB中调用CoCreateGUID创建GUID字符串
- 如何使用 CoCreateGUID API 生成与 VB 6 的 GUID
- DataGrid的用法(一)基本用法
- 技巧用法 --- #pragma的用法(二)
- Spring:IoC 用法(七、<beans>用法)
- Spring:IoC 用法(九、@Bean 用法)
- Spring:IoC 用法(八、<bean>用法)
- JAR用法(转载)
- sprintf用法(转)
- dbms_pipe(管道用法)
- ArrayList用法 (经典)
- CStringList用法 (摘录)
- GCC用法(转)
- MATLAB学习(3)
- 黑马程序员_网络编程(1)
- 例解 autoconf 和 automake 生成 Makefile 文件
- mingw编译程序的DLL依赖问题
- 两种不同的移动构架
- CoCreateGuid()用法
- 台阶蓄水问题
- POJ 1149
- [leetcode]N-Queens II
- C#导出Excel源码
- 浅谈cocos2dx(15) 中防异常编程模式
- APP Store关键词排名优化细则(转载)
- android获得正在运行的activity
- 软件测试基本方法(五)之单元测试