当前位置:首页 » 操作系统 » windows程序源码

windows程序源码

发布时间: 2023-01-28 22:23:58

Ⅰ 什么是Windows系列操作系统源代码

Windows系列操作系统源代码就是微软公司开发系统的程序代码
那是微软公司的机密,不可能让人知道的!^^
打个比方把,系统是墙,代码就是砖拉,没砖哪来的墙!让人知道不是泄了机密,微软还赚什么呢!

Ⅱ Windows10源代码:大小超过500G,400多万个文件

Windows 10与Windows 8,7,Vista,XP,2000和NT的代码库是相同的(进化的)代码库,其中每一代都进行了重大的重构,并增加了大量新功能,改进了性能和硬件支持。以及安全性,同时保持非常高的向后兼容性。

大多数内核(ntoskrnl.exe)都是用C编程语言编写的。你甚至可以在Github上找到Windows研究内核的泄露副本,并亲自看看,虽然这些代码已经过时且很不完整,但仍然会有很多启发。

例如,参见wrk-v1.2 / base / ntos / config中实现熟悉的Registry的源代码,内部称为配置管理器的内核组件“Cm” 。

在内核模式下运行的大多数内容也是用C编程语言(大多数文件系统,网络,大多数驱动程序......)编写的,其中包含一些C ++。

当你向用户模式上升,并向更近期的发展,你会发现更少的C和更多的C ++。

作为旁注,大多数人都没有意识到的是Windows的庞大规模:这是一个真正史诗般巨大的巨型项目。

完整的源代码树包含所有代码,测试代码以及​​一起构成“Windows源代码”的所有内容,超过400万个文件,大小超过半TB。超过50万个文件夹,其中包含构成OS工作站和服务器产品及其所有版本,工具和相关开发工具包的每个组件的代码,阅读全部(或两个)需要一生。

下面是截图,可能会也可能不会描述有关完整Windows登记的统计信息(源代码,测试文件,构建工具,所有内容)

如果你看一下Windows 10“DVD”,并考虑使用哪些编程语言来创建该磁盘上的所有内容,我猜测其中98%将是C和C ++,而C获得了大部分的份额。

.NET BCL以及其他托管库和框架通常都是用C#编写的,但它们只代表C代码中巨大的C代码中的微小水滴。它们也来自不同的部门(开发人员部门,DevDiv),他们的代码不是Windows源代码树的一部分。

Ⅲ windows下如何查看软件源代码

源代码看不了的,如果可以的话开发人员就不值钱了

Ⅳ 如何查看windows系统源码

破解了就能看到加密的源码了
关键是密码要是拿得到,微软该破产了。

Ⅳ windows操作系统源代码是开放的吗

windows操作系统源代码是开放的。

采用了图形用户界面(GUI),比起从前的MS-DOS需要输入指令使用的方式更为人性化。随着计算机硬件和软件的不断升级,Windows也在不断升级,从架构的16位、32位再到64位。

系统版本从最初的Windows 1.0到大家熟知的Windows 95、Windows 98、Windows 2000、Windows XP、Windows Vista、Windows 7、Windows 8、Windows 8.1。

Windows ServerNT是 Microsoft公司1993年推出的32位网络操作系统,是向分布式图形应用程序的完整的交叉平台系统,可运行于nteX86、 Digital、 Alpha、SiliGraphics MIPS及 Power pc等主要计算机系统。

通用性好,可以安装在不同的计算机上。这是因为 Windows Server NT4.0除核是用汇编语言编写的以外,其他部分都是用C语言编写的,而C语言的通用性很好。

同时 Windows Server NT4.0用一系列的小模块来构筑某些底层部件,将依赖硬件的封装于一个动态链接库中,这样就可以做到与应用程序隔离,应用程序则通过一个接口与 Windows Server NT4.0相连。

以上内容参考网络--WINDOWS

Ⅵ 如何编译 windows 源码

1、如果是VC++程序,可以使用vc++6.0,visual studio2003,2005等,
2、如果是c, c++语言,除了以上编译器外,还有turbo c++,Dev c++,等, 前提是 程序是可以从其他平台移植到windows下。
3、如果是Java,可以使用JDK1.6,或Eclipse。

Ⅶ 求个用c/c++编写windows程序源代码

下面是完整程序,MS VC++ 6.0 编译器。
主要用途,用鼠标点击调节 RGB 数值,椭圆里显示 对应的颜色。
程序里有多余的码,你可以删去。(一个多余是试验鼠标移动时连续显示坐标数值,还有一个多余部分是调用Vfw32.lib播放一个avi视频。)

// cl show_color.cpp
#include <Afxwin.h>
#include <math.h>
// #include <Vfw.h>
// #pragma comment (lib, "Vfw32.lib")
#define DEBUG 1
HWND hWndMain;
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
BOOL InitWindowsClass(HINSTANCE hInstance);
BOOL InitWindows(HINSTANCE hInstance,int nCmdShow);
char one_line[80];
int len,NN;
LPTSTR argv;
RECT RectR, RectG, RectB, RectX;
int RectDy,RectW,RectH;
int x_r=495,x_g=495,x_b=495,x_shift=100;
long int v_r,v_g,v_b;

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInst,LPSTR lpszCmdLine,int nCmdShow)
{
MSG Msg;
int i;
RectDy = 50; RectW = 400; RectH = 30;
RectR.left = 0; RectR.right=RectW; RectR.bottom=200; RectR.top = RectR.bottom + RectH;
RectG.left = 0; RectB.left = 0;
RectG.right=RectW; RectB.right=RectW;
RectG.bottom=RectR.bottom + RectDy; RectB.bottom=RectG.bottom + RectDy;
RectG.top = RectG.bottom + RectH;
RectB.top = RectB.bottom + RectH;
v_r = (x_r - x_shift) * 255 / RectW;
v_g = (x_g - x_shift) * 255 / RectW;
v_b = (x_b - x_shift) * 255 / RectW;

if(!InitWindowsClass(hInstance))
return FALSE;
if(!InitWindows(hInstance,nCmdShow))
return FALSE;
ShowWindow(hWndMain,nCmdShow);
UpdateWindow(hWndMain);
while(GetMessage(&Msg,NULL,0,0))
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
return Msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
{
static long nXChar,nYChar,xInc,yInc;
static int xClient, yClient; // width height of client area
static int xClientMax; // maximum width of client area
static int xChar, yChar; // horizontal vertical scrolling unit
static int xPos,yPos; // current horizontal vertical scrolling position
static int xMax,yMax; // maximum horizontal scrolling position
SCROLLINFO si;
HDC hdc;
short x;
TEXTMETRIC tm;
PAINTSTRUCT ps;
COLORREF color;
HFONT font;
HPEN hP1; // pen
HBRUSH hBr,hBrR,hBrG,hBrB;
CPoint aP,mousePos;
HWND h_wnd2;

int i;
char szlocation[100]; //temp
CPoint pt,pt2; // temp
RECT rect,rect2;
switch(message)
{
case WM_LBUTTONDOWN: case WM_LBUTTONUP:
mousePos.x = LOWORD( lParam );
mousePos.y = HIWORD( lParam );
if (mousePos.x >= RectR.left+x_shift && mousePos.x <= RectR.right+x_shift){
if (mousePos.y > RectR.bottom && mousePos.y < RectR.top) x_r = mousePos.x;
if (mousePos.y > RectG.bottom && mousePos.y < RectG.top) x_g = mousePos.x;
if (mousePos.y > RectB.bottom && mousePos.y < RectB.top) x_b = mousePos.x;
v_r = (x_r - x_shift) * 255 / RectW;
v_g = (x_g - x_shift) * 255 / RectW;
v_b = (x_b - x_shift) * 255 / RectW;
ShowWindow(hwnd, SW_HIDE);
ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd);
};
return 0;
case WM_CREATE:
hdc=GetDC(hwnd);
GetTextMetrics(hdc,&tm);
nXChar=tm.tmAveCharWidth;
nYChar=tm.tmHeight;
xInc=1;yInc=1; xChar=nXChar; yChar=nYChar; // for scroll window
ReleaseDC(hwnd,hdc);
xClientMax = 800;
// h_wnd2 = MCIWndCreate(hwnd,NULL,0,"sylvtwt.avi"); //Play
// MCIWndPlay(h_wnd2); // Play
return 0;
case WM_PAINT:
hdc=BeginPaint(hwnd,&ps); // begin paint
SetGraphicsMode(hdc,GM_ADVANCED);
SetWindowExtEx(hdc,700,400,NULL); // cx=700,cy=400 logical unit
SetViewportExtEx(hdc,600,400,NULL);
SetViewportOrgEx(hdc,x_shift,10,NULL);
SetMapMode(hdc,MM_ANISOTROPIC);

color=RGB(0,128,128);
hP1=CreatePen(PS_SOLID,0,color);
SelectObject(hdc,hP1);

hBrR = CreateSolidBrush( RGB(255,0,0));
hBrG = CreateSolidBrush( RGB(0,255,0));
hBrB = CreateSolidBrush( RGB(0,0,255));
hBr = CreateSolidBrush( RGB(200,200,200));
SelectObject(hdc,hBrR);
FillRect(hdc, &RectR, hBrR);
RectX=RectR; RectX.left=x_r-x_shift; SelectObject(hdc,hBr); FillRect(hdc, &RectX, hBr);
SelectObject(hdc,hBrG);
FillRect(hdc, &RectG, hBrG);
RectX=RectG; RectX.left=x_g-x_shift; SelectObject(hdc,hBr); FillRect(hdc, &RectX, hBr);
SelectObject(hdc,hBrB);
FillRect(hdc, &RectB, hBrB);
RectX=RectB; RectX.left=x_b-x_shift; SelectObject(hdc,hBr); FillRect(hdc, &RectX, hBr);

font=CreateFont(
24,10,0,0, FW_NORMAL,0,0,0, ANSI_CHARSET,OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,NULL,"myfont"
);
SelectObject(hdc,font);
GetTextMetrics(hdc,&tm);
nYChar=tm.tmHeight;
color=RGB(0,0,0);
sprintf(one_line,"R=%3d",v_r);
TextOut(hdc,RectR.right+10,RectR.bottom,one_line,strlen(one_line));
sprintf(one_line,"G=%3d",v_g);
TextOut(hdc,RectG.right+10,RectG.bottom,one_line,strlen(one_line));
sprintf(one_line,"B=%3d",v_b);
TextOut(hdc,RectB.right+10,RectB.bottom,one_line,strlen(one_line));
color = RGB(v_r,v_g,v_b);
hBr = CreateSolidBrush(color);
SelectObject(hdc,hBr);
Ellipse(hdc, 100, 30, 326, 144);

EndPaint(hwnd,&ps); // end paint
return 0L;

case WM_SIZE:
yClient = HIWORD (lParam);
xClient = LOWORD (lParam);
yMax = max (0, 600 - yClient/yChar); // need to calculate
yPos = min (yPos, yMax); // current position not exceed the maximum
si.cbSize = sizeof(si);
si.fMask = SIF_RANGE | SIF_PAGE | SIF_POS;
si.nMin = 0; si.nMax = yMax; si.nPage = yClient / yChar;
si.nPos = yPos;
SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
xMax = max (0, 2 + (1600 - xClient)/xChar);
xPos = min (xPos, xMax);
si.cbSize = sizeof(si);
si.fMask = SIF_RANGE | SIF_PAGE | SIF_POS;
si.nMin = 0;
si.nMax = xMax;
si.nPage = xClient / xChar;
si.nPos = xPos;
SetScrollInfo(hwnd, SB_HORZ, &si, TRUE);
UpdateWindow (hwnd);
return 0;
case WM_VSCROLL:
switch(LOWORD (wParam))
{
case SB_PAGEUP: // User clicked shaft left of the scroll box.
yInc = -4; break;
case SB_PAGEDOWN: // User clicked shaft right of the scroll box.
yInc = 4; break;
case SB_LINEUP: // User clicked the left arrow.
yInc = -1; break;
case SB_LINEDOWN: // User clicked the right arrow.
yInc = 1; break;
case SB_THUMBTRACK: // User dragged the scroll box.
yInc = HIWORD(wParam) - yPos; break;
default:
yInc = 0; break;
}
if (yInc = max(-yPos, min(yInc, yMax - yPos)))
{
yPos += yInc;
ScrollWindowEx(hwnd, 0, -yChar * yInc,
(CONST RECT *) NULL, (CONST RECT *) NULL,
(HRGN) NULL, (LPRECT) NULL, SW_INVALIDATE);
si.cbSize = sizeof(si);
si.fMask = SIF_POS;
si.nPos = yPos;
SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
UpdateWindow (hwnd);
};
return 0;

case WM_HSCROLL:
switch(LOWORD (wParam))
{
case SB_PAGEUP: // User clicked shaft left of the scroll box.
xInc = -4; break;
case SB_PAGEDOWN: // User clicked shaft right of the scroll box.
xInc = 4; break;
case SB_LINEUP: // User clicked the left arrow.
xInc = -1; break;
case SB_LINEDOWN: // User clicked the right arrow.
xInc = 1; break;
case SB_THUMBTRACK: // User dragged the scroll box.
xInc = HIWORD(wParam) - xPos; break;
default:
xInc = 0; break;
}
if (xInc = max(-xPos, min(xInc, xMax - xPos)))
{
xPos += xInc;
ScrollWindowEx(hwnd, -xChar * xInc, 0,
(CONST RECT *) NULL, (CONST RECT *) NULL,
(HRGN) NULL, (LPRECT) NULL, SW_INVALIDATE);
si.cbSize = sizeof(si);
si.fMask = SIF_POS;
si.nPos = xPos;
SetScrollInfo(hwnd, SB_HORZ, &si, TRUE);
UpdateWindow (hwnd);
};
return 0;

case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
return DefWindowProc(hwnd,message,wParam,lParam);

}
}
BOOL InitWindowsClass(HINSTANCE hInstance)
{
WNDCLASS wndclass;
wndclass.cbClsExtra=0;
wndclass.cbWndExtra=0;
wndclass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.hCursor=LoadCursor(NULL,IDC_ARROW);
wndclass.hIcon=LoadIcon(NULL,"END");
wndclass.hInstance=hInstance;
wndclass.lpfnWndProc=WndProc;
wndclass.lpszClassName="Windows Fill";
wndclass.lpszMenuName=NULL;
wndclass.style=CS_HREDRAW|CS_VREDRAW;
return(RegisterClass(&wndclass));
}

