Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
3.3 KiB

// --------------------------------------------------------------------------------
// AddressX.h
// Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
// --------------------------------------------------------------------------------
#ifndef __ADDRESSX_H
#define __ADDRESSX_H
// -------------------------------------------------------------------------------
// Forward Decls
// -------------------------------------------------------------------------------
typedef struct tagADDRESSGROUP *LPADDRESSGROUP;
// -------------------------------------------------------------------------------
// ADDRESSTOKENW
// -------------------------------------------------------------------------------
typedef struct tagADDRESSTOKENW {
ULONG cbAlloc; // Allocated Size
ULONG cch; // Number of Characters
LPWSTR psz; // Pointer to data
BYTE rgbScratch[256]; // Scratch Buffer
} ADDRESSTOKENW, *LPADDRESSTOKENW;
// -------------------------------------------------------------------------------
// ADDRESSTOKENA
// -------------------------------------------------------------------------------
typedef struct tagADDRESSTOKENA {
ULONG cbAlloc; // Allocated Size
ULONG cch; // Number of Characters
LPSTR psz; // Pointer to data
BYTE rgbScratch[256]; // Scratch Buffer
} ADDRESSTOKENA, *LPADDRESSTOKENA;
// --------------------------------------------------------------------------------
// MIMEADDRESS
// --------------------------------------------------------------------------------
typedef struct tagMIMEADDRESS *LPMIMEADDRESS;
typedef struct tagMIMEADDRESS {
DWORD dwAdrType; // IAP_ADRTYPE: Address Type
HADDRESS hThis; // IAP_HADDRESS: Handle of this address
ADDRESSTOKENW rFriendly; // IAP_FRIENDLYW: Friendly Name (Unicode)
ADDRESSTOKENW rEmail; // IAP_EMAIL: Email Address
LPINETCSETINFO pCharset; // IAP_HCHARSET: Charset used to encode pszFriendly
CERTSTATE certstate; // IAP_CERTSTATE: Certificate State
THUMBBLOB tbSigning; // IAP_SIGNING_PRINT: Thumbprint to be used for signing
THUMBBLOB tbEncryption; // IAP_ENCRYPTION_PRINT: Thumbprint to be used for signing
DWORD dwCookie; // IAP_COOKIE: User-defined cookie
LPADDRESSGROUP pGroup; // Address group
LPMIMEADDRESS pPrev; // Linked List
LPMIMEADDRESS pNext; // Linked List
} MIMEADDRESS;
// --------------------------------------------------------------------------------
// MIMEADDRESS Prototypes
// --------------------------------------------------------------------------------
void MimeAddressFree(LPMIMEADDRESS pAddress);
HRESULT HrMimeAddressCopy(LPMIMEADDRESS pSource, LPMIMEADDRESS pDest);
HRESULT HrCopyAddressProps(LPADDRESSPROPS pSource, LPADDRESSPROPS pDest);
void EmptyAddressTokenW(LPADDRESSTOKENW pToken);
void FreeAddressTokenW(LPADDRESSTOKENA pToken);
HRESULT HrSetAddressTokenW(LPCWSTR psz, ULONG cch, LPADDRESSTOKENW pToken);
#endif // __ADDRESSX_H