Click here to Skip to main content
15,898,035 members
Articles / Programming Languages / C++

GUI-Based RunAsEx

Rate me:
Please Sign up or sign in to vote.
4.97/5 (61 votes)
24 Oct 2006CPOL42 min read 401.4K   10.8K   200  
An ultimate tool that lets you RunAs... (With support for non-Pwd, WTS, fake privilege, fake user groups, etc...)
/************************************
  REVISION LOG ENTRY
  Revision By: Zhefu Zhang 
  Contact : codetiger@hotmail.com
  Revised on 2/13/2004 10:11:25 AM
  Comment: it is part of the code sample of 
           http://www.codeguru.com/misc/RunUser.html
 ************************************/
#if !defined(AFX_LIMITVIEW_H__BE7BEFCA_2C91_4DB7_B1B6_AD8706D15B8D__INCLUDED_)
#define AFX_LIMITVIEW_H__BE7BEFCA_2C91_4DB7_B1B6_AD8706D15B8D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LimitView.h : �w�b�_�[ �t�@�C��
//

/////////////////////////////////////////////////////////////////////////////
// CLimitView �t�H�[�� �r���[

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CMainFrame;
#include "clrButton.h"
class CLimitView : public CFormView
{
protected:
	CLimitView();           // ���I�����Ɏg�p�����v���e�N�g �R���X�g���N�^�B
	DECLARE_DYNCREATE(CLimitView)

// �t�H�[�� �f�[�^
public:
	//{{AFX_DATA(CLimitView)
	enum { IDD = IDD_LIMIT };
	CClrButton	m_btnV;
	//}}AFX_DATA
	BOOL m_bExpand;

// �A�g���r���[�g
public:
    CMainFrame* m_pW;
	void ArrangeLayout(int cx = 0, int cy = 0);
// �I�y���[�V����
public:

// �I�[�o�[���C�h
	// ClassWizard �͉��z�֐��̃I�[�o�[���C�h�𐶐����܂��B
	//{{AFX_VIRTUAL(CLimitView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV �T�|�[�g
	//}}AFX_VIRTUAL

// �C���v�������e�[�V����
protected:
	virtual ~CLimitView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// �������ꂽ���b�Z�[�W �}�b�v�֐�
	//{{AFX_MSG(CLimitView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnButtonV();
	afx_msg void OnCreateRestrictedToken();
	afx_msg void OnAddRestricted();
	afx_msg void OnRemoveRestricted();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ �͑O�s�̒��O�ɒlj��̐錾��}�����܂��B

#endif // !defined(AFX_LIMITVIEW_H__BE7BEFCA_2C91_4DB7_B1B6_AD8706D15B8D__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Other
United States United States
fdefewtr534554yutki8op09;[pio';l.n,kbnmcvbxcvzxaqW876876UIYIUJUGHJGFHYFGHRDTR4564QWEDASASFDXCBVCBNGHNMJHMJN,NJKL;O[P-0=-]'[P';L/L,M.NM,BNMCGNGFXDGDFGTYU76TRYW34TR5AWERFASDVGfdsxbvfbvnvnm,jkl.k

Comments and Discussions