当前位置: 首页 > news >正文

startnet.cmd命令里面的factory -minint


第一部分:

startnet.cmd
regsvr32 /s netcfgx.dll
factory -minint
netcfg -v -winpe
net start dhcp
net start nla
a:\floppy.cmd

第二部分:

//
// Internal Function(s):
//

static BOOL ParseCmdLine()
{

        // Loop through all the arguments.
//
while ( lpArg && !bError )
{
// Now we check to see if the first char is a dash or not.
//
if ( *lpArg == _T('-') )
{
LPTSTR lpOption = CharNext(lpArg);

                // This is where you add command line options that start with a dash (-).
//
// ISSUE-2002/02/25-acosma,robertko - We don't validate correct combinations of arguments.  I can run
// "factory -setup -logon -winpe -oobe" and the last argument would be the one that is
// picked up.  We should fix this and make it smarter.
//
if ( CHECK_PARAM(lpOption, _T("setup")) )
g_fm = modeSetup;
else if ( CHECK_PARAM(lpOption, _T("logon")) )
g_fm = modeLogon;
else if ( CHECK_PARAM(lpOption, _T("minint")) )
g_fm = modeMiniNt;
else if ( CHECK_PARAM(lpOption, _T("winpe")) )
g_fm = modeWinPe;
else if ( CHECK_PARAM(lpOption, _T("oobe")) )
g_fm = modeOobe;
else
bError = TRUE;
}


第三部分:

/*++
===============================================================================
Routine Description:

    This routine is the main entry point for the program.

    We do a bit of error checking, then, if all goes well, we update the
registry to enable execution of our second half.

===============================================================================
--*/

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{

    // Check the command line for options (but don't error
// till we have the log file up).
//
bBadCmdLine = ( !ParseCmdLine() || ( g_fm == modeUnknown ) );

    // Need to find the mode stuff: string, flags, and states.
//
dwLocate = LOCATE_NORMAL;
switch ( g_fm )
{


第四部分:

    // We don't do the state thing in MiniNT mode right now (but we could).
// The modeMiniNt mode is only temporary the real mode in modeWinPe.
//
if ( g_fm == modeMiniNt )
{
// ISSUE-2002/02/25-acosma,robertko - This function does not check if we are running on WinPE, so users can just run factory -mini on any
// machine.
//
if ( !SetupMiniNT() )
{
FacLogFileStr(0 | LOG_ERR | LOG_MSG_BOX, L"Failed to install network adapter -- check WINBOM");
}
}

第五部分:

/*++
===============================================================================
Routine Description:

    BOOL SetupMiniNT

    This routine serves as the main entry point for initializing the netcard
under MiniNT.  Also performs the tasks of changing the computer name
and establishing the computer as part of a local workgroup.  Called from
factory!WinMain.

Arguments:

Return Value:

    TRUE if netcard was correctly installed
FALSE if there was an error

===============================================================================
--*/
BOOL
SetupMiniNT(
VOID
)
{

http://www.dtcms.com/a/288461.html

相关文章:

  • 零基础学习性能测试第二章-监控体系
  • 多线程 示例
  • QML 动画效果详解
  • Public Key Retrieval is not allowed
  • CS231n-2017 Lecture3线性分类器、最优化笔记
  • 测试计划(抽奖系统)
  • DC-DC降压转换5.5V/3A高效率低静态同步降压转换具有自适应关断功能
  • CCF编程能力等级认证GESP—C++7级—20250628
  • Navicat 查看单张表建表ddl
  • Python观察者模式详解:从理论到实战
  • 142. 环形链表 II
  • Spring IOC容器在Web环境中是如何启动的(源码级剖析)?
  • MCP 协议详细分析 二 Sampling
  • Jmeter的元件使用介绍:(一)测试计划详解
  • string的增删改查模拟实现(简单版)【C++】
  • 数据分析综合应用 30分钟精通计划
  • 使用UV管理FastAPI项目
  • 数独算法Python示例
  • 【HarmonyOS】Ability Kit - Stage模型
  • Redis数据库基础与持久化部署
  • Vue3的definePros和defineEmits
  • Nacos:微服务架构的核心引擎
  • xss-dom漏洞
  • Python 数据分析模板在工程实践中的问题诊断与系统性解决方案
  • 2025在线教育系统源码、平台开发新趋势:开源架构+AI赋能
  • FPGA自学——整体设计思路
  • MySQL练习3
  • 轻松上手:从零开始启动第一个 Solana 测试节点
  • 小架构step系列19:请求和响应
  • Redis字符串操作指南:从入门到实战应用