After several hours of searching it appears that there is no way to query a local LDAP directory (Microsoft Active Directory or otherwise) from a UWP app.
This seems like a rather bizarre hole in the UWP offering, and so I'm hopeful that I'm just missing the obvious.
What (if anything) is the functional equivalent of System.DirectoryServices in the Universal Windows Platform world?
This thread is a little older, but you have 3 options today:
Use the Windows Compatibility Pack for .NetCore.
Use the Desktop Bridge to create a .Net component that does your LDAP queries. See this for more information.
If you can, move to the Microsoft Graph - link to samples.
Hope this helps.
System.DirectoryServices is not available in the UWP, but if you are using sideloading for your app then you can use Brokered windows component to get or create the details required through a endpoint in it.
You can get it here.
Related
I am a novice so please help me a bit.
I am using Flex Builder 4.6 to make a desktop app, I want to make people login before they can access the app, I want them to login with the same user info they use on my wordpress site, The database is hosted via godaddy and i have all the phpmyadmin information. I have googled and googled but I am either not doing the right set of words or this isn't possible because I cant find any examples on how to do this.
right now its a blank app with a username and password text input along with a button to login.
I'm afraid that you can't do this directly and would need to leverage Java (or similar) such as using a server application.
I've never seen or heard of anyone doing this directly via AIR. I suppose it's theoretically possible, albeit not trivial.
Edit:
Thinking about it...this would probably be a kludgy/hacky solution, you could try leveraging Java directly from the users PC by packaging a Java "service utility" with your overall install process, which would interface with your AIR Flex app. They'd need to have Java installed, and additional firewall permissions could be a pain.
You'd need to use NativeProcess.
I have a few questions on Windows CE.
1.Does Windows CE supports use of ActiveX objects in HTML page?
2.Can ActiveX controls be developed/written in .Net C# with Visual Studio 2008 for use on Windows CE 5.0 IE Browser?
3.Is it necessary to install .NET CF in handheld device?
The requirement is to get local information about the device(IP, hostname, etc.) from the html page. I am currently doing R&D to find out how to achieve this. What we thought of doing is to call a custom ActiveX dll from html file which will run locally on the hand held device to get the required information and pass it to the html page.
If anyone knows of other ways to achieve this then please share.
Thanks
Yes, the CE browser supports COM objects that implement IObjectSafety.
No. The controls must be written in C++. To make it even more fun, they must be compiled for the device OS and processor architecture. The reason you can't create them in .NET is because the Compact Framework doesn't support EE hosting, so native code cannot call managed code on a device (inside our outside a browser).
This is orthogonal since the answer to #2 is no.
There may be another way to achieve your goal, but it's not clear what the actual problem is to me. You have a page served up from the device that needs to show the IP address to a browser on the same device? How does that user get to that page? If it's from an app, you could have the app either report it directly or have the app get the IP and save it into an HTML page which you then browse to.
EDIT
Based on your comments, if your customer won't allow the install of the CF, then they likely aren't going to want you to install an ActiveX component either (and if you could do .NET components, it would have required the CF be installed, so your requirements would have precluded doing so even if it were supported).
Why not write a simple C program that does what your CF program does (i.e. saving device info to an HTML file) and that requires no additional framework installs?
If your HTML is being served from a webserver, then it already knows the IP address that it is talking to (i.e. there might be some proxies in the way, but if they're behaving, they can tell you who the remote client really is), so you might not need to install anything.
As for the version of Internet Explorer installed on CE 5, I don't believe it supports ActiveX at all, but you could install a .Net application instead of using a webpage to solicit information?
Is it possible to use private APIs in Windows Phone 8 development similar to iOS development?
Of course, this is NOT about apps going to get published (AppStore/Marketplace). But there are a lot of use cases for non-public projects where a developer wants to call internal system functions.
With the Windows Phone 8 SDK installed, one can mount the Windows Phone 8 Emulator image located in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images. In the main partition of the Windows Phone OS, one can navigate to Windows\System32 and inspect the system DLL files with a tool like Dependency Walker or IDA Pro.
There are a lot of functions that sound very interesting but which are not publicly available and thus not documented. The question is: is it possible to call them somehow from an app or by other means?
Just a few examples of interesting functions (there are much more):
ShellChrome.dll: InvokeStartMenu, InvokeScreenCapture, InvokeVolumeUp, LockDevice, ...
InputInjection.dll: ApiInjectInitialize, ApiInjectTouchEvent, ...
...
I tried to get LoadLibrary (specifically, LoadLibraryExA) working somehow in a native Windows Phone App project, and to load and call these functions (the loading of the library worked). Long story short, I ended up with access violation errors or similar when trying to call the functions (maybe because of the sandboxed execution environment). Another problem is, that I can only guess the signatures (arguments) of the functions. I can't find them out with the tools I use.
Private api? We can use dll files in the windows phone. I have used private sdk's in the windows phone. I don't think windows is going to permit us to customize the OS just like Android do, So Invoke volume up..etc stuff is not going to work through private api.
I think they only provide some private apis to only partners with an NDA.
http://social.msdn.microsoft.com/forums/wpapps/en-US/4af0e87a-ab4b-4652-891a-f198a32758cf/windows-phone-8-access-to-private-apis
You can't, the application sandbox will enforce API usage. That means you will get an UnauthorizedAccessException every time you try to do a call to an api requiring rights you don't have.
This is intimately tied with the developer account you use to unlock your phone for development purposes.
EDIT : That's also true on the c++ native side.
We're looking to read some QR codes in a Windows 8 Metro app. .NET libraries we've used in the past can't be referenced in WinRT/Metro and porting them won't be easy because they depend on System.Drawing which isn't in the .NET for Metro style apps. We looked at this by Benjamin Soulier but it didn't seem to work. Any other suggestions or something easy we're missing?
Thanks
You can use ZXing.Net:
http://zxingnet.codeplex.com/
For Metro apps based upon HTML5/Javascript I'm currently working on a port of zxing.net for Windows Runtime Components WinMD. You can get the source from here
https://zxingnet.svn.codeplex.com/svn/branches/WINMD
(btw. I'm the creator of ZXing.Net (a port of the java based ZXing))
Based on feedback from MS resources, there is nothing built in and no frameworks they were aware of yet.
Quick way to try is by using Esponce web service. Make a simple HTTP POST request to http://www.esponce.com/api/v3/decode?format=png and send image data in body. Response should contain something like that:
{"content":"here goes content decoded from QR Code"}
Web services are platform-independent (easy to port) and lightweight on client side.
More details in Esponce API documentation
Is there a way I can add support for syncing my program's settings with Windows Live Mesh, so that it would appear in the list below?
That's where I would like to see my program offering to "Turn on syncing for your settings". Is there some sort of a plugin API for this?
Unfortunately not. Microsoft struggled with opening this thing up to developers, and I believe something similar actually was available for some time during the old Mesh beta days (before they renamed Sync to Mesh). I doubt they will ever allow it since Mesh is being replaced with SkyDrive (I'm pretty sure they actually announced it, but I can't find where, but this basically says the same: http://www.zdnet.com/blog/microsoft/is-microsofts-live-mesh-on-its-way-to-the-graveyard/12540). Setting syncing like you want is available to Windows 8 Metro apps through Skydrive and Microsoft Account/Live ID roaming (http://blogs.msdn.com/b/b8/archive/2011/09/26/signing-in-to-windows-8-with-a-windows-live-id.aspx and API: http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.roamingfolder.aspx)
But of course, in exchange for that you restrict your audience to Windows 8 users.