in

myITforum.com

This Blog

Syndication

Brian Tucker at myITforum.com

Microsoft Technologies & Blogcasting

More on Download and Execute

I commented on Richard's post the other day and he sent me an email in response. Here's what he sent. As soon as I have a spare moment, I will test it. Thanks Richard!

I attempted to post a response however your blog doesn't allow comments:

The reason you are having this problem you are having is that 72 is not
valid when converted to Hex and then the wrong bit is set (it ends up
being 1001000 with 72 when it should be 101001000 which is 328 because
its a unsigned integer) so the Advertisement window freaks out. Just
glancing but those other values seem to be wrong as well. Two options
for you:

1. Do the type conversion on each property (I pulled the constants from
the SDK for you):

public const UInt32 BIT_RUN_FROM_LOCAL_DISPPOINT                    =
0x00000008;

public const UInt32 BIT_DOWNLOAD_FROM_LOCAL_DISPPOINT       =
0x00000010;

public const UInt32 BIT_DONT_RUN_NO_LOCAL_DISPPOINT             =
0x00000020;

public const UInt32 BIT_DOWNLOAD_FROM_REMOTE_DISPPOINT    = 0x00000040;

public const UInt32 BIT_RUN_FROM_REMOTE_DISPPOINT                =
0x00000080;

2. Run sms.msc /SMS:Nodeinfo=1 and just look at the RemoteClientFlags
value for each different setting on the Advertisement itself.



 

Comments

No Comments
Copyright - www.myITforum.com, Inc. - 2010 All Rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems