📄 dbase.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/***************************************************************************
Disclaimer:
This code and information is provided "as is" without warranty of
any kind, either expressed or implied, including but not limited to
the implied warranties of merchantability and/or fitness for a
particular purpose.
Module Name:
DBase.h
Abstract:
Functions to interface into the CE Database
Notes:
******************************************************************************/
#ifndef __DBASE_H__
#define __DBASE_H__
#define ADDRDB_NAME L"VoIP Address Database" // Use separate database
//#define ADDRDB_NAME L"CEOS Address Database" // Use the address book
// These are the properties we're interested in
#define PROPID_NAME (0xdead0000 | CEVT_LPWSTR)
#define PROPID_BLOB (0xbeef0000 | CEVT_LPWSTR)
#define PROPID_ADDR (0xfeed0000 | CEVT_LPWSTR)
#define PROPID_STAT (0xfade0000 | CEVT_I4)
#define PROPID_TYPE (0xbabe0000 | CEVT_I4)
static enum
{
DBF_NAME = 0,
DBF_BLOB,
DBF_ADDR,
DBF_STATUS,
DBF_TYPE
};
HANDLE MyAddrDB_Init( HINSTANCE hinst );
void MyAddrDB_Close( HANDLE hMyAddrDB );
CEOID MyAddrDB_Write( HANDLE hMyAddrDB, CEOID oid, LPTSTR pszName, LPTSTR pszBlob, LPTSTR pszAddr, int nStatus, int nType );
CEOID MyAddrDB_Read( HANDLE hMyAddrDB, CEOID oidIn, CEPROPVAL** ppPropVal );
BOOL MyAddrDB_Delete( HANDLE hMyAddrDB, CEOID oid );
int MyAddrDB_Reset( HANDLE hMyAddrDB );
HANDLE MyAddrDB_OpenCreate(void);
CEOID MyAddrDB_Find( IN HANDLE hMyAddrDB, IN BSTR bstrName, IN int iBt );
#endif //__DBASE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -