當前位置:首頁 » 操作系統 » 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 10:58:53 瀏覽:24
memcache資料庫 發布:2025-09-17 10:23:01 瀏覽:67
安卓機如何鎖軟體 發布:2025-09-17 10:18:34 瀏覽:945
二手3系買哪個配置好 發布:2025-09-17 10:07:16 瀏覽:740
sqlserver2000xp 發布:2025-09-17 09:36:19 瀏覽:829
c9什麼時候升級安卓70 發布:2025-09-17 09:35:36 瀏覽:211
速演算法中 發布:2025-09-17 09:30:50 瀏覽:380
怎麼進網站伺服器 發布:2025-09-17 09:18:15 瀏覽:464
小火箭伺服器訂閱是什麼 發布:2025-09-17 09:01:40 瀏覽:738
c語言入門基礎 發布:2025-09-17 08:54:30 瀏覽:670