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.
 
 
 
 
 
 

79 lines
1.4 KiB

/* File: D:\WACKER\cncttapi\pcmcia.c (Created: 28-Feb-1995)
*
* Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
* All rights reserved
*
* $Revision: 1.1 $
* $Date: 1995/03/01 10:09:14 $
*/
#include <tapi.h>
#pragma hdrstop
#include <prsht.h>
#include <time.h>
#include <tdll\stdtyp.h>
#include <tdll\session.h>
#include <tdll\misc.h>
#include <tdll\cnct.h>
#include "cncttapi.h"
#include "cncttapi.hh"
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* FUNCTION:
* ConfirmDlg
*
* DESCRIPTION:
* PCMCIADlg pops up when a hotplug modem is specified but
* not inservice.
*
* AUTHOR: Mike Ward, 28-Feb-1995
*/
BOOL CALLBACK PCMCIADlg(HWND hwnd, UINT uMsg, WPARAM wPar, LPARAM lPar)
{
HHDRIVER hhDriver;
switch (uMsg)
{
case WM_INITDIALOG:
SetWindowLong(hwnd, DWL_USER, lPar);
hhDriver = (HHDRIVER)lPar;
hhDriver->hwndPCMCIA = hwnd;
mscCenterWindowOnWindow(hwnd, sessQueryHwnd(hhDriver->hSession));
break;
case WM_COMMAND:
switch (LOWORD(wPar))
{
case IDOK:
// There is no OK button. Instead, when the user plugs the
// modem in, the tapi callback function will send a message.
//
EndDialog(hwnd, TRUE);
break;
case IDCANCEL:
EndDialog(hwnd, FALSE);
break;
default:
break;
}
break;
case WM_DESTROY:
hhDriver = (HHDRIVER)GetWindowLong(hwnd, DWL_USER);
if (hhDriver)
hhDriver->hwndPCMCIA = 0;
break;
default:
return FALSE;
}
return TRUE;
}