Change the Win2K default login name (with original code)

zhaozj2021-02-08  281

Are you using Win2K? After you restart, the name of the default login is used for you. But if you use the Administrator, you have to change back to ordinary users (for anti-virus and security); or you don't want others to know that you log in to this computer (嘿 I steal your QQ chat record ... ...), how to modify the default login user?

This applet is doing this. Pull it into the startup group of the start menu, modify the shortcut, add the default login name you want to change after the command line

For example: c: /winnt/chglogon.exe flywhc

Then you log in with administrator, then restart or log out and try it?

The original code and engineering documents are included. After compile volume 16K. But obviously, if you can use the assembly, you can do it.

I am very interested in reducing compilation, if someone can compile this VC, then reduce the volume of 1K (without any third-party software to compress), send me email, I will give you 200 in the VC version 200 Minute.

================= chGlogon.dsp ==========================================================================================================================================

# Microsoft Developer Studio Project File - Name = "Chglogon" - Package Owner = <4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** Do Not Edit **

# TARGTYPE "WIN32 (x86) Application" 0x0101

CFG = chglogon -! Win32 Release MESSAGE This is not a valid makefile To build this project using NMAKE, MESSAGE use the Export Makefile command and run MESSAGE MESSAGE NMAKE / f "chglogon.mak" MESSAGE MESSAGE You can.!!!.!! specify a configuration when running NMAKE MESSAGE by defining the macro CFG on the command line for example:!.!!!! MESSAGE MESSAGE NMAKE / f "chglogon.mak" CFG = "chglogon - Win32 Release" MESSAGE MESSAGE Possible choices for configuration are :! Message! Message "Chglogon - Win32 RELEASE" (x86) Application ")! Message

# Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP = cl.exeMTL = midl.exeRSC = rc.exe # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Ignore_Export_Lib 0 # PROP target_Dir "" # ADD BASE CPP / nologo / W3 / GX / O2 / D "WIN32" / D "ndebug" / d "_Windows" / d "_mbcs" /yu"stdafx.h "/ fd / c # add CPP / NOLOGO / W4 / GX / O1 / D" WIN32 "/ D" NDebug "/ d" _windows "/ d" _mbcs "/ fd / c # Subtract CPP / YX / YC / YU # add base mtl / nologo / d" ndebug "/ mktyplib203 / win32 # add mtl / nologo / d" ndebug "/ Mktyplib203 / win32 # add base rsc / l 0x804 / d "ndebug" # add rsc / l 0x804 / d "ndebug" bsc32 = bscmake.exe # add base bsc32 / nologo # add bsc32 /nologolink32=link.exe# add base link32 Kernel32.lib user32.lib gdi32.lib Winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleau t32.lib uuid.lib odbc32.lib odbccp32.lib / nologo / subsystem: windows / machine: I386 # ADD LINK32 advapi32.lib kernel32.lib / nologo / entry: "WinMain" / subsystem: windows / machine: I386 / nodefaultlib # Begin Target # name "Chglogon - Win32 Release" # begin group "Source Files"

# Prop default_filter "CPP; C; CXX; RC; DEF; R; ODL; IDL; HPJ; BAT" # Begin Source File

Source =. / Chglogon.cpp # end source file # end group # begin group "Header files"

# Prop default_filter "h; hpp; hxx; hm; inl" # end group # begin group "resource file" # prop default_filter "ICO; cur; bmp; dlg; rc2; rct; bin; rgs; gif; jpg; jPEG; JPE "# end group # end target # End Project

============== End ======================

============== chGlogon.cpp ===============

#include

转载请注明原文地址:https://www.9cbs.com/read-2268.html

New Post(0)