更新了系统是win8的更新完了就dellwin8恢复出厂系统软件我就吧他中断了然后重启就长时

C++调用windowsAPI实现目录zip压缩 - 为程序员服务
为程序员服务
C++调用windowsAPI实现目录zip压缩
C++调用windowsAPI实现目录zip压缩:
[C/C++]代码
TCHAR zipname[] = &C:\\bcel&;
TCHAR zipfile [FILENAME_MAX];
sprintf(zipfile, &%s.zip&, zipname);
if(Exists(zipfile))
int num = 2;
while(Exists(zipfile))
sprintf(zipfile, &%s%d.zip&, zipname, num++);
HZIP hz = CreateZip(zipfile,0);
deque&string&folderL
TCHAR folderpath[MAX_PATH]=&D:\\Desktop\\Desktop\\bcel-5.2&;
folderList.push_back(string(folderpath));
while(folderList.size()&0)
WIN32_FIND_DATA
string pathfile=folderList.front();
string subdir=
pathfile.append(&\\*.*&);
HANDLE handleFind = FindFirstFile(pathfile.c_str(),&finddata); //FindFirstFile
folderList.pop_front();
if(handleFind != INVALID_HANDLE_VALUE)
if(finddata.cFileName[0]=='.')
else if(finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
string subpath=
subpath.append(&\\&);
subpath.append(finddata.cFileName);
folderList.push_back(subpath);
string filename=
filename.append(&\\&);
filename.append(finddata.cFileName);
string zipdir = filename.substr(strlen(folderpath)+1);
ZipAdd(hz,zipdir.c_str(),filename.c_str());
}while(FindNextFile(handleFind,&finddata));
FindClose(handleFind);
CloseZip(hz);
您可能的代码
相关聚客文章
相关专栏文章温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(339)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_082075',
blogTitle:'Windows API函数大全(API之文件处理函数)',
blogAbstract:'API之文件处理函数\r\nCloseHandle 关闭一个内核对象。其中包括文件、文件映射、进程、线程、安全和同步对象等 CompareFileTime 对比两个文件的时间 CopyFile 复制文件 CreateDirectory 创建一个新目录 CreateFile 打开和创建文件、管道、邮槽、通信服务、设备以及控制台 CreateFileMapping 创建一个新的文件映射对象 DeleteFile 删除指定文件 DeviceIoControl 对设备执行指定的操作 DosDateTimeToFileTime 将DOS日期和时间值转换成一个 win32 FILETIME 值 ',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:8,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}wangxucumt 的BLOG
用户名:wangxucumt
文章数:16
访问量:29387
注册日期:
阅读量:5863
阅读量:12276
阅读量:371885
阅读量:1065889
51CTO推荐博文
&&&&最近研究了下Spark如何读写压缩格式的文件,主要有如下三种方式,这里以lzo方式压缩为例&&&&/*******************old&hadoop&api*************************/
&&&&val&confHadoop&=&new&JobConf
&&&&confHadoop.set("press",&"true")
&&&&confHadoop.set("pression.codec",&"pression.lzo.LzopCodec")
&&&&val&textFile&=&sc.hadoopFile(args(0),&classOf[DeprecatedLzoTextInputFormat],classOf[LongWritable],&classOf[Text],&1)
&&&&textFile.saveAsHadoopFile(args(1),classOf[LongWritable],&classOf[Text],&classOf[TextOutputFormat[LongWritable,Text]],confHadoop)
&&&&/*******************new&hadoop&api*************************/
&&&&val&job&=&new&Job()
&&&&job.setOutputFormatClass(classOf[TextOutputFormat[LongWritable,Text]])
&&&&job.getConfiguration().set("press",&"true")
&&&&job.getConfiguration().set("pression.codec",&"pression.lzo.LzopCodec")
&&&&val&textFile&=&sc.newAPIHadoopFile(args(0),&classOf[LzoTextInputFormat],classOf[LongWritable],&classOf[Text],job.getConfiguration())
&&&&textFile.saveAsNewAPIHadoopFile(args(1),&classOf[LongWritable],&classOf[Text],classOf[TextOutputFormat[LongWritable,Text]],job.getConfiguration())
&&&&/*******************textFile*************************/
&&&&val&textFile&=&sc.textFile(args(0),&1)
&&&&textFile.saveAsTextFile(args(1),&&classOf[LzopCodec])&&&&以上三种方式,基本上利用到了所有Spark提供的主流读写文件的API,第一个案例是针对Spark提供的旧版Hadoop API来编写的,在JobConf中配置压缩的属性,读写的时候声明InputFormat和OutputFormat即可。第二个案例是采用新版Hadoop API的方式来编写的,步骤跟第一个案例类似。最后就是最简单的一种写法,在写入的时候指定Codec即可。&&&&为了使Spark支持读写压缩格式的文件,还需要做一些基本的配置使得Spark可以加载需要用到的压缩格式相关的类库和jar,具体配置如下spark.executor.extraLibraryPath=/usr/lib/native/
spark.executor.extraClassPath=/usr/lib/hadoop/lib/hadoop-lzo.jar& & Spark支持三种配置属性的方式,优先级由低到高分别是:在conf/spark-defaults.conf中配置,使用spark-submit或spark-shell提交程序的时候配置参数,在Spark程序中通过System.setProperty方法或者通过设置SparkConf对象来配置参数。如果同一个参数配置了多次,以优先级最高的方式中配置的为准。&&&&上述有关压缩的配置是针对Executor来说的,还需要在提交的时候针对Driver配置压缩相关的属性--driver-class-path&/usr/lib/hadoop/lib/hadoop-lzo.jar
--driver-library-path&/usr/lib/native&&&&在使用Spark SQL的时候,配置Executor和Driver与压缩相关的属性就可以正常读取Hive目录下的压缩文件(我测试的版本是CDH5.0.0和Spark1.0),如果想通过Hive计算后输出压缩格式的结果,则在hql()方法中设置压缩相关的属性即可,例如 &hql("set&pression.codecs=pression.lzo.LzoCodec,pression.lzo.LzopCodec")
hql("set&pression.codec.lzo.class=pression.lzo.LzoCodec")
hql("set&pression.codec=pression.lzo.LzopCodec")&&&&如果NameNode配置了HA,则需要将hdfs-site.xml放入$SPARK_HOME/conf目录下,否则将导致读写HDFS的时候,无法加载到配置文件中的HA provider类,报UnknownHostException异常本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)Windows API函数参考手册 -图书
& Windows API函数参考手册
&&&&Windows API函数参考手册
书名Windows API函数参考手册
书号115-10612-6
出版时间2002年10月
定价 ¥80.0
零售/团购/批发
&《Windows API函数参考手册》
&&&&《Windows API函数参考手册》是关于Microsoft&Win32&API函数的完整参考手册。书中详细介绍了每一个Win32&API函数的使用方法,其中着重介绍其原型表示、函数说明、参数说明、注意事项、相应头文件(.H)、链接库(.LIB或.DLL)和典型示例。对于每个函数《Windows API函数参考手册》给出了相应的示例部分,这样读者在阅读相应的Win32&API函数时就能很快地了解它的具体功能和使用方法,便于更快地掌握该接口函数。《Windows API函数参考手册》是从事Microsoft&Windows操作系统开发和应用人员的必备参考书,也可作为大专院校相关专业师生自学、教学参考用书。
&《Windows API函数参考手册》
概述 11.1
Win32程序概述 11.2
图形界面编程 11.3
消息传递机制 71.4
Win32 API概述 71.5
为什么用API 81.6
如何在程序中调用API函数 81.7
本书示例约定 8第2章
窗口处理 102.1
窗口简介 102.2
窗口的创建和撤销 102.2.1
创建普通窗口(CreateWindow、CreateWindowEx) 102.2.2
关闭窗口(CloseWindow) 192.2.3
销毁窗口(DestroyWindow) 202.3
窗口之间的关系 212.3.1
父子关系(SetParent、GetParent、IsChild) 212.3.2
遍历窗口(EnumWindow、EnumWindowProc、EnumChildWindows、EnumChildProc) 242.3.3
获取指定的子窗口(ChildWindowFromPoint、ChildWindowFromPointEx) 272.3.4
获得特定的窗口(GetWindow、GetTopWindow、GetNextWindow、GetDesktopWindow) 292.4
窗口的大小、位置和布局 332.4.1
获取窗口大小(GetWindowRect、GetClientRect) 332.4.2
调整窗口大小(AdjustWindowRect、AdjustWindowRectEx) 352.4.3
设置和获取窗口位置(SetWindowPos) 372.4.4
移动窗口位置(MoveWindow) 392.4.5
设置一组窗口位置(BeginDeferWindowPos、DeferWindowPos、EndDeferWindowPos) 402.4.6
设置和获取窗口布局(SetWindowPlacement、GetWindowPlacement) 432.4.7
设置和获得视口坐标起点(SetViewportOrgEx、GetViewportOrgEx) 442.4.8
设置和获取视口坐标范围(SetViewportExtEx、GetViewportExtEx) 462.4.9
设置和获取窗口坐标起点(SetWindowOrgEx、GetWindowOrgEx) 482.4.10 设置和获取窗口坐标范围(SetWindowExtEx、GetWindowExtEx) 492.4.11
坐标起点的偏移操作(OffsetViewportOrgEx、OffsetWindowOrgEx) 512.5
显示窗口 532.5.1
显示单个窗口(ShowWindow、ShowWindowAsync、OpenIcon) 532.5.2
弹出式窗口(ShowOwnedPopups、GetLastActivePopup) 562.5.3
显示子窗口(CascadeWindows、TileWindows、ArrangeIconicWindows) 582.5.4
判断各种显示状态(IsIconic、IsWindowVisible、IsZoomed) 622.6
窗口属性 632.6.1
设置和获取窗口名(SetWindowText、GetWindowText、GetWindowTextLength) 632.6.2
设置和获取窗口标记长字(SetWindowLong、GetWindowLong) 662.6.3
设置和获取前台窗口(SetForegroundWindow、GetForegroundWindow) 682.7
对话框 692.7.1
创建对话框(DialogBox、CreateDialog、CreateDialogIndirect、Message Box、MessageBoxEx、MessageBoxIndirect) 692.7.2
获取控件及其ID(GetDlgItem、GetDlgCtrlID) 782.7.3
设置获取控件的显示文本(SetDlgItemText、SetDlgItemInt、GetDlgItemText、GetDlgItemInt) 802.7.4
获取下一个TAB控件(GetNextDlgTabItem) 832.7.5
对话框过程(DefDlgProc、DialogProc) 842.7.6
对话框坐标和屏幕坐标间的转换(MapDialogRect) 852.7.7
撤销对话框(EndDialog) 862.8
其他 872.8.1
查找窗口(FindWindow、FindWindowEx) 872.8.2
设置窗口Z坐标(BringWindowToTop) 882.8.3
确定窗口属性(IsWindow、IsWindowUnicode) 892.8.4
设置和获取激活态窗口(SetActiveWindow、GetActiveWindow) 912.8.5
窗口闪烁(FlashWindow) 922.8.6
获取指定点处的窗口(WindowFromPoint) 932.8.7
遍历线程所有窗口(EnumThreadWindows、EnumThreadWndProc) 94第3章
设备上下文--DC 973.1
DC简介 973.2
DC的获取和撤销 973.2.1
创建DC(CreateDC、CreateCompatibleDC) 973.2.2
撤销DC(ReleaseDC、DeleteDC) 993.2.3
获得窗口DC(GetWindowDC、GetDC、GetDCEx) 1003.2.4
保存和恢复DC(SaveDC、RestoreDC) 1033.3
设置和获取DC的各种属性 1053.3.1
获得DC起始点坐标(GetDCOrgEx) 1053.3.2
设置显示配置(ChangeDisplaySettings、ChangeDisplaySettingsEx) 1063.3.3
遍历显示设备和其配置(EnumDisplayDevices、EnumDisplaySettings) 1083.3.4
设置和获取DC画刷颜色(SetDCBrushColor、GetDCBrushColor) 1093.3.5
设置和获取DC画笔颜色(SetDCPenColor、GetDCPenColor) 1103.3.6
设置和获取DC中各种对象(SelectObject、GetCurrentObject) 1113.3.7
获取DC中对象的信息(GetObject、GetObjectType、GetStockObject) 1143.4
区域操作 1173.4.1
新建椭圆区域(CreateEllipticRgn、CreateEllipticRgnIndirect) 1173.4.2
新建多边形区域(CreatePolygonRgn、CreatePolyPolygonRgn) 1183.4.3
新建矩形区域(CreateRectRgn、CreateRectRgnIndirect) 1213.4.4
新建圆矩形区域(CreateRoundRectRgn) 1223.4.5
区域之间的操作(EqualRgn、ExcludeUpdateRgn) 1233.4.6
区域上绘图操作(FillRgn、FrameRgn、InvertRgn、PaintRgn) 1253.5
裁剪操作 1283.5.1
设置和获取裁剪区域(SelectClipRgn、SelectClipPath、GetClipRgn、ExtSelectClipRgn) 1283.5.2
裁剪区域间的运算(ExcludeClipRect、IntersectClipRect、OffsetClipRgn) 1323.6
坐标变换 1353.6.1
客户区坐标与屏幕坐标的变换(ClientToScreen、ScreenToClient) 1353.6.2
设备坐标与逻辑坐标的变换(DPtoLP、LPtoDP) 1373.6.3
窗口间的坐标变换(MapWindowPoints) 1393.7
颜色和调色板 1403.7.1
创建新调色板(CreatePalette) 1403.7.2
启用调色板(SelectPalette、RealizePalette) 1413.7.3
设置和获取调色板颜色条目(SetPaletteEntries、GetPaletteEntries) 1433.7.4
设置系统调色板的工作方式(SetSystemPaletteUse) 1453.7.5
设置和获取颜色调整(SetColorAdjutstment、GetColorAdjustment) 1463.7.6
获取匹配颜色(GetNearestColor、GetNearestPaletteIndex) 1473.8
其他 1493.8.1
滚动窗口(ScrollDC) 1493.8.2
偏移操作(OffsetRect、OffsetRgn) 1503.8.3
点、矩形和区域的关系(PtInRegion、PtVisible、RectInRegion、RectVisible) 1523.8.4
缩放视口和窗口大小(ScaleViewportExtEx、ScaleWindowExtEx) 1553.8.5
由给定DC获取相联系的窗口(WindowFromDC) 1573.8.6
获取特定设备的信息(GetDeviceCaps) 1583.8.7
撤销DC中的对象(DeleteObject) 160第4章
绘图函数 1624.1
基本画图函数 1624.1.1
点(SetPixel、SetPixelV、GetPixel) 1624.1.2
线(LineTo、LineDDA、LineDDAProc、MoveToEx、Polyline、PolylineTo) 1644.1.3
曲线(PolyBezier、PolyBezierTo、PolyDraw) 1704.1.4
弧(AngleArc、Arc、ArcTo、SetArcDirection、GetArcDirection) 1734.1.5
椭圆(Ellipse) 1774.1.6
弦(Chord) 1784.1.7
矩形(Rectangle、Roundrect、DrawEdge、DrawFocusRect、FillRect) 1804.1.8
多边形(Polygon、PolyPolygon、PolyPolyline) 1854.1.9
饼图(Pie) 1884.2
路径相关函数 1894.2.1
启动和终止路径绘图(BeginPath、EndPath) 1894.2.2
曲线到直线(FlattenPath) 1914.2.3
填充路径(FillPath、StrokeAndFillPath) 1924.2.4
边界处理(StrokePath、WidenPath) 1944.2.5
封闭路径(CloseFigure) 1954.2.6
获取路径区域(PathToRegion) 1964.2.7
获取路径(GetPath) 1974.2.8
撤销路径(AbortPath) 1984.3
处理DC对象 1994.3.1
新建画笔(CreatePen、CreatePenIndirect、ExtCreatePen) 1994.3.2
新建画刷(CreateBrushIndirect、CreateHatchBrush、CreateDIBPatternBrushPt、CreatePatternBrush、CreateSolidBrush、GetSysColorBrush) 2024.3.3
设置和获取背景颜色和模式(GetBkColor、GetBkMode、SetBkColor、SetBkMode) 2094.4
图元文件 2114.4.1
创建图元文件(CreateEnhMetaFile、CreateMetaFile) 2114.4.2
复制图元文件(CopyEnhMetaFile、CopyMetaFile) 2134.4.3
打开图元文件(GetEnhMetaFile) 2154.4.4
关闭图元文件(CloseEnhMetaFile、CloseMetaFile) 2154.4.5
撤销图元文件(DeleteEnhMetaFile、DeleteMetaFile) 2164.4.6
绘制图元文件(PlayEnhMetaFile) 2174.5
其他 2184.5.1
启动和终止绘图(BeginPaint、EndPaint) 2184.5.2
获取需更新区域(GetUpdateRect、GetUpdateRgn) 2204.5.3
绘图操作生效(InvalidateRect、InvalidateRgn、ValidateRect、ValidateRgn) 2224.5.4
设置和获取最大绘图缓冲(GdiSetBatchLimit、GdiGetBatchLimit) 2264.5.5
刷新缓冲(GdiFlush) 2274.5.6
设置和获取窗口可绘图区域(SetWindowRgn、GetWindowRgn) 2284.5.7
禁止在窗口绘图(LockWindowUpdate) 2304.5.8
绘制桌面(PaintDesktop) 2314.5.9
更新窗口(RedrawWindow) 2314.5.10
撤销绘图操作(CancelDC) 2324.5.11
描绘标准控件(DrawFrameControl) 2334.5.12
设定画图效果(DrawState、DrawStateProc) 2354.5.13
设置和获取系统颜色(SetSysColors、GetSysColor) 238第5章
位图和图标 2415.1
位图和图标简介 2415.2
创建和撤销位图、图标 2415.2.1
创建位图(CreateBitmap、CreateBitampIndirect、CreateCompatible、Bitmap、CreateDIBitmap、CreateDIBSection、LoadBitmap、LoadImage) 2415.2.2
创建图标(CreateIcon、LoadIcon、LoadCursorFromFile) 2515.2.3
撤销图标(DestoryIcon) 2555.3
设置和获得位图和图标的各种属性 2565.3.1
设置和获取位图的位数据(SetBitmapBits、GetBitmapBits) 2565.3.2
设置和获取DIB(SetDIBits、GetDIBits) 2585.3.3
设置和获取DIB颜色表(SetDIBColorTable、GetDIBColorTable) 2615.3.4
设置和获取位图的大小(GetBitmapDimensionEx、SetBitmapDimension Ex) 2635.3.5
获取图标信息(GetIconInfo) 2655.4
位块操作 2665.4.1
各种位块操作方式(BitBlt、PatBlt、PlgBlt、StretchBlt、MaskBlt、TransparentBlt) 2665.4.2
设置和获取位操作模式(SetROP2、GetROP2、SetStretchBltMode、GetStretchBltMode) 2735.5
其他 2765.5.1
复制位图和图标(CopyImage、CopyIcon) 2765.5.2
从文件中搜寻图标(ExtractIcon、ExtractIconEx、ExtractAssociatedIcon) 2785.5.3
显示图标(DrawIcon、DrawIconEx) 281第6章
菜单处理 2846.1
菜单的简单操作 2846.1.1
生成新菜单(CreateMenu、CreatePopupMenu) 2846.1.2
装载菜单(LoadMenu、LoadMenuIndirect) 2866.1.3
撤销菜单(DestoryMenu、DeleteMenu、RemoveMenu) 2886.1.4
获取菜单(GetMenu、GetSubMenu、GetSystemMenu) 2906.1.5
增添菜单(AppendMenu) 2936.2
菜单项处理 2956.2.1
设置和获取菜单项信息(SetMenuItemInfo、GetMenuItemInfo) 2956.2.2
设置和获取缺省菜单项(SetMenuDefautlItem、GetMenuDefaultItem) 2976.2.3
获取菜单项的ID(GetMenuItemID) 2996.2.4
获取菜单项数(GetMenuItemCount) 3006.2.5
获取菜单项的范围大小(GetMenuItemRect) 3016.2.6
高亮显示菜单项(HiliteMenuItem) 3026.2.7
菜单项属性(CheckMenuItem、EnableMenuItem、CheckMenuRadioItem) 3036.2.8
添加菜单项(InsertMenuItem) 3066.2.9
获取某点处的菜单项(MenuItemFromPoint) 3076.3
其他 3086.3.1
设置窗口的菜单(SetMenu) 3086.3.2
判定句柄是否指向菜单(IsMenu) 3086.3.3
上下文菜单(TrackPopupMenu、TrackPopupMenuEx) 3096.3.4
显示菜单条(DrawMenuBar) 3126.3.5
图形菜单项(SetMenuItemBitmaps) 313第7章
文件处理 3157.1
创建、读写和撤销文件 3157.1.1
创建文件(CreateFile、lcreat、GetTempFileName) 3157.1.2
设置文件读写位置(SetFilePointer、_llseek、_lseek) 3197.1.3
写入文件(WriteFile、lwrite、hwirte) 3227.1.4
异步写入文件(WriteFileEx、FileIOCompletionRoutine) 3247.1.5
读入文件(ReadFile、_lread、_hread) 3267.1.6
异步读入文件(ReadFileEx) 3297.1.7
复制文件(CopyFile、CopyFileEx、CopyProgressRoutine) 3307.1.8
更改文件名(MoveFile、MoveFileEx) 3337.1.9
关闭文件(CloseHandle、_lclose) 3357.1.10
删除文件(DeleteFile) 3367.2
设置和获得文件的各种信息 3377.2.1
获取文件大小(GetFileSize) 3377.2.2
获取文件类型(GetFileType) 3387.2.3
设置和获取文件时间信息(SetFileTime、GetFileTime) 3397.2.4
获取文件版本信息(GetFileVersionInfo、GetFileVersionInfoSize、VerQueryValue) 3417.2.5
是否可执行文件(GetBinaryType) 3447.2.6
长文件名和短文件名的转换(GetFullPathName、GetShortPathName) 3457.2.7
由文件句柄获取文件信息(GetFileInformationByHandle) 3477.2.8
设置文件结束标志(SetEndOfFile) 3487.2.9
设置和获取文件属性(SetFileAttributes、GetFileAttributes) 3497.3
目录处理 3517.3.1
创建新目录(CreateDirectory、CreateDirectoryEx) 3517.3.2
删除目录(RemoveDirectory) 3527.3.3
获取系统路径(GetSystemDirectory) 3537.3.4
获取临时路径(GetTempPath) 3547.3.5
获取Windows完整目录(GetWindowsDirectory) 3557.3.6
设置和获取当前目录(SetCurrentDirectory、GetCurrentDirectory) 3567.4
文件查找 3587.4.1
查找第一个文件(FindFirstFile) 3587.4.2
查找下一个文件(FindNextFile) 3597.4.3
查找指定文件(SearchPath) 3597.4.4
查找结束(FindClose) 3617.5
磁盘信息 3617.5.1
获取可用逻辑驱动器(GetLogicalDrives) 3617.5.2
获取可用逻辑驱动器信息(GetLogicalDriveStrings) 3627.5.3
设置和获取卷标信息(SetVolumeLabel、GetVolumeInformation) 3637.5.4
获取磁盘空闲空间(GetDiskFreeSpace、GetDiskFreeSpaceEx) 3667.5.5
获取磁盘类型(GetDriveType) 3697.6
压缩文件 3707.6.1
初始化内部缓冲区(LZInit) 3707.6.2
打开压缩文件(LZOpenFile) 3717.6.3
读入压缩文件(LZRead) 3727.6.4
压缩文件指针定位(LZSeek) 3737.6.5
获取压缩文件大小(GetCompressedFileSize) 3747.6.6
获取压缩文件全名(GetExpandedName) 3757.6.7
复制和解压缩文件(LZCopy) 3767.6.8
关闭压缩文件(LZClose) 3777.7
其他 3787.7.1
设置和获取字符集(SetFileApisToANSI、SetFileApisToOEM、AreFileApisANSI) 3787.7.2
联系文件和I/O端口(CreateIoCompletionPort、PostQueuedCompletion Status、GetQueuedCompletionStatus) 3807.7.3
更新文件缓冲区(FlushFileBuffers) 3847.7.4
加锁和解锁文件(LockFile、LockFileEx、UnlockFile、UnlockFileEx) 3847.7.5
撤销文件IO(CancelIO) 3887.7.6
比较文件时间信息(CompareFileTime) 3897.7.7
设备IO操作(DeviceIoControl) 3907.7.8
DOS时间转换为Win32时间(DosDateTimeToFileTime) 3927.7.9
Win32时间转换为Dos时间(FileTimeToDosDateTime) 3937.7.10
Win32时间转换本地时间(FileTimeToLocalFileTime) 394第8章
同步 3968.1
同步对象 3968.1.1
生成同步对象(CreateEvent、CreateMutex、CreateSemaphore、Create WaitableTimer) 3968.1.2
打开同步对象(OpenEvent、OpenMutex、OpenSemaphore、OpenWaitable Timer) 4048.1.3
关键段(EnterCriticalSection、LeaveCriticalSection、DeleteCritiaclSection) 4108.2
关键区段 4138.2.1
初始化关键区段(InitializeCriticalSection、InitializeCriticalSectionAnd SpinCount) 4138.2.2
非阻塞进入关键区段(TryEnterCriticalSection) 4158.2.3
设置关键区段的计数(SetCriticalSecitonSpinCount) 4158.3
原子性访问变量 4168.3.1
原子性比较(InterlockedCompareExchange) 4168.3.2
原子性交换(InterlockedExchange) 4178.3.3
原子性增加(InterlockedIncrement、InterlockedExchangeAdd) 4188.3.4
原子性减少(InterlockedDecrement) 4208.4
等待事件发生 4218.4.1
触发一个事件并等待另一个事件(SignalObjectAndWait) 4218.4.2
等待单个事件发生(WaitForSingleObject、WaitForSingleObjectEx) 4228.4.3
等待多个事件发生(WaitForMultipleObjects、WaitForMultipleObjectsEx) 4238.4.4
等待消息(MsgWaitForMultipleObjects、MsgWaitForMultipleObjectsEx) 4278.5
其他 4308.5.1
设置事件状态(SetEvent、ResetEvent、PulseEvent) 4308.5.2
释放互斥量(ReleaseMutex) 4338.5.3
释放信号灯(ReleaseSemaphore) 4338.5.4
设置可等待定时器状态(SetWaitableTimer、CancelWaitableTimer) 434第9章
处理文本和字体 4369.1
文本 4369.1.1
显示文本(DrawText、DrawTextEx、TextOut、ExTextOut、TabbedTextOut、GrayString、OutputProc、PolyTextOut) 4369.1.2
设置和获取文本属性(SetTextAlign、GetTextAlign、SetTextColor、GetTextColor) 4469.1.3
调整和获取字符间距(SetTextCharacterExtra、GetKerningPairs) 4519.1.4
获得字符串的宽和高(GetTextExtentPoint32、GetTabbedTextExtent) 4529.1.5
获取字符串的信息(GetCharacterPlacement) 4559.1.6
调整字符串(SetTextJustification) 4569.3
字体 4589.3.1
创建新字体(CreateFont、CreateFontIndirect、CreateScalableFontResource) 4589.3.2
在系统中添加和删除字体(AddFontResource、RemoveFontResource) 4649.3.3
获取字体的宽度(GetCharABCWidths、GetCharWidth、GetCharWidth32、GetCharWidthFloat、GetCharaABCWidthsFloat) 4659.3.4
获取字体的各种信息(GetTextMetric、GetFontLanguageInfo) 4709.3.5
字体的宽高比( GetAspectRatioFilterEx、SetMapperFlags) 4729.3.6
获取字体的字型名(GetTextFace) 4739.3.7
遍历系统字体(EnumFontFamiliesEx、EnumFontFamiExProc) 474第10章
硬件和系统 47810.1
键盘 47810.1.1
设置和获取键盘布局(ActivateKeyboardLayout、GetKeyboardLayout、GetKey boardLayoutList、GetKeyboardLayoutName) 47810.1.2
装载和卸载键盘布局(LoadKeyBoardLayout、UnloadKeyBoardLayout) 48310.1.3
获得和设置键盘状态(GetKeyboardState、SetKeyboardState) 48510.1.4
获得键盘类型(GetKeyboardType) 48810.1.5
获得按键名(GetKeyNameText) 49010.1.6
获得按键状态(GetKeyState、GetAsyncKeyState) 49110.1.7
虚拟按键到扫描码(MapVirtualKey、MapVirtualKeyEx) 49310.1.8
虚拟按键到ASCII码(ToAscii、ToAsciiEx) 49610.1.9
虚拟按键到Unicode(ToUnicode、ToUnicodeEx) 49810.1.10
字符到虚拟按键(VkKeyScan、VkKeyScanEx) 50110.1.11
OEM码到扫描码(OemKeyScan) 50310.1.12
注册和撤销系统热键(RegisterHotKey、UnregisterHotKey) 50410.1.13
插入键盘事件(SendInput、keybd_event) 50610.2
鼠标 50810.2.1
获得鼠标输入点序列(GetMouseMovePoints) 50810.2.2
获得和设置双击间隔(GetDoubleClickTime、SetDoubleClickTime) 50910.2.3
鼠标左右键设置(SwapMouseButton) 51010.2.4
鼠标捕获和释放(SetCapture、GetCapture、ReleaseCapture) 51110.2.5
捕获离开和滑过事件(TrackMouseEvent) 51310.2.6
插入鼠标事件(mouse_event) 51410.2.7
探测拖动(DragDetect) 51610.3
光标 51710.3.1
新建和撤销光标(CreateCursor、LoadCursorFromFile、DestroyCursor) 51710.3.2
设置和获取光标(SetCursor、GetCursor) 52110.3.3
设置和获取光标位置(SetCursorPos、GetCursorPos) 52210.3.4
设置和获取光标活动范围(ClipCursor、GetClipCursor) 52410.3.5
显示光标(ShowCursor) 52610.3.6
设置系统光标(SetSystemCursor) 52610.4
时钟 52810.4.1
设置和获取系统时间(SetSystemTime、GetSystemTime、GetSystemTimeAsFileTime) 52810.4.2
设置和获取当地时间(SetLocAltime、GetLocAltime) 53110.4.3
获取自启动以来的微秒数(GetTickCount) 53210.4.4
获取和设置系统调整时间( GetSystemTimeAdjustment、SetSystemTimeAdjustment) 53310.4.5
设置和获取时区信息(SetTimeZoneInformation、GetTimeZoneInformation) 53510.4.6
获取高精度时间(QueryPerformanceCounter、QueryPerformance Frequency) 53710.4.7
设置定时器(SetTimer) 53810.4.8
设置定时器回调函数(TimerProc) 54010.4.9
撤销定时器(KillTimer) 54010.5
系统信息 54110.5.1
获取系统各种度量信息(GetSystemMetrics) 54110.5.2
设置和获取系统参数(SystemParametersInfo) 54410.5.3
确定处理器的特性(IsProcessorFeaturePresent) 54910.5.4
获取和设置计算机名(GetComputerName、SetComputerName) 55010.5.5
获取用户名(GetUserName) 55210.5.6
获取操作系统版本信息(GetVersionEx) 55210.5.7
获取系统信息(GetSystemInfo) 553第11章
Windows 消息 55511.1
消息系统概述 55511.2
消息处理 55511.2.1
发送消息(SendMessage、SendMessageCallback、SendNotifyMessage、SendMessageTimeout、PostThreadMessage、PostMessage、PostQutiMessage、BroadcastSystemMessage) 55511.2.2
回复消息(ReplyMessage) 56511.2.3
获取消息(GetMessage、WaitMessage、PeekMessage) 56711.2.4
处理消息(TranslateMessage、DispatchMessage) 57011.2.5
设置和获取消息的附加信息(SetMessageExtraInfo、GetMessageExtra Info) 57111.2.6
获取消息的伴随信息(GetMessagePos、GetMessageTime) 57311.2.7
注册新窗口消息(RegisterWindowMessage) 57411.3
消息队列 57611.3.1
获取队列状态(GetQueueStatus) 57611.3.2
获取队列中输入消息状态( GetInputState) 57711.4
其他 57811.4.1
是否重入(InSendMessage、InSendMessageEx) 578第12章
进程和线程 58012.1
进程和线程概述 58012.2
进程 58012.2.1
创建新进程(CreateProcess、CreateProcessAsUser) 58012.2.2
获取进程对象(OpenProcess) 58512.2.3
获取进程起始信息(GetStartupInfo) 58712.2.4
设置和获取工作集大小(SetProcessWorkingSetSize、GetProcessWorkingSetSize) 58812.2.5
设置和获取进程的优先级(SetPriorityClass、GetPriorityClass) 58912.2.6
进程的动态优先级(SetProcessPriorityBoost、GetProcessPriorityBoost) 59112.2.7
设置和获取退出参数(SetProcessShutdownParameters、GetProcessShutdownParameters) 59312.2.8
获取进程的退出代码(GetExitCodeProcess) 59412.2.9
设置和获取环境参数(GetEnvironmentStrings、SetEnvironmentVariable、GetEnvironmentVariable、FreeEnvironmentVariable) 59512.2.10
获取进程的时间信息(GetProcessTime) 59812.2.11
获取进程的版本信息(GetProcessVersion) 59912.2.12
获取当前进程(GetCurrentProcess、GetCurrentProcessID) 60012.2.13
等待进程空闲(WaitForInputIdle) 60112.2.14
结束进程(ExitProcess、TerminateProcess) 60112.2.15
获取命令参数(GetCommandLine、CommandLineToArgvW) 60412.3
线程 60512.3.1
创建新线程(CreateThread) 60512.3.2
设置和获得线程优先级(SetThreadPriority、GetThreadProority) 60712.3.3
线程的调度(SuspendThread、SwitchToThread、ResumeThreadExitThread 、TerminateThread、Sleep、SleepEx) 61012.3.4
设置线程的输入队列(AttachThreadInput) 61612.3.5
线程的动态优先级( SetThreadPriorityBoost、GetThreadPriorityBoost) 61812.3.6
获取线程的时间信息(GetThreadTimes) 61912.3.7
获取线程的退出码(GetExitCodeThread) 62012.4
调试 62112.4.1
调试指定进程(DebugActiveProcess) 62112.4.2
设置断点(DebugBreak) 62412.4.3
等待异常发生(WaitForDebugEvent) 62512.4.4
重新启动线程(ContinueDebugEvent) 62612.4.5
设置调试级别(SetDebugErrorLevel) 62712.4.6
发送一串字符给调试器(OutputDebugString) 62712.4.7
是否处于被调试态(IsDebuggerPresent) 62812.4.8
控制转移到调试器(FatalExit) 62912.4.9
设置和获取线程上下文(SetThreadContext、GetThreadContext) 62912.4.10
获取线程选择子的描述符(GetThreadSelectorEntry) 63112.4.11
读写进程内存(WriteProcessMemory、ReadProcessMemory) 63212.5
线程局部数据区 63512.5.1
分配(TlsAlloc) 63512.5.2
释放(TlsFree) 63612.5.3
设置和获取变量值(TlsSetValue、TlsGetValue) 63712.6
进程间通信 63812.6.1
创建映射文件(CreateFileMapping) 63812.6.2
打开映射文件(OpenFileMapping) 64012.6.3
映射文件到内存(MapViewOfFile、MapViewOfFileEx) 64112.6.4
撤销映射(UnmapViewOfFile) 644附录A
数据结构 645附录B
Windows消息 698附录C
类型与宏 746
&&推荐图书
&&相似图书
&&参考图书

我要回帖

更多关于 win8如何恢复系统还原 的文章

 

随机推荐