Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

97 lines
2.3 KiB

/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
wtpie.c
Abstract:
This module contains the test functions for phoneInitializeEx
Author:
Xiao Ying Ding (XiaoD) 7-March-1996
Revision History:
Javed Rasool (JavedR) 22-Mar-1996 Modified for WUNICODE
--*/
#include "windows.h"
#include "malloc.h"
#include "string.h"
#include "tapi.h"
#include "trapper.h"
#include "tcore.h"
#include "ttest.h"
#include "dophone.h"
#include "vars.h"
#include "wphone.h"
// phoneInitializeEx
//
// The following tests are made:
//
// Tested Notes
// -------------------------------------------------------------------------
// Go/No-Go test
//
// * = Stand-alone test case
//
//
BOOL TestPhoneInitializeEx(BOOL fQuietMode, BOOL fStandAlone)
{
LPTAPIPHONETESTINFO lpTapiPhoneTestInfo;
INT n;
BOOL fTestPassed = TRUE;
TapiPhoneTestInit();
lpTapiPhoneTestInfo = GetPhoneTestInfo();
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
"*****************************************************************************************");
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
">> Test phoneInitializeEx");
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
"#### Test phoneInitializeEx for go/no-go ");
// InitializeEx a phone app
lpTapiPhoneTestInfo->lpdwAPIVersion = &lpTapiPhoneTestInfo->dwAPIVersion;
lpTapiPhoneTestInfo->dwAPIVersion = TAPI_VERSION2_0;
lpTapiPhoneTestInfo->lpPhoneInitializeExParams =
(LPPHONEINITIALIZEEXPARAMS) AllocFromTestHeap (
sizeof(PHONEINITIALIZEEXPARAMS));
lpTapiPhoneTestInfo->lpPhoneInitializeExParams->dwTotalSize =
sizeof(PHONEINITIALIZEEXPARAMS);
lpTapiPhoneTestInfo->lpPhoneInitializeExParams->dwOptions =
PHONEINITIALIZEEXOPTION_USECOMPLETIONPORT;
if(! DoPhoneInitializeEx (lpTapiPhoneTestInfo, TAPISUCCESS))
{
TPHONE_FAIL();
}
// Shutdown and end the tests
if (! DoPhoneShutdown(lpTapiPhoneTestInfo, TAPISUCCESS))
{
TPHONE_FAIL();
}
FreeTestHeap();
if(fTestPassed)
TapiLogDetail(
DBUG_SHOW_DETAIL,
"## phoneInitializeEx Test Passed");
else
TapiLogDetail(
DBUG_SHOW_DETAIL,
"## phoneInitializeEx Test Failed");
return fTestPassed;
}