是字符串吗?字符串似乎不能直接转GUID [解决办法] iid只是一个16字节的内存而已,表达格式你自己对内存进行解释就行了,如果你最前面的说的字符串,那应该可以使用__uuidof转 [解决办法] IID The IID structure is a GUID structure used to describe an identifier for a MAPI interface.
Remarks An IID structure is used to uniquely identify a MAPI interface and to associate a particular interface with an object. For example, when a client calls IMAPISession::OpenEntry to open a folder, the client sets the lpInterface parameter to point to an IID representing the IMAPIFolder interface. MAPI defines the IMAPIFolder IID to be IID_IMAPIFolder. IID structures are also used to uniquely identify OLE interfaces.
All of the specific IID structures for the MAPI interfaces are defined in the MAPIGUID.H header file.
See Also ID Structures
GUID The GUID structure describes a globally unique identifier.
Quick Info Header file: MAPIGUID.H
typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID;
Members Data1 An unsigned long integer data value. Data2 An unsigned short integer data value. Data3 An unsigned short integer data value. Data4 An array of unsigned characters. Remarks GUID structures are used in MAPI as follows:
In the MAPIUID structures that uniquely identify service providers. For interface identifiers. In the property set names of named properties. Message store and address book providers call the Microsoft utility UUIDGEN.EXE to generate a GUID structure to use in their MAPIUID structure. By passing the resulting MAPIUID to IMAPISupport::SetProviderUID, these service providers inform MAPI of their unique identifier.
Also, they are used in the implementation of Microsoft Remote Procedure Call (RPC) and the Object Description Language (ODL). For more information about these uses, see the Microsoft RPC Programmer's Guide and Reference, OLE Programmer's Reference, and Inside OLE, Second Edition.
The GUID structure is defined in the Win32 Programmer's Reference. Specific values for GUID structures that are used within MAPI are defined in the MAPI header file MAPIGUID.H.