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.
 
 
 
 
 
 

70 lines
2.1 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997.
//
// File: S A U I . H
//
// Contents: Shared Acces connection UI object.
//
// Notes:
//
// Author: danielwe 16 Oct 1997
//
//----------------------------------------------------------------------------
#pragma once
#include "nsbase.h" // must be first to include atl
#include "ncatlps.h"
#include "resource.h"
#include "netshell.h"
#include "util.h"
class CSharedAccessPage : public CPropSheetPage
{
public:
BEGIN_MSG_MAP(CSharedAccessPage)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu);
MESSAGE_HANDLER(WM_HELP, OnHelp);
NOTIFY_CODE_HANDLER(PSN_QUERYCANCEL, OnCancel)
NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
COMMAND_CODE_HANDLER (BN_CLICKED, OnClicked)
END_MSG_MAP()
CSharedAccessPage(
IUnknown* punk,
INetCfg* pnc,
INetConnection* pconn,
BOOLEAN fReadOnly,
BOOLEAN fNeedReboot,
BOOLEAN fAccessDenied,
const DWORD * adwHelpIDs = NULL);
~CSharedAccessPage();
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam,
LPARAM lParam, BOOL& bHandled);
LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnDestroy(UINT uMsg, WPARAM wParam,
LPARAM lParam, BOOL& bHandled);
LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnCancel(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnClicked (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
private:
INetConnection * m_pconn;
INetSharedAccessConnection* m_pNetSharedAccessConnection;
INetCfg * m_pnc;
IUnknown * m_punk;
BOOLEAN m_fReadOnly;
const DWORD * m_adwHelpIDs;
BOOLEAN m_fNetcfgInUse;
};