Mobile API Reference  MicroStrategy 2019
Msi_bstr.h
Go to the documentation of this file.
1 // File: bstr.h
2 // Date: 08/20/2001
3 // Author: Yuling Ma
4 //
5 // Copyright (C) 2001 MicroStrategy Incorporated
6 // All rights reserved
7 
8 // This header file stands in for the standard 'bstr.h' header file used in VC++
9 // We make minimal effort to declare symbols and functions in the same file as
10 // used in Windows.
11 
12 
13 #if !defined( _BSTR_H_ )
14 #define _BSTR_H_
15 
16 #include "MsiCOM/MsiCOM/MsiCOM.h"
17 #include "PDCHeader/PDCwtypes.h"
18 
19 // Definition of the OLE Automation APIs, and macros.
20 
21 #define WINOLEAUTAPI STDAPI
22 #define WINOLEAUTAPI_(type) STDAPI_(type)
23 
24 
25 /*---------------------------------------------------------------------*/
26 /* BSTR API */
27 /*---------------------------------------------------------------------*/
28 
29 WINOLEAUTAPI_(BSTR) DLL_MSICOM_EXIM SysAllocString(const OLECHAR *);
30 WINOLEAUTAPI_(INT) DLL_MSICOM_EXIM SysReAllocString(BSTR *, const OLECHAR *);
31 WINOLEAUTAPI_(BSTR) DLL_MSICOM_EXIM SysAllocStringLen(const OLECHAR *, UINT);
32 WINOLEAUTAPI_(INT) DLL_MSICOM_EXIM SysReAllocStringLen(BSTR *, const OLECHAR *, UINT);
33 WINOLEAUTAPI_(void) DLL_MSICOM_EXIM SysFreeString(BSTR);
34 WINOLEAUTAPI_(UINT) DLL_MSICOM_EXIM SysStringLen(BSTR);
35 
36 WINOLEAUTAPI_(UINT) DLL_MSICOM_EXIM SysStringByteLen(BSTR bstr);
37 WINOLEAUTAPI_(BSTR) DLL_MSICOM_EXIM SysAllocStringByteLen(LPCSTR psz, UINT len);
38 
39 
40 
41 #endif /* _BSTR_H_ */
OLECHAR __RPC_FAR * BSTR
Definition: PDCwtypes.h:401
int INT
Definition: PDCwtypes.h:96
UINT len
Definition: Msi_bstr.h:37
unsigned int UINT
Definition: PDCwtypes.h:110
WCHAR OLECHAR
Definition: PDCwtypes.h:390
const CHAR __RPC_FAR * LPCSTR
Definition: PDCwtypes.h:367
#define DLL_MSICOM_EXIM
Definition: MsiCOM.h:19
#define WINOLEAUTAPI_(type)
Definition: Msi_bstr.h:22