Showing results for 2015 - Page 20 of 28 - The Old New Thing

Apr 24, 2015
0
0

Why can't I have variadic COM methods?

Raymond Chen
Raymond Chen

COM methods cannot be variadic. Why not? Answer: Because the marshaler doesn't know when to stop. Suppose variadic COM methods were possible. And then you wrote this code: How would COM know how to marshal this function call? In other words, suppose that is a pointer to a proxy that refers to an object in another process. The COM marshaler...

Code
Apr 15, 2015
0
0

When I set the "force X off" policy to Disabled, why doesn't it force X on?

Raymond Chen
Raymond Chen

A customer was using one of the many "force X off" policies, but instead of using it to force X off, they were trying to use it to force X on by setting the policy to Disabled. For example, there is a "Hide and disable all items on the desktop". The customer was setting this policy to Disabled, expecting it to force all icons visible on the desktop...

Tips/Support