Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet207/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   203   204   205   206   207   208   209   210   ...   453
LISTINg 9-4: 
 Queryable information for GetSetting()
SSF_SHOWALLOBJECTS = 0x00000001
SSF_SHOWEXTENSIONS = 0x00000002
SSF_HIDDENFILEEXTS = 0x00000004
SSF_SERVERADMINUI = 0x00000004
SSF_SHOWCOMPCOLOR = 0x00000008
SSF_SORTCOLUMNS = 0x00000010
SSF_SHOWSYSFILES = 0x00000020
SSF_DOUBLECLICKINWEBVIEW = 0x00000080
SSF_SHOWATTRIBCOL = 0x00000100
SSF_DESKTOPHTML = 0x00000200
SSF_WIN95CLASSIC = 0x00000400
SSF_DONTPRETTYPATH = 0x00000800
SSF_SHOWINFOTIP = 0x00002000
LISTINg 9-3 
(continued)
548592c09.indd 188
2/24/10 12:48:24 PM
www.finebook.ir


Performing Late Binding Using Marshal.GetActiveObject()
 

 
189
SSF_MAPNETDRVBUTTON = 0x00001000
SSF_NOCONFIRMRECYCLE = 0x00008000
SSF_HIDEICONS = 0x00004000
SSF_FILTER = 0x00010000
SSF_WEBVIEW = 0x00020000
SSF_SHOWSUPERHIDDEN = 0x00040000
SSF_SEPPROCESS = 0x00080000
SSF_NONETCRAWLING = 0x00100000
SSF_STARTPANELON = 0x00200000
SSF_SHOWSTARTPAGE = 0x00400000
fIguRE 9-15: 
The shell objects provide access to all sorts of useful information.
The third method, 
ExplorerPolicy()
, is a registry-based query that relies on bit positions
to define a value. You find these values in the 
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Policies\Explorer
registry key. The two most common policies are 
NoDriveAutorun
and 
NoDriveTypeAutoRun
. When working with the 
NoDriveAutorun
policy, 
Windows enables or disables autorun on a drive letter basis where bit 0 is drive A and bit 25 is 
drive Z. Listing 9-3 shows how to work with the bits for the 
NoDriveTypeAutoRun
policy, while 
Figure 9-15 shows the results for the host machine.
You can find a number of other examples of this kind of late binding for IronPython on the Internet. 
For example, you can see a Word late binding example at 
http://www.ironpython.info/index 
.php/Extremely_Late_Binding
. This particular example would possibly be the next step for many 
developers in working with 
Activator.CreateInstance()
. The important thing to remember is 
that this method is extremely flexible and that you need to think of the impossible, as well as the 
possible, when using it.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   203   204   205   206   207   208   209   210   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish