| MsVidCtl.dd Anyone tried using in Vista? |
|
 |
Index ‹ Software Development for Windows Vista ‹ General Windows Vista Development Issues
|
- Previous
- 1
- Windows Workflow Foundation Parameters for an activity
Hi,
I've used the beta version where you can pass parameters to activities and mark them as input and output paramenters. I've used to consume them i in the code activity_executeCode method like this, but now, Parameters collection does not work.
Me.Parameters("MyOutputParameter").Value = "35"
How can I set and access my parameters from an activity.
Best Regards
- 2
- Windows Workflow Foundation Accessing workflow instance members from WorkflowInstance (runtime event handlers)
Hi All,
Is there a way to retrieve a strongly typed reference to the actual running workflow from a WorkflowInstance instance
More details:
I have a runtime event handler (loaded, idled) that receives a WorkflowEventArgs parameter. In that method I would like to access some of the instance properties (DependencyProperties) of my own workflow class. The only object I have in that method is a WorkflowInstance with an InstanceId. So the question is, how can I get a MyWorkflowClass instance if I have an InstanceId
Thanks in advance.
- 3
- Security for Applications in Windows Vista CertEnroll.dll vs XEnroll.dll
Hello guys,
Microsoft says "new API, implemented in CertEnroll.dll starting with Windows Vista, replaces Xenroll.dll which has been deprecated and is no longer contained in Windows."
You can find the API reference at http://msdn2.microsoft.com/en-gb/library/aa374863.aspx
Now, does anyone know the class ID or API that can be used by JavaScript in InternetExplorer to generate keypair ( in IE )and PKCS10 in vista
The code which used to do the job in Win2000 , XP and 2003 server no longer works because it uses Xenroll cab which is deprecated in Vista.
Any help is greatly appriciated.
- 4
- Windows SDK ICredentialProvider questions
Hi,
I read some posts from wolf777 regarding compatibility with Vista for your fingerprint solution.
I am facing similar problems right now but am currently unable to get ahead. I need to interactivly log on an user from within an service with well known credentials (an Install user account). With W2K/XP I could use the AutoLogon registry keys and simulate Ctrl-Alt-Del on the Winlogon desktop but this does not longer work with Vista.
Is this possible with Vista I would be very happy if one could point me to the right direction... :-)
Bernd
- 5
- 6
- Windows Workflow Foundation Windows WF and ASP.net
Hello,
I am beginner to windows WF. I need a sample ASP.net which is completely controlled by workflow. I do need simple application wherein navigation to next page should be controlled by workflow using inbuilt controls available in windows workflow foundation.
I have gone through some samples from Microsoft site, but it seems that they are not easy to understand.
Thanks
Sunil
- 7
- 8
- 9
- Windows CardSpace ("InfoCard") DeCrypting a Security token
Hi
Inorder to get the claims in a WCF application the following code can be used.
try { AuthorizationContext ctx = OperationContext.Current.ServiceSecurityContext.AuthorizationContext; foreach (ClaimSet claimset in ctx.ClaimSets) { foreach (Claim claim in claimset) { try { result += string.Format("Claim:[{0}] = [{1}]\n" , claim , claim.Resource.ToString() ); } catch (Exception ex) { System.Console.WriteLine("SERVER ERROR:"+ex.Message ); } } } } catch (Exception) { }
Is it possible to read the values in a claim. for example if first name is the claim in the card then is it possible to read the name of the user at the service side. need help regarding this.
Regards
Ragu
- 10
- Transactions Programming Communication with the underlying transaction manager has failed
Does anyone has any idea
I have to resolve this exception:
Communication with the underlying transaction manager has failed
InnerException
"Error HRESULT E_FAIL has been returned from a call to a COM component. (System.Transactions)
------------------------------ Program Location:
at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)
"
I've tried all the solutions from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=444383&SiteID=1 ...nothing worked .. and on my colleague computers works fine. So, the problem appeared after I changed my computer - on the old one, transactions in transactionScope worked fine. Does anyone know what can be wrong
Thanks a lot,
Ela
- 11
- 12
- XML Paper Specification (XPS) Print XPS-file on printer (to file)
Hello, I'm trying to print a xps-file to a printer (for example HP Laserjet 5Si)... with the example-code below I can select printer to print on, but how can I set the filename to print to file, so I can avoid savefile-dialog and have a pcl-file in the end Is there anything similar to Win32/StartDoc (DOCINFO.lpszOutput) where I can set filename to print to How can this be done with XPS
PrintDialog pDialog = new PrintDialog(); pDialog.PageRangeSelection = PageRangeSelection.AllPages; pDialog.UserPageRangeEnabled = true;
// Display the dialog. This returns true if the user presses the Print button. Nullable<Boolean> print = pDialog.ShowDialog(); if (print == true) { XpsDocument xpsDocument = new XpsDocument("C:\\temp\test.xps", FileAccess.ReadWrite); FixedDocumentSequence fixedDocSeq = xpsDocument.GetFixedDocumentSequence(); pDialog.PrintDocument(fixedDocSeq.DocumentPaginator, "Test print job"); }
I know this can be done also without the printer-dialog, but still I don't find an option to print to file then...
anyone got an idea maybe a small code-snippet
- 13
- 14
- Windows SDK PowerShell - dir /o:d /b
I am trying to duplicate the functionality of dir /o:d /b in PowerShell. This is what I have so far (and have found by searching the Web):
dir | where-object -FilterScript {$_.Mode -like "d*"} | ft Name -H
This works OK, EXCEPT that it includes a blank line at the top of the list. That is, if I redirect this command to a file, the first line will be blank.
How do I get rid of the blank line
My ultimate goal is to pipe the output to my own cmdLet, but it won't bind because the first "row" of the output is null (and I am guessing that this is because of the first blank line).
Also, is there a more appropriate place for questions on programming in PowerShell
Thanks!
- 15
- General Windows Vista Development Issues Can't install VS6 SP6 or VB6 SP6 on Vista RTM (6.0.6000)
Hi, I can't install SP 6 for Visual Studio 6, either the VB6 cutdown version, or the complete VS6 version.
I have Vista Ultimate version 6.0.6000.
This problem exists even if I "Run as administrator".
I already have UAC off, and the problem exists whether I use Compatibility options or not.
The process to follow to reproduce this problem is:
Double-click Setupsp6.exe
Click 'Continue'
Click 'I agree'
[Very short time-period follows]
Message box: "Visual Studio 6.0 Service Pack 6 Setup was not completed successfully."
Click 'OK'
Setup then finishes. SP6 is not installed.
I have about 100 applications I must maintain and recompile periodically. I now cannot do that. Does it mean I have to use a VM on Vista
Please offer a solution.
Thanks in advance.
|
 |
