cquwyb
驱动牛犊
驱动牛犊
  • 注册日期2002-05-10
  • 最后登录2010-10-23
  • 粉丝0
  • 关注0
  • 积分160分
  • 威望16点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
阅读:1122回复:4

[b]#pragma token-squence[/b]语法求助

楼主#
更多 发布于:2002-11-11 17:25
 
#pragma warning(disable:4214) // bitfield nonstd
#include \"wdm.h\"
#pragma warning(default:4214)
#include \"stdarg.h\"
#include \"stdio.h\"
#pragma warning(disable:4200) //non std struct used
#include \"usbdi.h\"
#pragma warning(default:4200)


请教#pragma在这里是什么意思喔
它的语法好像是这样的:
#pragma token-squence什么意思
HonestTreee
cquwyb
驱动牛犊
驱动牛犊
  • 注册日期2002-05-10
  • 最后登录2010-10-23
  • 粉丝0
  • 关注0
  • 积分160分
  • 威望16点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-11-11 17:30
还有:#pragma alloc_text(PAGE, PnPAddDevice) :mad: :(
HonestTreee
VanCheer
驱动老牛
驱动老牛
  • 注册日期2002-02-21
  • 最后登录2003-08-28
  • 粉丝0
  • 关注0
  • 积分-20分
  • 威望-10点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-11-11 17:35
给分裸
  
Platform SDK: Windows Management Instrumentation
#pragma
The pragma command is very similar in theory to a command-line switch; however, you do not need to re-enter a pragma command each time you compile a MOF file. The following example illustrates pragma command syntax:

#pragma [command]
You usually place a pragma command at the beginning of a MOF file. However, you can place some commands, such as the pragma namespace command, in the body of your MOF code. The following example shows pragma preprocessor commands that indicate to the MOF compiler that it must place classes and instances in the root\\cimv2 namespace and compile the file in which the commands are included during repository recovery:

#pragma autorecover
#pragma namespace (\"\\\\\\\\.\\\\root\\\\cimv2\")
The following table shows the available #pragma commands.

#pragma command Description
amendment Directs the MOF compiler to separate a MOF file into language-neutral and language-specific versions.
autorecover Adds this MOF file to the list of files compiled during repository recovery. The list of autorecover MOF files is stored in this registry key:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WBEM\\CIMOM\\autorecover mofs
 
classflags Controls the way classes are created or updated depending on the flag or flags specified.
deleteclass Deletes an existing class and its instances from the repository.
deleteinstance Deletes an existing instance of a class from the repository.
instanceflags Controls the way instances are created or updated depending on the flag or flags specified.
namespace Requests that the compiler load the MOF file into the namespace specified as namespacepath. If both the MOF compiler -n namespace switch and the #pragma namespace command are used, the latter takes priority.

Platform SDK Release: November 2001  What did you think of this topic?
Let us know.  Order a Platform SDK CD Online
(U.S/Canada)   (International)

 
[img]http://www.driverdevelop.com/forum/upload/VanCheer/2003-03-21_mon.gif[/img][img]http://www.driverdevelop.com/forum/upload/VanCheer/2002-12-07_smallbaby.jpg[/img]
ydyuse
驱动老牛
驱动老牛
  • 注册日期2002-07-25
  • 最后登录2005-03-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-11-11 17:38
其实,你自己到MSDN中一搜索就行了。
生命驱动,活力无限!
cquwyb
驱动牛犊
驱动牛犊
  • 注册日期2002-05-10
  • 最后登录2010-10-23
  • 粉丝0
  • 关注0
  • 积分160分
  • 威望16点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-11-11 18:00
 :D :D :D :D :D :D
嗨,搜了几次才出来。谢谢二位先
HonestTreee
游客

返回顶部