Answer Questions
robinjam Remote Desktop is the issue, not Vista
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. Only if you want the process to have an environment. The same code works for us on Vista as on XP, etc. The service is running as the Local System. 1. use WTSGetActiveConsoleSessionId to get the ID of the current active Windows session at the con ...Show All
RussP Regarding Windows WorkFlow Samples ...
Deal all Help Desk Demo by Don Esposito I need bit of information on two windows workflow samples. The first one is from MSDN Article "Windows Workflow Foundation" "http://msdn.microsoft.com/msdnmag/issues/06/03/CuttingEdge/ . This article leverage beta 2.2 version of WF. As we have move to RC now urgently need this sample code to run on latest microosft .net 3.0 release. Now can any one help me out here to convert/rewrite the sample code for .NET 3.0 RC. Purchase Order Demo by Don Esposito This Demo was part of article in MSDN by Don Esposito named " Getting Started with Microsoft Windows Workflow Foundation: A Developer Walkthrough " ( http://msdn2.microsoft.com/en-us/library/aa480214.aspx ...Show All
Sqwa DEP
I am getting following error while installing an application developed in .net framework 1.1 on Vista Data Execution Prevention closed windows installer. First, see if a DEP-compatible version of the program is available by visiting the software publisher's website. If the publisher has not released an updated, DEP-compatible version of the program, you can turn off DEP for the program that was closed. You will be able to use the program, but it might be vulnerable to an attack that could spread to your other programs and files. What changes i need to made to installer to rectify the error Regards Ajay So how would you disable DEP for windows installer We ar ...Show All
Ashish Patel Windows Multimedia API issues on Vista
In a multimedia application I'm using different methods in order to map a waveOut device to a waveIn device: the first method attempts an exact match based on the device name, the second method is based on the same mixer ID and the last one tries to match paritally the device names. Of course everything is working fine on XP and 2000, but on Vista given that MAXPNAMELEN is 32 and the playback devices are in form of "Speakers on (...)", the above mapping methods will fail, because the device name is truncated. Another problem on Vista, is with the MM_MIXM_CONTROL_CHANGE notification message which on Vista is triggered all the time and the dialog in which I'm using it cannot show up. ...Show All
9homme Trouble with the Thumbnail provider sample
Hey Eric, I ran into the same issues. The SDK sample doesn't work (it's quite buggy too). And your sample didn't work either. Using the release version of Windows Vista Ultimate. I believe it's got to do with some of the header files being outdated. I ended up getting this working, what I ended up doing is I created a new ATL-based COM project and added my own implementation of a thumbnail provider - borrowing from the sample where I could. For some reason, my implementation worked just fine! I hand-checked how I registered my sample and it seems OK, but for whatever reason it just wouldn't work for me. In any case, I put the sample I created based on that platform sdk sample on my blog. Thanks! Eric. ...Show All
Freqy bitmap
I want to include the bitmap(*.bmp) file in XPS. However, there is no corresponding Type in ContentType. Is it impossible Hi Karthikeyan, Thank you very much for the informations. Can you please share the link from where i can get the 5384 WDK Samples and check. Thanks & Regards, Santhosh. It is available on the Beta2 WDK release DVD. I think it can be obtained from https://connect.microsoft.com . Reference http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=523464&SiteID=1 regards, Karthikeyan. If you are looking for the logic on adding the image to the package. The example can be found i ...Show All
StevePO WPF/E and Virtual Earth on the same page
Has anyone tried putting WPF/E and the Virtual Earth control on the same page I can't get it to work in IE7 It works fine in IE6 and Firefox on the same machine. The code is really simple, just 2 divs, one containing the VE control and the other contains the wpf/e control pointing to a very simple xaml file. When the maps loads, the canvas goes blank. Anyone seen this The code for the page is shown below: <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-ransitional.dtd "> < html > < head > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8"> < script src ="js/aghost.j ...Show All
Titu How to debug a XOML-Only Workflow?
Hi, is it possible to debug a dynamically loaded workflow (XOML-Only) Did somebody done it Thanks Thank you SonaliC for the advice. I tried it out and the problem I encounter is that the "wrong" .xoml window pop's up. I think the reason might be the way I implemented the dynamic loading: I didn't used compilation for this purpose but rather I "inherited" from an empty workflow and loaded at runtime my .xoml instance (mean no x:Class property). So the loaded .xoml window is the one of the "base" workflow and not of the instance. Does anybody know how to handle this case Thank you! Good to know. Thank you for the help! ...Show All
E Jensen Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. Only if you want the process to have an environment. WTSQueryUserToken with 0 as the session id will always fail on Vista, because no user ever logs on in that session anymore. WTSGetActiveConsoleSessionId() returning 0 may happen under some rare ci ...Show All
prasindo Copy File to System32\Drivers
Hello, I encountered a problem that my program cannot CopyFile to C:\\Windows\\System32\\Drivers even though my property is Administrator, what I got by using GetLastError is Access Deny. But I really need to copy some files to that place, is there any other way I can do this Thanks! Hello, Because the DLLs and SYSs we bought need to be put in \\System32\\drivers , otherwise it wont be able to function. So This really bother me. I dont really understand what you guys mean "The app needs to run elevated", Can anyone explain thie concept Thanks! Hello, My solution is to build a Setup.exe by InstallSheild and make it sile ...Show All
Praveen_wm Custom Controls
So how can we build custom controls and deploy with the application I don't see anything that hints about how to include a referenced assembly that contains custom controls. I don't see any installable modules, or anything in the architecture that hints that it can be extended with custom controls, data binding, or .net-based event handlers. Thank you for using WPF/E. I am sorry to say that in Current CTP release we don’t support referencing an external assembly and data binding. In-fact, current version of WPF/E is a subset of WPF and does not support all the features of WPF. If you can share us what you are trying to do, May be we can help you with alternative approaches I believe this has ...Show All
Ramachandran Kartha.V Wer/Appverifier problem.
Test case 32: What about command-line applications and windows services that don't have a UI thread Are non-ui applications discarded from test 32 App Verifier and Windows Services: I’m sure my service calls GetVersionEx to check Windows Version; how can I check appverifier’s logs for my service (It runs as LocalService – or LocalSystem in maintenance mode - and I can’t log on as LocalService to read the logs) Not sure if this answers the second question: http://www.microsoft.com/technet/prodtechnol/windows/appcompatibility/appverifier_faq.mspx How can I enable AppVerifier on my service but not others As for reading the logs, as an administrator you should be able to open the log ...Show All
Williamq Scope IsolationLevel - when does it need to be the same?
The MSDN article " Implementing an Implicit Transaction using Transaction Scope " states that " When using nested TransactionScope objects, all nested scopes must be configured to use exactly the same isolation level if they want to join the ambient transaction. If a nested TransactionScope object tries to join the ambient transaction yet it specifies a different isolation level, an ArgumentException is thrown. " Does this only apply to nested scopes that specify "Required" In other words, nested scopes that are set to "RequiresNew" or "Suppress" could theoretically have a different isolation level than the ambient transaction, since they are not attempting to join the ambient ...Show All
bslim Large Fonts = Large Problem
Hi All, Hope someone can help here........ In all previous versions of Windows, window and control sizes designed in twips have been converted to pixels using 15 twips per pixel at small fonts and 12 twips per pixel at large fonts producing similar but slightly different displays. Minor adjustments could easily be made at startup to make things look right at either DPI. This doesn't happen in Vista. I don't know exactly whats happening, but basically, the window is sized at 15 twips per pixel and then enlarged as a graphic might be using anti aliasing techniques. Quite apart from not producing a window that looks as good as the old 12 twips per pixel formula, this is causing huge problems. 1. In large fonts, GetClientRect&am ...Show All
Sotham Synchronous Web Service Calls
Hi all. I have two distinct WFs, WF A and WF B, that send messages to each other using Web Services. When A calls a Web Service in B, B receives the SOAP request but it seems that B reply is asynchronous. B replies to A only when it finds suitable to do so. A have a few questions about this: 1. What conditions B has to meet so it can send a reply to A Does it need to be idle 2. I really need synchronous web service calls. Is there a way to implement this How 3. Since WF A is waiting for a reply from B, what happens if B takes to long to reply (B does not meet the conditions that are necessary to send a reply to A) Is there a timeout that should be handled by A Thank you for your time. Any help is welcome. Joh ...Show All