Index ‹ Software Development for Windows Vista ‹ General Windows Vista Development Issues |
- Next
- 1
- 2
- Security for Applications in Windows Vista Single-instance DCOM server access problems with high/low integrity levels
I
am working on an application that employs a single-instance DCOM
server. The application works fine on all other versions of Windows
except Vista. There is a strange behavior that I observe on Vista in
regards of the instantiation of the singleton COM interface if there is
a difference between integrity levels of the server and client
applications.
The single instance is accomplished by having the
singleton interfaces declared with DECLARE_CLASSFACTORY_SINGLETON ATL
macro. Additionally, there is a code in the application that ensures
only one instance of application is running by utilizing a named mutex.
The application checks if the mutex exists, exits if it does and stays
running otherwise.
The scenario of the problem I observe is the following: The DCOM server application is launched from the Windows Explorer and runs as a standard user.
A DCOM-client application is launched with administrative privileges
under the same user account as the server. When the client application
tries obtaining the COM pointer to the singleton exposed by the server,
it fails with an error "Failed to Start-up the Server". Using
Windows Task Manager and Process Explorer I managed to find out that
when client tries instantiating the singleton interface, the system
tries launching the second instance of the DCOM server, with the
integrity level equal to the client application integrity level. Obviously
the second instance of the server instance terminates quickly - it is
expected to not run since it detects the first instance running. So the
following is the list of processes I observe during the erroneous
interaction:
Process | Integrity level | Launch method -------------------------------------------------------------- Server (1-st instance) | Medium | Launched through Explorer,standard privileges Client | High | Launched through Explorer,admin privileges Server (2-nd instance) | High | Launched by the system, terminates quickly
What puzzles me, is why does the system launch the 2-nd instance of the DCOM server if the first one is already running If
both the DCOM client and server are running under the same user
account, isnt the system supposed to force client use the existing
server instance
I would understand if the Server was running
with High integrity level and Client was running with Medium - the
Windows would not allow such communication go through because of
inadequate request of a low-privileged app to gain access to the
resources of a higher-privileged one. But my assumption was that vice
versa should have worked.
I verified that on the
second(elevated) launch the COM server reaches point of testing the
existance of other instance and terminates itself. I made sure that the
second server positively identifies the presence of the first one and
terminates.
Further I have made runs with other combinations of the server/client elevation. here is the result Server integrity | Client integrity | Result -------------------------------------------- Medium | Medium | Everything is fine, works as expected High | High | Everything is fine, works as expected
Medium | High | Failure, client COM call causes
2-nd server to start with integrity level at High, which
self-terminates immediately (as described in the issue itself above)
High | Medium | Failure, client COM call causes
2-nd server to start with integrity level at Medium, which
self-terminates immediately
I also tried running both
applications with XP SP2 compatibility enabled. The results are
identical to the table above: client and server at different integrity
levels do not talk to each other, second server launch attempt is made.
Neither server application, nor client utilize any of the WinAPI's listed as potentialy problematic in the UIPI documentation in the Application Compatibility Cookbook.
This is a critical
issue for our application and I can't find any documentation or any
answers to the problem in any Vista enhancements or changes resources. Looks
like the DCOM server launched in the process with a certain integrity
level is accessible only by processes under the same user account with
the same integrity level.
Is this a correct Windows behavior Shouldn't
all processes running under the same account be able to access the DCOM
server launched within the same account with no security, regardless of
the integrity level
I would appreciate a lot if anyone could help me out here.
PS. The COM security on the server side is set to none and client doesn't use any security parameters either: CoInitializeSecurity( NULL, 0, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IDENTIFY, NULL, 0, NULL );
|
- 3
- General Windows Vista Development Issues How do you use ResolveIpNetEntry2?
Hi,
On Vista, I want get the MAC address of an IPv6 gateway. I noticed that there's new IPHelper APIs to do so.
First I use GetAdpatersAddresses() to obtain the list of network adapters. I then go through each FirstGatewayAddress attribute to find the IP of the gateway. Now I have the IP and I want to use the ResolveIpNetEntry2() function to obtain the MAC for the gateway. However, according to the MSDN entry http://msdn2.microsoft.com/en-us/library/aa814455.aspx I need its InterfaceLuid or InterfaceIndex.
So this begs the question, how do I get either of those values that belong to the gateway
Thanks.
EDIT: It would also help if someone can tell me the API for neighbor solicitation request to obtain the MAC address that way. Thanks.
- 4
- General Windows Vista Development Issues My Application has a problem finding the RAPI.dll on Vista x64
I have an application that uses the RAPI.dll to send commands to a device. The application works find on Vista, but when I try and run it on Vista x64 then it gives an error indicating it can't find the RAPI.dll.
I checked and the RAPI.dll is in c:\windows\system32, which is also in my path.
I can browse the device fine through the file explorer, so it looks like the built-in "ActiveSync" works.
I ran the application in the dependecy walker and it showed c:\windows\system32 in the search path. It showed the following error for RAPI.dll "Error opening file. The system cannot find the file specified.".
For kicks, I copied the RAPI.dll into the directory with my application. This fixed the RAPI.dll not found error, but introduced 2 new errors. 1) it said the dll was x64 based 2) it said it could not load another DLL that RAPI.dll depeded on.
Is this a known issue Or is there a known workaround Do I need to do anything special to access RAPI on Vista x64. (As a side note, the application works perfectly fine on XP 64 with ActiveSync installed).
Any help on this issue would be appreciated.
Thanks,
Douglas
- 5
- Windows Workflow Foundation Question about branching on a parameter of an eventI am trying to modify the ordering state machine sdk example. I add a
new event to IOrderService event EventHandler<OrderEventArgs> OrderStatusChange; And then to the OrderEventArgs I added another property public string OrderNextStep Then, in a state machine I added a new evenDrivenActivity that contains handleOrderStatusChange with an external event handler. This binds e the OrderEventArgs parameter to a member variable in the parent activity, which is a new OrderStateActivity, which is a custom activity that inherits from StateMachineActivity with only an additional property for storing the event argument. After catching the event I have an ifElseActivity that does branching do different states based on the string value of OrderNextStep which is supposed to be binded to the OrderStateActivities property. Unfortunately, in my declarative condition in the ifElseActivity I can't seem to access the property on the OrderStateActivity. I am hoping someone can see what I am doing wrong from my description. Basically, what I am trying to do is to catch an event with a handleExternalEvent activity and then feed the event to an ifelsebranch which will setstate based on a string property in the event.
- 6
- Windows CardSpace ("InfoCard") Reset cardspace store and delete everything
Is there a way to reset the store and delete everything about Cardspace from the local pc
Cause the control panel applet is crashing or simply making crashing the infocard service (that doesnt crash if you load it directly, so sure is the icardagt.exe that is making it to crash).
So i would like to reset the store on the pc like it was just installed.
I just tried to uninstall and install it again... it keeps giving the same error like it has been never uninstalled.
- 7
- Application Compatibility for Windows Vista Logo test 30, Restart Manager, and RMTool.exeI'm a developer on an IFS filter driver with a user-mode app. UI. I have two questions about Logo test #30:
First, it does not seem possible to have restart manager interact with the driver portion of my product, but I have not been able to find instructions regarding application for a waiver to this test. Is it possible to have the user-mode UI be restart manager aware/compliant, but have the driver get a wavier If so, can you point me at the wavier application The driver doesn't even have a PID for RMTool to try to close.
Second, when I run RMTool on the PID for my app. UI, the tool is crashing every time. In an earlier version of Vista (at least a few months ago) the app was being shutdown correctly. The same is true of another app. developed at my company with no common code, and it is also true when I try the RMTool on the Vista "sidebar" process. I have not made any changes that seem like they could be relavent, so I believe that the tool may not have been updated to work correctly with the newer Vista versions.
I am using version 6.0.5825.16387 of RMTool.exe and I've tried the test on two fairly highend machines with both Vista32_6000 and Vista32_5744. Is there a newer version of the RMTool Is there any known issue with RMTool and the new Vista I'm happy to do whatever work is needed to make my product compliant, but I don't understand why we would fail now, but didn't before unless the tool or OS has changed something, and if that's the case, I'm not sure what I can do.
Thank you for your help,
~CuriousG
- 8
- 9
- Windows SDK using components and library inside a driver
Hi guys,
just another question:
I read it is not possible to create a driver in C# (for example) because it is necessary to work with unmanaged code. Fair enough. But is it possible to recall a DLL or a library developed with C# inside a driver I mean, driver in C and it invokes some functions which are in a DLL/library written in C#...
hope to hear from you soon,
Gianluca.
- 10
- Windows Workflow Foundation how to restart workflow runtime after IIS restart
My question is for workflow exposed as web service through webserviceinputactivty/webserviceoutputactivity.
My impression is that workflow runtime is only started after the first web service call. My test workflow has 3 activities: webserviceinput, webserviceoutput, delay. SqlPersistence service is enabled. The workflow is activitied through a web call. When executing the delay activity, it's persisted to the database. Then I shut down the web server (ASP .NET development server). When the web server restarted, the timer already expired but the workflow was not resumed. Only after I made another call to the web service, the timer fired.
I did an experiment in a winform application. When the application starts next time, the timer fires. Of course, the application needs to call workflowruntime.startruntime() when it starts.
I'm wondering how to start the runtime automatically under web service. I think it's important for failure recovery. The timer should start immediately when the web server restarts. Other services may also start running too, i.e., checking email.
- 11
- Windows SDK Creating a RAMDISK with KMDF (sample project)
Hi everybody,
I am approaching for the first time to driver development in Windows.
I downloaded the DDK and the KMDF, which contains a sample project named "Ramdisk".
I compiled that: no errors.
I ran it and here the strange behaviour: if I open a MSDos Prompt and I look for the drive "R:", that is there.. and u can create file inside, u can read/write, make traditional operations. But if I try to look for that drive in My Computer, it's not there.
As I told you I am not an expert in this area, so is there anything else to put in the code in order to make a drive unit appear also in my Computer
Cheers,
Gianluca.
- 12
- General Windows Vista Development Issues Vista + IE7 -- OWA problem composing and replying to messages
I have 2 Vista Ultiamte RTM machines with Office 2007 installed. When i open up IE7 on both machines and browse to OWA (Exchange Server 2003 SP2) and either compose a new message or reply to an existing message, all i get in the body of the message is a red cross in the top left and nothing else.
It makes no difference if i add OWA to trusted sites and/or turn protected mode on or off.
I cannot be the only one experiencing this problem and surely with a plain vanilla installation surely MS would have covered this in their pre-release testing
Nick
- 13
- Windows SDK What happened to Speech support?I thought I had read somewhere that .NET 3.0 was going to have speech support. I can't find it though (it's quite possible I just missed it). Do you have to be using Vista to get that speech support
Thanks a bunch!
- 14
- Windows Workflow Foundation Best practices for integrating WF & WCF?Hi,
I was thinking about designing a SOA platform on top of WCF, where WF gets the task to orchestrate the services. So I was searching for ways WF could interoperate with WCF. Currently I see only two approaches to do so: a) workflow communicates with the outside world via usual local services, which might be backed by WCF Services. This approach is shown in the expense reporting sample. b) workflow communicates via direct calls to WCF Services. This approach is shown by Roman Kiss in http://www.codeproject.com/useritems/CustomRemotingForWorkflow.asp
Comparing this two approaches I would say following (though I'm pretty new to this topic and might be wrong): I like in a) that it's transparent whether one is using a light weight local service or a remote WCF one. The workflow communicates with services in a usual methods-events-delegates fashion (much easier than WCF's communication model mimicking events with duplex calls or other publish/subscribe mechanisms). But on the other side tedious work has to be done since a custom local service has to be written for every WCF service one wants to call to. And that's not necessary in b). I'm sure there a more pro and cons which I don't see now, and maybe even some more approaches exists. So I wanted to ask some more experienced guys for their opinion and knowledge on this topic.
I appreciate every hint and advice. Thanks, Philipp
- 15
- Application Compatibility for Windows Vista Vista Install Issue with IIS
Hello
I installed the Vista release on a machine that was using the Media Center operating system. This machine was not used for development and did not have IIS on it. It did have IE 7 installed.
When I went to the Turn On / Off dialog for Vista, the development for ASPNET was unchecked. I tried to turn it on but it failed without providing any information in either the message text or the Windows Event log. In the Administrative Tools dialog, there are 2 applications shortcuts for IIS. One deals with just FTP while the other handles IIS. When I looked in the folder for the one handling IIS, there was no WWWROOT folder.
This machine is to be used for development which means I'll eventually be installing SQL Server 2005 and VS 2005 on it. What do I have to do to correct the issue of not being able to turn on the ASPNET development setting
Thanks
|
|
|