I tried WS_EX_TOOLWINDOW but it hides the window from ALT+TAB.
Can some one please provide help?
Sameer Thigale
I tried WS_EX_TOOLWINDOW but it hides the window from ALT+TAB.
Can some one please provide help?
Sameer Thigale
I am trying to get the lat & lon using the LocationApi 1.0 Type Library. Works fine on Win 7 & 8.1. No longer works on Windows 10. I can't seem to find anything new on using this under Windows 10, all I see is Windows 8.1 & 7 info.
My function does this:
Dim Display As LatLongReportFactory
Dim ddLat As Double
Dim ddLng As Double
Dim dmLat As Double
Dim dmLng As Double
' Create connection to MS Location Services
Set Display = New LatLongReportFactory
' Wait 1 sec to initialize
Sleep (1000)
' Get the Lat and Lon in decimal degrees
ddLat = Display.LatLongReport.Latitude
ddLng = Abs(Display.LatLongReport.Longitude)
' Convert the Lat and Lon to Decimal Minutes
dmLat = Format((ddLat - Fix(ddLat)) * 60, "00.000")
dmLng = Format((ddLng - Fix(ddLng)) * 60, "00.000")
'Create the Lat and Lon string
getGPS = Fix(ddLat) & Chr(176) & dmLat & "N," & Fix(ddLng) & Chr(176) & dmLng & "W,0,0"
' Close connection to Location Services
Set Display = Nothing
There is a cosy feature I used to on earlier versions of windows (starting from XP onwards) - hot keys you can assign to switch directly to the keyboard layout you need right now, instead of having to press Ctrl+Shift (or Alt+Shift, whatever you set as language keyboard switcher) iteratively until you get to the required layout.
I am a polyglot, plus I live in a bilingual country, plus I used English extensively (as a foreign language) - even for these three languages I quite naturally need hot key switcher. And I assigned them (e.g. Ctrl+Shift+0 for for my native language, Ctrl+Shift+9 for English, etc.) and even created some convention of my own, accustomed to it.
It's less than a week that I use Windows 10, and I have an unpleasant (if not frustrating) experience - I set my habitual hot keys, Windows obeys to them for a while, and then (sometimes in less than half-an-hour) it completely 'forgets' them, so I have either to re-assign them or roam iteratively through my multiple keyboard layouts to get to the one needed right now. This is annoying and it gets me nervous too often.
I was trying to find a reference, experimented with unattended install configuration file (the one using gs:GlobalizationServices, gs:InputLanguageID elements, etc.) but it doesn't seem to provide an opportunity to set hot keys, or such a feature is undocumented.
Is there a KB (fix) or a reference to an API which would allow me to programmatically restore the 'forgotten' by Windows 10 language bar hot keys?
Thanks a lot in advance.
Hello,
I used the WiFi direct API to enable WiFi direct on my Windows 10 PC. But along with enabling WiFi Direct it enables an AP which i can see through the Wireless setting page of my Wifi Direct supported Android phone. Can I set up Password login for that SSID? i want to be able to connect to the phone over WiFi.
I can connect over WiFi direct but the app is not talking to the Win 10 device. I want to check if i can connect over that 2nd AP.
I would like to add this questions as reference: http://answers.microsoft.com/en-us/windows/forum/windows8_1-hardware/wifi-direct-password-to-connect-phone-to-pc/ef23c07a-1418-47db-b2f0-ccee892f3b50?auth=1
The secondary AP that is created, how do I set password for that?
Thanks,
Gauri
Hi All,
We are using SWT (java based) in our application to contribute to Windows notification area.
By moving to Windows 10 we see the display of icons are increasing as time passes eventually filling up the whole the notification area.
I checked internal SWT code and below is the code how SWT calls Shell_NotifyIconW to contribute icons.
NOTIFYICONDATA iconData = OS.IsUnicode ? (NOTIFYICONDATA) new NOTIFYICONDATAW () : new NOTIFYICONDATAA (); iconData.cbSize = NOTIFYICONDATA.sizeof; iconData.uID = id; iconData.hWnd = display.hwndMessage; iconData.hIcon = hIcon; iconData.uFlags = OS.NIF_ICON; OS.Shell_NotifyIcon (OS.NIM_MODIFY, iconData);
Code in the OS.Shell_NotifyIcon method
public static final boolean Shell_NotifyIcon (int dwMessage, NOTIFYICONDATA lpData) { if (IsUnicode) return Shell_NotifyIconW (dwMessage, (NOTIFYICONDATAW)lpData); return Shell_NotifyIconA (dwMessage, (NOTIFYICONDATAA)lpData); }
So whenever we call SWT method for setting image/icon in the notification area. Multiple tray icons are created.
Does anyone have any hints on this issue ?
How can i see internal Windows shell SDK logs/traces ? How can i see who is creating the icons ?
Best Regards,
Saurav
I have made a snap-in under MMC to change any configuration related to one of a service that I had developed.
This snap-in code was originally written on MMC 2.0 and recently in machines with MMC 3.0 installed, I am getting this error that says "MMC has detected an error in snap-in. It is recommended that you shut down and restart MMC" with three options, whether to ignore this error or not.
On an article on Microsoft's Support page, https://support.microsoft.com/en-us/kb/915797 , it is mentioned that it is due to a new functionality added to MMC 3.0 which tracks for any memory related errors in the snap-in.
Is there any way, other than code walk through (very old and vast code, time consuming), to find out the error causing code by use of any logs? and, is there any way to suppress this errors from the code?
Thanks in advance
I developed a desktop application using Winforms. When I installed the application on a Windows 8.1 Tablet the application works just fine but the only issue that I'm facing is that the keyboard doesn't automatically appear when I tap on a text fields. Instead, I have to tap or click the Touch keyboard icon on the right side of the taskbar to make it happen.
Is there some way to make it work? Because it's not good for user experience.
Hi,
I want to link print jobs, and so I use the SetJob() API with JOB_INFO_3.
Principle (using the same printer)
First Job:
StartDoc() -> ID <job#1>
Second job:
StartDoc() -> ID <job#2>
and then using:
JOB_INFO_3
JI3;
JI3.JobId = <job#1>;
JI3.NextJobId = <job#2>;
JI3.Reserved = 0;
if (!::SetJob(Printer.Handle(),nSpoolerJob,3,(BYTE*)&JI3,0))
{
_chk_utildebug(TEXT("SetJob() failed: %s"),(LPCTSTR)String::GetLastError());
}
I get ERROR_INVALID_PARAMETER. Is it a question of the rights (DOC say I need JOB_ACCESS_ADMINISTER for the jobs, but how do I get it? The printer handle is requested usind PRINTER_ACCESS_RIGHTS).
Any help very much appreciated,
Christian
Looks like GetDlgItemText, WM_GETTEXT, and GetWindowText have an issue if the address of the buffer the text is to be written to is an odd address. I’ve tried numerus machines with Windows 7 & 10, with mixed results. On some Windows 7 systems the text is retrieved ok, but on others it isn’t. This is also true for the Windows 10 systems. It would appear to be CPU / memory architecture specific. Has anyone else see this behaviour? The text is always successfully retrieved if the buffer is an even address.
When I choose "OpenWith" and browse to my program Windows kicks off an instance of my program. But if an instance is already running, I want to use that instance. I don't see any callbacks to my registered DDE callback routine. My callback gets invoked when I open one of my application's registered file extensions. Since I also support other files via our file open dialog I would like to be able to get the Windows Explorer "OpenWith" capability to do the same thing.
R.D. Holland
I'm building a .NET app for Win2k12/Win8+. The user story I'm having a problem with is sending folder x to this app via send-to right click. The concept is to move or copy folder x into an archive that is bitlockered.
The problem is I'm not calculating the vhdx size correctly for smaller folders (60MB), but larger folders (GB's) are fine. A program requirement is to have +5% extra space of the vhdx volume (dynamic exp.).
The exact case I'm having trouble with is a folder that is of size on disk reported by right click explorer on folder: 57.2 MB (60,059,648 bytes), 3 Files, 1 Folders.
In this case, the program creates a vhdx using diskpart with a minimum size of 61mb. It has a capacity of 59.9MB as reported by Explorer right click on drive->Properties. The program then uses Windows explorer (FileSystem.MoveDirectory(from, to, UIOption.AllDialogs, UICancelOption.ThrowException);) to copy folder x to the vhdx volume.
Well, it fails with a dialog that reads:
public DiskManagerReturn GetRequiredVhdVolumeSize(string folderPath, string vhdxPath) { DiskManagerReturn dmRetVal = new DiskManagerReturn(); dmRetVal.Problem = Resource.ErrProblemCantCreateArchive; try { long dirCount = 0; string drvLtrNoSlash = string.Empty; vhdxPath = Path.GetPathRoot(vhdxPath).Replace(Path.DirectorySeparatorChar.ToString(), string.Empty); long teraByte = 1099511627776; long size64TB = 0; long size32TB = 0; long size16TB = 0; // when volume size is up to 16 TB, use default cluster size long clusterSize16TB = 4096; // up to 32 TB, use 8K cluster size long clusterSize32TB = 8194; // up to 64TB, use 16K cluster size (VHDX format maxes out at 64 TB) long clusterSize64TB = 16384; DirectoryInfo di = new DirectoryInfo(folderPath); try { foreach (FileInfo fi in di.EnumerateFiles("*", System.IO.SearchOption.AllDirectories)) { if (fi.Length >= clusterSize16TB) size16TB += (long)Math.Ceiling((double)fi.Length / clusterSize16TB) * clusterSize16TB; else if (fi.Length > 0) size16TB += clusterSize16TB; if (fi.Length >= clusterSize32TB) size32TB += (long)Math.Ceiling((double)fi.Length / clusterSize32TB) * clusterSize32TB; else if (fi.Length > 0) size32TB += clusterSize32TB; if (fi.Length >= clusterSize64TB) size64TB += (long)Math.Ceiling((double)fi.Length / clusterSize64TB) * clusterSize64TB; else if (fi.Length > 0) size64TB += clusterSize64TB; } } catch (Exception ex) { dmRetVal.Cause = ex.Message; return dmRetVal; } try { // don't add size for directories dirCount = di.EnumerateDirectories("*", System.IO.SearchOption.AllDirectories).Count(); } catch (Exception x) { dmRetVal.Cause = x.Message; return dmRetVal; } size16TB -= dirCount * clusterSize16TB; size32TB -= dirCount * clusterSize32TB; size64TB -= dirCount * clusterSize64TB; if(size16TB <= 16 * teraByte) dmRetVal.RequiredVolumeSize = size16TB; else if(size32TB <= 32 * teraByte) dmRetVal.RequiredVolumeSize = size32TB; else dmRetVal.RequiredVolumeSize = size64TB; if(string.IsNullOrEmpty(dmRetVal.Cause)) dmRetVal.Success = true; } catch (Exception ex) { dmRetVal.Cause = ex.Message; } return dmRetVal; }
create vdisk file="c:\users\joel\asus_p9x79_Intel_SATA_MEI_Win7-8-8-1_VER95151730-X79-2.vhdx" maximum=61 type=expandable sel vdisk file="c:\users\joel\asus_p9x79_Intel_SATA_MEI_Win7-8-8-1_VER95151730-X79-2.vhdx" attach vdisk create partition primary format fs=ntfs quick label="asus_p9x79_Intel_SATA_MEI_Win7-" assign letter=F exit
I would highly appreciate any tips/pointers/suggestions/solutions.
I'm trying to create a service for my company. This service should poll every 30 seconds and move files from a folder on the machine to a network folder. I'm getting an error through the application's logs, though, that access to the network folder is denied. I'm fairly ignorant on permissions, security, and accounts, so I'm not sure why the service won't work. I know that I can access the folder, I've navigated there many times. I've tried changing the installer's account on the Windows service to local system, network service, blah, blah, blah, but none of it works. With the exception of User, I try to change to that and I'm asked for credentials in the installation part. I put my credentials in, but it doesn't work. Any help?
Here's a report from the event log where I caught the exception message:
I am developing a desktop application using WPF. My problem is that the app is extremely slow to start. This has nothing to do with the application is self.
Symptoms:
Specs:
Any ideas?
Hi,
I need to sync files from desktop to android device using FTP Service. Though not familiar with robocopy I used this tool earlier to sync files from folder to folder.
robocopy C:\Sourcefolder E:\DFolder /MIR /SEC /SECFIX
However, it gives me a error whilst doing with FTP Service with below command.
robocopy C:\OneProject ftp://10.10.10.15:2121/Phone Storage/OneProject /MIR /SEC /SECFIX
robocopy C:\OneProject "ftp://10.10.10.15:2121/Phone Storage/OneProject" /MIR /SEC /SECFIX
It says that the destination does not exists, but I could access the above from explorer and copy files manually.
Can someone help me what is missing or is that we cannot sync files to ftp location?
I want to set the serial port with C# to the equivalent of DCB.fOutX = true.
System.IO.Ports.Handshake.XOnXOff; ----> Does not seem to do this correctly.
Looking at the documentation for Ports.Handshake, the XOnXOff is described from the perspective of the PC (Windows device) receiving data and using XOnXOff for flow control of data INTO the PC.
https://msdn.microsoft.com/en-us/library/system.io.ports.handshake%28v=vs.110%29.aspx
Looking at the documentation for DCB, the fOutX is described from the perspective of the PC sending data and the connected serial device is sending XOnXOff. The PC is receiving this and using to throttle transmission of data FROM the PC TO the serial device.
--------------------------------------------
EDIT: Link to DCB info
https://msdn.microsoft.com/en-us/library/ff802693.aspx#serial_topic6
--------------------------------------------
If I have misinterpreted this information, please let me know. If not, can someone explain how to do this?
Regards, JC
1. When ever i connected the device through USB that i want no status whether device is connected or not.
2.After Establishing the connection, How to get the default data from the device?
3.How to get the response from device after sending request through command.
I am looking the sample which should work with all windows Operating System.
MohanV
MohanV
Steps:
I. When ever i connected the device through USB that i want no status whether device is connected or not.
2.After Establishing the connection, How to get the default data from the device?
3.How to get the response from device after sending request through command.
I am looking the sample which should work with all windows Operating System.
MohanV
I frequently use VS remote debugging and I 'm struck by three problems:
Therefore I 've created a small tool and I give it for free to all of you.
Features:
Free for all developers:
Michael