资源简介
源码,源码,很不错的开源源码,你值得拥有
代码片段和文件信息
/////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2002 UltraVNC Team Members. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not write to the Free Software
// Foundation Inc. 59 Temple Place - Suite 330 Boston MA 02111-1307
// USA.
//
// If the source code for the program is not available from the place from
// which you received this file check
// http://www.uvnc.com
// /macine-vnc Greg Wood (wood@agressiv.com)
#include “authadmin.h“
#include “lm.h“
typedef struct _WKSTA_INFO_100_NT {
DWORD wki100_platform_id;
wchar_t * wki100_computername;
wchar_t * wki100_langroup;
DWORD wki100_ver_major;
DWORD wki100_ver_minor;
}WKSTA_INFO_100_NT;
BOOL APIENTRY DllMain( HANDLE hModule
DWORD ul_reason_for_call
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
bool IsAdmin() {
SC_HANDLE hSC;
hSC = OpenSCManager(
NULL
NULL
GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE
);
if( hSC == NULL ) {
return FALSE;
}
CloseServiceHandle( hSC );
return TRUE;
}
AUTHADMIN_API
BOOL CUGP(char * userinchar *passwordchar *machinechar *groupinint locdom)
{
DWORD dwLogonType;
DWORD dwLogonProvider;
HANDLE hToken;
bool returnvalue=false;
dwLogonType = LOGON32_LOGON_INTERACTIVE;
dwLogonProvider = LOGON32_PROVIDER_DEFAULT;
byte *buf = 0;
byte *buf2 = 0;
char domain[MAXLEN * sizeof(wchar_t)];
DWORD rcdomain = NetGetDCName( 0 0 &buf );
NetApiBufferFree( buf );
printf(“Logonuser: % s %s \n“ userin “.“);
if (LogonUser(userin “.“ password dwLogonType dwLogonProvider &hToken))
if (ImpersonateLoggedOnUser(hToken))
{
returnvalue=IsAdmin();
RevertToSelf();
CloseHandle(hToken);
}
if (returnvalue==true) return returnvalue;
if (!rcdomain)
{
DWORD result=NetWkstaGetInfo( 0 100 &buf2 ) ;
if (!result)
{
wcstombs( domain ((WKSTA_INFO_100_NT *) buf2)->wki100_langroup MAXLEN );
NetApiBufferFree( buf2 );
printf(“Logonuser: % s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-01-01 22:28 ultravnc-code-860\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\
目录 0 2014-01-01 22:29 ultravnc-code-860\UltraVNC Project Root\UltraVNC\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\
目录 0 2014-01-01 22:28 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\
文件 1302 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\minimizeup.bmp
文件 1558 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\front.bmp
文件 1302 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\maximizeup.bmp
文件 23934 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\mainicon.ico
文件 1302 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\closeup.bmp
文件 1302 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\pinup.bmp
文件 1558 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\both.bmp
文件 180054 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\flash.bmp
文件 1302 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\pindown.bmp
文件 1558 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\none.bmp
文件 1558 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\stat\back.bmp
文件 297086 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\vncviewer.ico
文件 318 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\drive.ico
文件 326 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\cursor1.cur
文件 297086 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\idr_tray.ico
文件 318 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\dir.ico
文件 6678 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\Tango_lx.bmp
文件 318 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\file.ico
文件 1118 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\quer.bmp
文件 56296 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\l1.bmp
文件 20022 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\l2.bmp
文件 777 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\vncviewer.exe.manifest
文件 85 2008-09-30 22:03 ultravnc-code-860\UltraVNC Project Root\UltraVNC\translations\viewer\russian\res\build-bcc32.bat
............此处省略1825个文件信息
相关资源
- Sniffer原理及开源代码
- VNC-5.1.0-Windows 破解版
- openHEVC-hm10.0
- RM2016步兵车开源代码
- vnc viewer
- profibus-DP开源代码+视频
- 在线报名开源代码
- 远程控制开源代码
-
svn代码检查工具(svnchecker+checkst
y - LBFGS开源代码
- FPGA实现CAN总线控制器开源代码.zip
- ecshop仿京东双平台手机APP完全开源代
- IMS PCRF开源代码
- slam 开源代码ptam and ptamm
- UltraVNCRealVNC免安装绿色中文版内附安
- 5900VNC弱口令抓鸡器(循环多段版)
- 中文简体VNC远程连接控制工具64位
- VNC-Viewer-6.17.731-Windows
- web端实现远程桌面novnc
- audacity开源代码
- 华为SVNClient
- QuidwaySVNClient.exe
- arm32平台可用的x11vnc服务端应用
- 2D板材排版套料开源代码
- 自建VNC服务器
- 利用vue写的后台管理系统开源代码
- 桌面远程连接软件开源版
- Cocos Creator重力小游戏《给我滚》开源
- 蓝牙4.0 协议栈 开源代码
- PCRat远控开源代码
评论
共有 条评论