BOOL InitWindows(HINSTANCE hInstance,int nCmdShow)
{
HWND hWnd;
hWnd=CreateWindow(
"Windows Fill",
"Show_color",
WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_BORDER | WS_HSCROLL | WS_VSCROLL,
100,100,800,400,
NULL,
NULL,
hInstance,
NULL
);
if(!hWnd)
return FALSE;
hWndMain=hWnd;
ShowWindow(hWnd,nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}

Ⅷ 如何查看exe文件的源代码

需要准备的工具:电脑,反编译工具ILSpy。

1、首先在网络上搜索下载反编译工具ILSpy,解压后如图,双击.exe文件打开解压工具。

Ⅸ 如何查看电脑上某程序的源代码 如计算器

可以通过GitHub源代码ping在计算机中检查计算器的源代码。具体操作方式如下:

1、进入GitHub的Microsoft个人问题主页,如下图所示。

(9)windows程序源码扩展阅读:

GitHub的Windows应用

GitHub 使用 git 分布式版本控制系统,而 git 最初是 LinusTorvalds 为帮助Linux开发而创造的,它针对的是 Linux 平台,因此 git 和 Windows 从来不是最好的朋友,因为它一点也不像Windows。

GitHub 发布了GitHub for Windows,为 Windows 平台开发者提供了一个易于使用的 Git 图形客户端。

GitHub forWindows是一个 Metro 风格应用程序,集成了自包含版本的 Git,bash 命令行 shell,PowerShell 的 posh-git 扩展。

GitHub 为 Windows 用户提供了一个基本的图形前端去处理大部分常用版本控制任务,可以创建版本库,向本地版本库递交补丁,在本地和远程版本库之间同步。微软也通过CodePlex向开发者提供 git 版本控制系统,而 GitHub 创造了一个更具有吸引力的 Windows 版本。

Ⅹ windows的源代码被加密在它的系统盘里吗怎么那么不好破解

Windows的源代码是指可读的文本文件格式,也就是编程时写下的、还没有编译为可执行文件的文档。而我们使用的Windows程序则是编译后的二进制文件,是机器代码,也就是常说的“不可读”的。

实际上二进制代码也是可读的,但要读懂是很艰难的。
举个简单的例子:假若源文件为“开机”二字,若编译成二进制代码为“01000110101110011010110001101”,你能读懂吗?就算读懂了,整个一个系统你都能读懂吗?

所以要Windows文件翻译为可读的源程序文件,是和登天一样难的事情。

热点内容
怎么进网站服务器 发布:2025-09-17 09:18:15 浏览:460
小火箭服务器订阅是什么 发布:2025-09-17 09:01:40 浏览:735
c语言入门基础 发布:2025-09-17 08:54:30 浏览:667
副卡服务密码是多少位 发布:2025-09-17 08:45:44 浏览:438
白条密码是什么情况 发布:2025-09-17 08:43:01 浏览:319
高中信息算法与程序 发布:2025-09-17 08:41:34 浏览:26
服务器禁止设置几个ip 发布:2025-09-17 08:41:26 浏览:504
侧限压缩仪 发布:2025-09-17 08:41:24 浏览:174
php登陆系统 发布:2025-09-17 08:35:55 浏览:420
wincc全局脚本中加减运算 发布:2025-09-17 08:05:48 浏览:338