Windows NT ( 2)



- 11


(pdi + i)->szFileSystemName, 10);

GetDiskFreeSpace(lpTemp, &dwSectors, &dwBytes,

&dwFreeClusters, &dwClusters);

(pdi + i)->dwFreeSpace =

dwSectors * dwBytes * dwFreeClusters;

(pdi + i)->dwTotalSpace =

dwSectors * dwBytes * dwClusters;

break;

}

}

//

//

lpTemp = strchr(lpTemp, 0) + 1;

}

}

diskinfo.h ( 1.6) , , List View IDC_LISTVIEW.

1.6. DiskInfo/diskinfo.h

#define IDC_LISTVIEW 1234

// -----------------------------------------------------

//

// -----------------------------------------------------

LRESULT WINAPI

WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

BOOL WndProc_OnCreate(HWND hWnd,

LPCREATESTRUCT lpCreateStruct);

void WndProc_OnDestroy(HWND hWnd);

void WndProc_OnCommand(HWND hWnd, int id,

HWND hwndCtl, UINT codeNotify);

LRESULT WndProc_OnNotify(HWND hWnd, int idFrom,

NMHDR FAR* pnmhdr);

void WndProc_OnSize(HWND hwnd, UINT state, int cx, int cy);

void WndProc_OnDrawItem(HWND hwnd,

const DRAWITEMSTRUCT * lpDrawItem);

void GetDiskInfo(void);

resource.h ( 1.7) , .

1.7. DiskInfo/resource.h

//{{NO_DEPENDENCIES}}

// Microsoft Developer Studio generated include file.

// Used by DiskInfo.RC

//

#define IDR_APPMENU 102

#define IDI_APPICON 103

#define IDI_APPICONSM 104

#define IDI_DREMOVE 115

#define IDI_DREMOVSM 116

#define IDI_DFIXED 117

#define IDI_DFIXEDSM 118