Windows SDK和windows api的区别

2019-01-21 21:02

问题补充:
2d3ou
2d3ou ·
0 0

sdk   and   ddk   都是kit。win32   的sdk是在一般应用程序上使用像Loadlibrary,CreateWindows,CreateFile这些函数。而DDk一般用在驱动的开发,这个在一般编程中不常用。但这并不是说使用sdk时不使用ddk,或者反过来说。也存在二者互相配合使用的场合 说道API,看看我见到的比较正规的定义。“Win32   API   即为Microsoft   32位平台的应用程序编程 接口(Application   Programming   Interface)。”  摘自《新编window   Api   参考大全》。  
   我一般认为sdk是将一大类api函数集合在一起的有机体。 Api的意义在于Interface。sdk关键在于kit.  
  以下是Msdn   的   copy,看看对你有没有帮助  
   
   
  Microsoft   Office   XP   Developer        
   
  什么是   API?API   就是应用程序编程接口。它是能用来操作组件、应用程序或者操作系统的一组函数。典型的情况下,API   由一个或多个提供某种特殊功能的   DLL   组成。  
   
  DLL   是一个文件,其中包含了在   Microsoft®   Windows®   下运行的任何应用程序都可调用的函数。运行时,DLL   中的函数动态地链接到调用它的应用程序中。无论有多少应用程序调用   DLL   中的某个函数,在磁盘上只有一个文件包含该函数,且只在它调入内存时才创建该   DLL。  
   
  您听到最多的   API   可能是   Windows   API,它包括构成   Windows   操作系统的各种   DLL。每个   Windows   应用程序都直接或间接地与   Windows   API   互动。Windows   API   保证   Windows   下运行的所有应用程序的行为方式一致。  
   
  注意       随着   Windows   操作系统的发展,现已发布了几个版本的   Windows   API。Windows   3.1   使用   Win16   API。Microsoft®   Windows   NT®、Windows   95   和   Windows   98   平台使用   Microsoft®   Win32®   API。  
  除   Windows   API   外,其他一些   API   也已发布。例如,邮件应用程序编程接口   (MAPI)   是一组可用于编写电子邮件应用程序的   DLL。  
   
  API   传统上是为开发   Windows   应用程序的   C   和   C++   程序员编写的,但其他的编程语言(包括VBA)也可以调用   DLL   中的函数。因为大部分   DLL   主要是为   C   和   C++   程序员编写和整理说明的,所以调用   DLL   函数的方法与调用   VBA   函数会有所不同。在使用   API   时必须了解如何给   DLL   函数传递参数。  
   
  警告       调用   Windows   API   和   其他   DLL   函数可能会给您的应用程序带来不良影响。从自己的代码中直接调用   DLL   函数时,您绕过了   VBA   通常提供的一些安全机制。如果在定义或调用   DLL   函数时出现错误(所有程序员都不可避免),可能会在应用程序中引起应用程序错误(也称为通用性保护错误,或   GPF)。最好的解决办法是在运行代码以前保存该项目,并确保了解   DLL   函数调用的原理。  
   
  Visual   Studio   SDK        
   
  Visual   Studio   .NET   SDK  
   
  The   Microsoft   Visual   Studio   .NET   Software   Development   Kit   (SDK)   gives   you   extensibility   options   for   the   integrated   development   environment   (IDE).   The   SDK   includes   code   files,   import   libraries,   and   samples   to   enhance   your   coding   experience   in   Visual   Studio.   It   works   in   conjunction   with   the   automation   object   model,   a   set   of   interfaces   that   gives   you   programmatic   access   to   the   elements   of   an   environment.   In   Visual   Studio,   these   elements   include   the   editor,   the   debugger,   windows,   and   the   toolbar.   Moreover,   you   can   now   automate   your   work   during   design   time,   run   time,   and   debug   modes.   For   more   information   about   the   automation   object   model,   see   Extending   the   Visual   Studio   Environment   in   MSDN.  
   
  The   Visual   Studio   SDK   Web   site   (http://msdn.microsoft.com/downloads/)   presents   up-to-date   information   and   just-breaking   news   for   the   extensibility   programmer.   Future   SDKs   will   be   available   from   this   location.  
   
  Note       The   following   two   SDKs   are   only   available   in   the   Enterprise   edition   of   Visual   Studio.