Quantcast
Channel: General Windows Desktop Development Issues forum
Viewing all 6180 articles
Browse latest View live

TPM 2.0 - Windows 7 SP1 x64 - Hotfix KB2920188

$
0
0

Can anyone confirm before I broach the Domain Admins about extending AD Schema..

Currently I have a laptop with TPM 2.0 that is required to run Windows 7 x64. In order for 7 to identify TPM 2.0 in device manager I have had to install KB2920188. With the hotfix employed I cannot initialize the TPM chip as it errors with "There is no such object on the server" and accompanied by "Failed to backup TPM Owner Authorization information to ADDS Error: 0x80072030" in evntvwr. (We employ the GPO to store all bitlocker information against the object in ADDS.)

Researching this further I have come across this page https://technet.microsoft.com/en-us/library/mt431885(v=vs.85).aspx where it explains about extending AD Schema to support TPM 2.0 however it says it only applies to Windows 10.

Our Domain Admin is somewhat protective of there AD and defend there territory fiercely! Can anyone confirm if the above schema extension is also required for Windows 7 if you apply the above hotfix 

Regards

Adam


Is MSI deprecated on Windows 10?

$
0
0

I've asked this question at http://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/is-msi-deprecated-on-windows-10/2a165bd8-c0dc-48dd-a4c7-f9826b9b8a1d?tm=1455552743540

but realized I probably should have asked here instead.

We are deploying client side components on Windows 10/8.1/7 and have come across a strange problem,

msiexec.exe on Windows 10 lists the supported OS in it's manifest as supporting Windows 8.1.  We've run tests and VersionNT returns a max value of 603 and when we attempt to retrieve DLL version info to work around it, they do not return the expected values.  Basically what I'm trying to figure out is whether or not an MSI based installer will be able to properly detect Windows 10.  At the moment, it does not seem like it is capable to di it.

Has MSI based installation been deprecated for Windows 10 (and I don't mean running on Windows 10 in the operating system context of 8.1)?  If not, is there any workaround.

Deleted Objects [Tombstones], Binding to directly, and/or Searching for in the Global Catalog

$
0
0

I'm trying to get confirmation of what the limits are regarding using LDAP via ADSI [IADS and/or IDirectorySearch] with deleted objects [e.g. tombstones] outside of the "normal" methodology that is documented for binding to the well-known deleted objects container and enumerating them.

There are a few specific issues I'm trying to resolve, as follows:

1)When an object is deleted, it doesn't have to be moved to the deleted objects container if the "systemFlags" attribute has the bit 0x02000000 set/enabled.  Searching only within the deleted objects container won't find tombstones that reside in their original container after being deleted and not moved, per this flag.  When trying to determine if a missing object is actually still a tombstone, or if it has been migrated to a different domain [possibly in a different forest], it's vitally important to confirm whether or not a tombstone remains for the object.

2)It's easy to find the FDN for a live object in AD via its GUID value simply by using the GC and binding directly to the object via its GUID value, using the binding string "GC://<GUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>" and then using IADs to get the object's FDN, after which a new binding can be made directly to the object using LDAP and its FDN to get authoritative attribute/property values from a DC in the object's domain.  However, when attempting to do the same thing for a deleted object using the IADs COM interface, I get an error that the object doesn't exist.  Likewise, using the "Fast Bind" flag with ADsOpenObject() still results in an object not found error when I actually try to get any attribute/property values.  Furthermore, even using the FDN of a deleted object when trying to bind to it via LDAP fails to find the object.

The question that I'd like to get a definitive answer for is as follows:

1)Can a deleted object be directly bound to with IADs, or any other COM interface, in either the GC or a domain partition via LDAP, by way of either it's GUID or FDN, or is IDirectorySearch with the "find deleted objects" flag and an appropriate filter similar to "(&(isDeleted=*)(objectGUID=xxxx))" the only way to determine the existence of a tombstone and to read selected attribute values from it?

SECURITY_SET_PASSWORD using DeviceIoControl failed

$
0
0
I've tried ATA_PASS_THROUGH_EX or ATA_PASS_THROUGH_DIRECT in DeviceIoControl() function with ATA command SECURITY_SET_PASSWORD but it always failed with GetLastError()=87 (invalid parameter). But ATA command IDENTIFY always succeed. 

OS Environment: Windows 8.1 64bit, Visual Studio 2010, my application has Administrator privillage.

My goal is issue SECURITY ERASE UNIt like this page in the 64bit Windows 8.1: https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase

Like above web page, when I tried using 'hdparm' in the ubuntu live CD to issue secure erase has been no problem with same hardware, and same SSD.

Would you please guide me what's wrong with my code?

m_h = CreateFile("\\\\.\\PhysicalDrive1", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
if ( m_h == INVALID_HANDLE_VALUE ) 
return 0;

#if 1
char buffer[512 + sizeof(ATA_PASS_THROUGH_EX)] = { 0 };

ATA_PASS_THROUGH_EX& PTE = *(ATA_PASS_THROUGH_EX *)buffer;

PTE.Length = sizeof(PTE);
PTE.DataTransferLength = 512;
PTE.DataBufferOffset = sizeof(ATA_PASS_THROUGH_EX);
PTE.TimeOutValue = 10;
PTE.AtaFlags = ATA_FLAGS_DATA_OUT | ATA_FLAGS_DRDY_REQUIRED;

IDEREGS* ir = (IDEREGS*)PTE.CurrentTaskFile;
ir->bCommandReg = 0xF1;

strcpy(buffer + sizeof(ATA_PASS_THROUGH_EX) + 2, "test");

DWORD bytes = 0;
if (DeviceIoControl(m_h, IOCTL_ATA_PASS_THROUGH, &buffer, sizeof(buffer), &buffer, sizeof(buffer), &bytes, 0) == 0 ) {
DWORD er = GetLastError();
printf("error: %d\n", GetLastError());
return false;
}
#else
DWORD dataSize = sizeof(ATA_PASS_THROUGH_DIRECT) + 512;
ATA_PASS_THROUGH_DIRECT* pPTD = (ATA_PASS_THROUGH_DIRECT*) VirtualAlloc(NULL, dataSize, MEM_COMMIT, PAGE_READWRITE);

pPTD->Length = sizeof(ATA_PASS_THROUGH_DIRECT); 
pPTD->DataTransferLength = 512; 
pPTD->DataBuffer = ((char*)pPTD) + sizeof(ATA_PASS_THROUGH_DIRECT); // sizeof(ATA_PASS_THROUGH_DIRECT);
pPTD->TimeOutValue =  10;
pPTD->AtaFlags = ATA_FLAGS_DATA_OUT | ATA_FLAGS_DRDY_REQUIRED;
pPTD->CurrentTaskFile[1] = 0x01;
pPTD->CurrentTaskFile[6] = 0xF1;

strcpy( ((char*)pPTD->DataBuffer) + 2, "test");

DWORD bytes = 0;
if (!DeviceIoControl(m_h, IOCTL_ATA_PASS_THROUGH_DIRECT,  pPTD,  dataSize, pPTD, dataSize, &bytes, NULL)) {
printf("error: %d\n", GetLastError());
return false;
}
#endif
return true;


Entries from Quick Access/Favorites bar missing in Windows 10

$
0
0

Hi All,

My application contributes to the favorites section of windows explorer till windows 8.1

When my user upgrades to Windows 10, he is not able to see my application's entries in the quick access bar.

But entries for my application is there in the links folder and user can pin it to proceed .

Would like to know on how during installation of my application entries can be added/pinned to the quick access bar in Windows 10 programatically.

cheers,

Saurav

Make Windows Common Dialogs “Per Monitor DPI-Aware”

$
0
0

I have a program which was created in VS2008 with MFC. Now I've modified it to make it "Per Monitor DPI-Aware", and it's almost done. I've modified the manifest and handled the WM_DPICHANGE message. But there's still one problem:

I used CFileDialog class to show Open/Save dialogs, and used SHBrowseForFolder function to show folder selection dialog. But all these dialogs areNOT"Per Monitor DPI-Aware", they won't adjust their UI when you move them between monitors with different DPI settings.

I use spy++ to monitor messages of these dialogs, I find they can receive WM_DPICHANGED message but they just don't handle it. And I've tested the open file dialog in notepad.exe on Windows 10, it worked perfectly.

Does anyone know how can I make these dialogs "Per Monitor DPI-Aware"?

Windows Not Genuwine HELP?

$
0
0
Diagnostic Report (1.9.0019.0):
-----------------------------------------
WGA Data-->
Validation Status: Invalid License
Validation Code: 50

Cached Validation Code: 0x0
Windows Product Key: *****-*****-GJY49-VJBQ7-HYRR2
Windows Product Key Hash: W5/6nm6F2UPXrCkY5xUhXb/+21g=
Windows Product ID: 00426-OEM-8992662-00006
Windows Product ID Type: 2
Windows License Type: OEM SLP
Windows OS version: 6.1.7601.2.00010100.1.0.001
ID: {0A68BB9E-9997-4660-83FB-63357CCD2120}(1)
Is Admin: Yes
TestCab: 0x0
WGA Version: N/A, hr = 0x80070002
Signed By: N/A, hr = 0x80070002
Product Name: Windows 7 Ultimate
Architecture: 0x00000009
Build lab: 7601.win7sp1_gdr.160121-1718
TTS Error: 
Validation Diagnostic: 
Resolution Status: N/A

WgaER Data-->
ThreatID(s): N/A, hr = 0x80070002
Version: N/A, hr = 0x80070002

WGA Notifications Data-->
Cached Result: N/A, hr = 0x80070002
File Exists: No
Version: N/A, hr = 0x80070002
WgaTray.exe Signed By: N/A, hr = 0x80070002
WgaLogon.dll Signed By: N/A, hr = 0x80070002

OGA Notifications Data-->
Cached Result: N/A, hr = 0x80070002
Version: N/A, hr = 0x80070002
OGAExec.exe Signed By: N/A, hr = 0x80070002
OGAAddin.dll Signed By: N/A, hr = 0x80070002

OGA Data-->
Office Status: 109 N/A
OGA Version: N/A, 0x80070002
Signed By: N/A, hr = 0x80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

Browser Data-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default Browser: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Download signed ActiveX controls: Prompt
Download unsigned ActiveX controls: Disabled
Run ActiveX controls and plug-ins: Allowed
Initialize and script ActiveX controls not marked as safe: Disabled
Allow scripting of Internet Explorer Webbrowser control: Disabled
Active scripting: Allowed
Script ActiveX controls marked as safe for scripting: Allowed

File Scan Data-->

Other data-->
Office Details: <GenuineResults><MachineData><UGUID>{0A68BB9E-9997-4660-83FB-63357CCD2120}</UGUID><Version>1.9.0019.0</Version><OS>6.1.7601.2.00010100.1.0.001</OS><Architecture>x64</Architecture><PKey>*****-*****-*****-*****-HYRR2</PKey><PID>00426-OEM-8992662-00006</PID><PIDType>2</PIDType><SID>S-1-5-21-1483233420-1442097908-1650190410</SID><SYSTEM><Manufacturer>Gigabyte Technology Co., Ltd.</Manufacturer><Model>GA-880GM-UD2H</Model></SYSTEM><BIOS><Manufacturer>Award Software International, Inc.</Manufacturer><Version>F8</Version><SMBIOSVersion major="2" minor="4"/><Date>20101011000000.000000+000</Date></BIOS><HWID>44600A00018400FA</HWID><UserLCID>0409</UserLCID><SystemLCID>0409</SystemLCID><TimeZone>Central Standard Time(GMT-06:00)</TimeZone><iJoin>0</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM/><GANotification/></MachineData><Software><Office><Result>109</Result><Products/><Applications/></Office></Software></GenuineResults> 

Spsys.log Content: 0x80070002

Licensing Data-->
Software licensing service version: 6.1.7601.17514

Name: Windows(R) 7, Ultimate edition
Description: Windows Operating System - Windows(R) 7, OEM_SLP channel
Activation ID: 7cfd4696-69a9-4af7-af36-ff3d12b6b6c8
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00426-00178-926-600006-02-1033-7601.0000-3482013
Installation ID: 017553926913320861158330455571833186951845416181681750
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial Product Key: HYRR2
License Status: Notification
Notification Reason: 0xC004F057.
Remaining Windows rearm count: 3
Trusted time: 2/17/2016 1:30:55 PM

Windows Activation Technologies-->
HrOffline: 0x00000000
HrOnline: 0xC004C533
HealthStatus: PASS
Event Time Stamp: 2:17:2016 13:30
WAT Activex: Registered
WAT Admin Service: Registered

HWID Data-->
HWID Hash Current: MAAAAAAAAwABAAEAAAABAAAAAwABAAEAln1wAxAziDwYiEaxqAdiPWC5VieckY4u

OEM Activation 1.0 Data-->
N/A

OEM Activation 2.0 Data-->
BIOS valid for OA 2.0: yes, but no SLIC table
Windows marker version: N/A
OEMID and OEMTableID Consistent: N/A
BIOS Information: 
  ACPI Table NameOEMID ValueOEMTableID Value
  APICGBT   GBTUACPI
  FACPGBT   GBTUACPI
  HPETGBT   GBTUACPI
  MCFGGBT   GBTUACPI
  SSDTPTLTD POWERNOW


MSR and Raw Input

$
0
0

Unsuccessful in getting WM_INPUT to fire for a Magnetic Strip Reader setup as a HID device in Window 7, 10.  Implementation works under XP.  Is this by design in Windows 7 and up?  Perhaps security enhancement?  Once again this works on XP.

   m_rids[0].usUsagePage = 0xff00;
   m_rids[0].usUsage = 0x0001;
   m_rids[0].dwFlags = RIDEV_INPUTSINK;
   m_rids[0].hwndTarget = hWnd;

   RegisterRawInputDevices(m_rids, 1, sizeof(RAWINPUTDEVICE));



Proper way to sign ActiveX after 1/1/2016

$
0
0

I have recently updated the ActiveX control used in my product.  The problem is that IE11 blocks it.  Our code signing was recently updates to dual sign executables (SHA1 and SHA256).  The ActiveX control is dual signed and the cab files is also dual signed.  SignTool and Windows Explorer show that both the .cab and .ocx are signed and trusted but IE11 is unhappy about it for some reason.

The older version of this ActiveX control (sign with a SHA1 signature and timestamped in 2014) works just fine.

I found that when I remove the Security Update for Microsoft Windows 3123479the newly signed ActiveX control loads as expected.

What is the proper way to code sign an ActiveX control such that it is compatible with Security Update 3123479?

Here is the error logged in the IE temp files folder:

<html><pre>
*** Code Download Log entry (05 Feb 2016 @ 16:21:53) ***
Code Download Error: (hr = 800b0004) The subject is not trusted for the specified action.

Operation failed. Detailed Information:
     CodeBase: https://[redacted]/vpnweb.cab
     CLSID: {538793D5-659C-4639-A56C-A179AD87ED44}
     Extension: 
     Type: 

LOG: Reporting Code Download Completion: (hr:800b0004 (FAILED), CLASSID: 538793d5..., szCODE:(https://[redacted]/vpnweb.cab), MainType:(null), MainExt:(null))
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 / hrResponseHdr = 0).
LOG: URL Download Complete: hrStatus:0, hrOSB:800b0004, hrResponseHdr:0, URL:(https://[redacted]/vpnweb.cab)
LOG: Reporting Code Download Completion: (hr:800b0004 (FAILED), CLASSID: 538793d5..., szCODE:(https://[redacted]/vpnweb.cab), MainType:(null), MainExt:(null))

</pre></html>

 Thanks,

David

File explorer search for phrase with spaces in contents of files within a directory

$
0
0

Hi

I have a directory with 50 very long word documents and now need to search thru them all for an exact phrase which contains spaces which is "yield to worst".  I switched on the contents search without indexing but get documents which contain all three words at any location rather than conactenated as a single phrase.  I tried putting quote marks around the phrase but that didnt work.  Thus my search returned a file that had the word yield in some paragraphs, the word to in same other paragraphs.

As far as I can see if I put "yields the worst", Search will list the same documents as if I put "yield to worst" in the search box.

The AQS help at: https://msdn.microsoft.com/en-us/library/aa965711(v=vs.85).aspx was little help on searching for specific test phrase containing strings.

This must be something commonly sought after by people who recall reading something but cant recall in which document they saw it.

Thanks in advance for any help!

ReadProcessMemory and WriteProcessMemory are not working!

$
0
0

Foreword:

IMPORTANT/NOTE (READ IT FIRST): BEFORE you read my post, you must know or I must warn you first of all that my post at first and to the middle "seems" to beNOT relevant and NOT related to the title and to the Forum category and to the thread at all,BUT please do NOT stop reading it in the middle, down vote my question, comment me about that, because I know that already and please doNOT delete my post because of that! Please be patient and read itALL from the START to the END slowly and carefully and try to understand everything I am trying to say. I promise that I will reach to my point eventually, which is relevant, related and the most important part in the end of the body, and everything will be connected and understood.

Beginning of my post:

I wanna be cheater! Cheating is boring for some gamers, but also fun for some players, like me.

Hacking is also cheating and if someone knows how to hack then absolutely he/she is also a programmer, like me.

I am playing quake, the game that was developed by ID software and released in 1996.

In this game, you can get the lightning gun and when you fire with it underwater or while you are swimming or drowning and sinking, it explodes and all enemies around die, also my character I play with, but not when GOD mode is ON, because then my character survives this explosion without losing any health.

This explosion is very funny and it makes me smile and sometimes laughing every time I do it and I want to be able to do this ALWAYS, not only when I am underwater or swimming or drowning and sinking.

In order to achieve this goal, I need to cheat by hacking this game and make this game "thinks" that my character is underwater, even though he is not.

I am sure that this game defines a flag that determines whether my character is underwater or not and always checks it's value.

The game sets this flag to 1 whenever I get into water and sets it to 0 whenever I get out of water.

The game has it's own console, but it won't let me to modify this flag, because this flag suppose to change only when I get into and out of water, but fortunately, I have already installedCheat Engine 6.3 on my computer and I also have learnt how to use it. I can use Cheat Engine to find the address of this flag and set it to1, but the problem is that the game immediately sets this flag to0, because it always checking and detects that it has wrong value, because my character is not underwater.

I don't care that this flag is 0 most of the time I am playing, but whenever I fire with the lightning gun, I want it to explode, even though I am in the air. Soin the very short moment before I fire, I need to make the game "thinks" that I am underwater, that is to say I need to set this flag to 1, so I will see my lightning gun explodes, and not just firing lightning.

I know how to use Cheat Engine to find the address of this flag by using it's first scan and next scan buttons and I know how to change values of variables after I have found their address and added them to the list, but this isimpossible in the same time both fire the lightning gun while focusing on the game's window and set this flag to 1 while focusing on Cheat Engine's window and I want to play this game in fullscreen mode,not in window mode! It's also not okay that I have to minimize this game and switch back to it every time. If I first use cheat engine to set this flag to1 and then go back to the game to fire the lightning gun, it won't explode as expected, because the game have already found that the flag has wrong value, and set it to the correct value, i.e.0.

Note that all what I said about water is also true about slime (poisoned and not poisoned) and lava.

And here I am getting to my point:

I want to write Win32 API program in C++ language that will set this flag to1 while I am holding down the fire key. I know how to use the GetKeyState and GetAsyncKeyState functions to detect when any key is hold or not and they are working excellent. I also succeeded to open quake by using theOpenProcess function. I also know the address of the flag, thanks to Cheat Engine. All just I need to do is to use theWriteProcessMemory function to set this flag to 1, but the problem is that this functionfails all the time and GetLastError sometimes returns 5 =ERROR_ACCESS_DENIED or 299 = ERROR_PARTIAL_COPY! I know what the meaning of these error codes, but still they don't help me to understand whyWriteProcessMemory always fail! ReadProcessMemory always fails as well for the same error codes that are returned sometimes byGetLastError! Cheat Engine can directly write on the memory of the process I choose. Why I can't with my programs do that too? I believe I can do that, but I am doing a mistake and I don't know what it is! A mistake that Cheat Engine doesn't make. I surf the internet for hours  for help, but nothing! I don't know what I am doing wrong! Only your answers are my hope now and only they can help me now to make these functions work properly. I am very upset, frustrated, unhappy, angry and desperate! Please help me!

By the way that Cheat Engine is incredible software and it's creators deserve a lot of credits!

And I am very impressed of it's abilities and functionality!

GetModuleHandle fails (returns 0) and GetLastError() returns 126 0x7E (ERROR_MOD_NOT_FOUND)

$
0
0

In this link

MSDN describes and explains this error code.

Quote: "The specified module could not be found."

BUT it doesn't make any sense, because PathFileExists for thesame string returns 1 (TRUE), i.e. the module does exist in this path! I know what PathFileExists does exactly, according to it's name and according to MSDN too in this link:

Quote: "Determines whether a path to a file system object such as a file or folder is valid."

So PathFileExists indeed found the module if it says it exists and it doesn't lie, because in my computer in windows explorer I found this module too, SoGetModuleHandle should not fail with this error!

This is impossible! So how this is happening!?

Remote Desktop Protocol Provider API

$
0
0

Hi,

I'm trying to implement the Remote Desktop Protocol Provider API by creating a in-proc COM server which contains a IWRdsProtocolManager class.  I have registered my class and can find its CLSID in the registry.  When I call CoCreateInstance from a test application, I can create the class and I can see the debug code in my constructor and Initialize method generating some output to a text file.  However if I create a new key or replace the LoadableProtocol_Object value of the RDP-Tcp key with my CLSID and then restart Remote Desktop Services, I don't see anything happening.  There are no logs in Event Viewer and no debug output to my file.  I have tried various methods to determine whether it is being loaded, but as far as I can tell my protocol provider is never created by Remote Desktop Services.

Has anyone had some positive experience of this API and could point me in the right direction?  I feel I must be missing something obvious for my DLL not to be loaded, even though I have carefully followed the instructions found here (https://msdn.microsoft.com/en-us/library/dd919947%28v=vs.85%29.aspx). 

Thanks,

Duncan

Using Windows Biometric Framework to do face recognition on Window 10 with Intel Realsense camera

$
0
0

Hi,

I have an Intel Real sense Camera and I can use it to set up the Window Hello login on Window 10. Now I can trying to use the face recognition programmatically using Window Biometric Framework on window 10. I cannot find needed documentation and sample to do that, But I managed to have some code to use the API. I have following methodEnrollSysPool and it called as

hr = EnrollSysPool(TRUE, WINBIO_ANSI_385_FACE_FRONTAL_FULL);

HRESULTEnrollSysPool(

BOOLdiscardEnrollment,

WINBIO_BIOMETRIC_SUBTYPEsubFactor)

{

HRESULThr = S_OK;

WINBIO_IDENTITYidentity = { 0 };

identity.Type = WINBIO_ID_TYPE_GUID;

WINBIO_SESSION_HANDLEsessionHandle = NULL;

WINBIO_UNIT_IDunitId = 1;

WINBIO_REJECT_DETAILrejectDetail = 0;

BOOLEANisNewTemplate = TRUE;

// Connect to the system pool.

hr = WinBioOpenSession(

WINBIO_TYPE_FACIAL_FEATURES,// Service provider

//WINBIO_TYPE_THERMAL_FACE_IMAGE, // Service provider

WINBIO_POOL_SYSTEM,// Pool type

//WINBIO_POOL_PRIVATE,

WINBIO_FLAG_DEFAULT,// Configuration and access

NULL,// Array of biometric unit IDs

0, // Count of biometric unit IDs

WINBIO_DB_DEFAULT,// Database ID

&sessionHandle// [out] Session handle

);

if(FAILED(hr))

{

wprintf_s(L"\n WinBioOpenSession failed.");

wprintf_s(L"hr = 0x%x\n", hr);

gotoe_Exit;

}

// Locate a sensor.

/*wprintf_s(L"\n Swipe your finger on the sensor...\n");

hr = WinBioLocateSensor(sessionHandle, &unitId);

if (FAILED(hr))

{

wprintf_s(L"\n WinBioLocateSensor failed. hr = 0x%x\n", hr);

goto e_Exit;

}*/

// Begin the enrollment sequence.

wprintf_s(L"\n Starting enrollment sequence...\n");

hr = WinBioEnrollBegin(

sessionHandle, // Handle to open biometric session

subFactor,// Finger to create template for

unitId // Biometric unit ID

);

if(FAILED(hr))

{

wprintf_s(L"\n WinBioEnrollBegin failed. hr = 0x%x\n", hr);

gotoe_Exit;

}

// Capture enrollment information by swiping the sensor with

// the finger identified by the subFactor argument in the

// WinBioEnrollBegin function.

for(intfaceCapture = 1;; ++faceCapture)

{

wprintf_s(L"\n Camera to capture %s face sample.",

(faceCapture == 1) ?L"the first":L"another");

hr = WinBioEnrollCapture(

sessionHandle, // Handle to open biometric session

&rejectDetail // [out] Failure information

);

wprintf_s(L"\n Sample %d captured from unit number %d.",

faceCapture,

unitId);

if(hr == WINBIO_I_MORE_DATA)

{

wprintf_s(L"\n More data required.\n");

continue;

}

if(FAILED(hr))

{

if(hr == WINBIO_E_BAD_CAPTURE)

{

wprintf_s(L"\n Error: Bad capture; reason: %d",

rejectDetail);

continue;

}

else

{

wprintf_s(L"\n WinBioEnrollCapture failed. hr = 0x%x", hr);

gotoe_Exit;

}

}

else

{

wprintf_s(L"\n Template completed.\n");

break;

}

}

// Discard the enrollment if the appropriate flag is set.

// Commit the enrollment if it is not discarded.

if(discardEnrollment==TRUE)

{

wprintf_s(L"\n Discarding enrollment...\n\n");

hr = WinBioEnrollDiscard(sessionHandle);

if(FAILED(hr))

{

wprintf_s(L"\n WinBioLocateSensor failed. hr = 0x%x\n", hr);

}

gotoe_Exit;

}

else

{

wprintf_s(L"\n Committing enrollment...\n");

hr = WinBioEnrollCommit(

sessionHandle, // Handle to open biometric session

&identity, // WINBIO_IDENTITY object for the user

&isNewTemplate);// Is this a new template

if(FAILED(hr))

{

wprintf_s(L"\n WinBioEnrollCommit failed. hr = 0x%x\n", hr);

gotoe_Exit;

}

}

 

e_Exit:

if(sessionHandle != NULL)

{

WinBioCloseSession(sessionHandle);

sessionHandle = NULL;

}

wprintf_s(L" Press any key to continue...");

_getch();

returnhr;

}

 It failed in calling WinBioEnrollCapture.

I also tried the WinBioVerify, it also failed.

So is there anything I need to set up to enable the Window Biometric Framework to connect to my camera. Or the face recognition is not actually working at all in Window Biometric Framework.

You help is greatly appreciated.

Sincerely,

Ping Tian

ping.tian@razerzone.com

Error : DEP0700 : Registration of the app failed with error 0x8007007B

$
0
0

Hi

We use a python tool to generate projects for our test applications and I am having a problem when I try to generate the project for Universal application. It always fails wit the following error:

1>Error : DEP0700 : Registration of the app failed. Deployment Register operation with target volume C: on Package xxxxx_1.0.0.0_x86__73ankrayetwqa from:  (AppxManifest.xml)  failed with error 0x8007007B. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf9)

The application is very simple and it is made of a couple of file. The project generated is very similar to the Application default project that is generated by VS2015 when using the wizard for a DirectX 11 App (which works fine).

I tried to regenerate the certificate from VisualStudio but it doesn't work better.

Looking inthe forum for related issues did and I did not find anything helpful. 

Thanks,



Is there a best practice for persisting user data from installed version to next installed version of a UWP app, Win10?

$
0
0

Hi,

I developing an app in which the user earns points.

I already provide the user the ability to reset points to 0.

What I'd like to provide is for the user to keep, and so add to, his current point total in this scenario:

  • He installs his first version ever and that shows a current point total of 0.
  • He uses the app and eventually it shows a current point total of 116.
  • He downloads a newer version from the Windows store, for either Mobile or PC or both.
  • NOTE - this download can have occurred after he by hand had uninstalled the original version or he simply elected to install the new and it handled the uninstall.
  • He then starts up the newly installed version and that shows a current point total not of 0, but of 116.

From what I've read it doesn't appear roaming storage is appropriate as this is user, not app (and/or settings type) data. In addition I should be clear that I'm not designing for any version run anywhere to share the same data store.  The user will run the PC version and have 116, for example, but on the mobile version may have 450.

Is the only recourse, then, to save the points total each time the user's OneDrive (I'd eventually like to extend this app to IOS and Android)? And use that to restore post a new install?  It seems a good bit of work and/or user involvement to provide permissions, etc. for such a simple thing.

It would be awesome if the store install process provided for something like this (carry over this data if it's there ...)? But I don't see that it provides for this.

Any and all help appreciated - thanks!

Gary


Gary Glanz

search for phrase in file explorer

$
0
0

I can search for phrases only for words using the search box. AQS doesnt help it seems.  

I am using Windows 7 Enterprise at work with SP1.  I have recreated the problem using a directory called "test".  I have two files called doc1.docx and doc2.docx.  The first contains:

Yield to worst blah blah blah

The second contains:

Yield the worst blah blah blah to

If Search box = yield to

then I get both doc1 and doc2 returned.  So it doesnt matter that the two words are meant to be contiguous separated by a space.  The searh is simply returning all documents that contain both yield and to in with any text in between rather than the space that I put in the Search box.

What I wanted returned was just doc1, as this contains "yield to" (ignoring quotes).  So how to I search for specific phrases, ie two or more words separated by spaces please?

Rupert

What technologies should I use to build this app?

$
0
0

I would like to build a white noise app that lives in System Tray, and when you click the tray icon, the app pops up.

Given that I would like to use very custom UI design, I'm wondering what technology would make it easiest to do so (ie. Win32, WPF, XAML etc..), as well as what language should I use (C++, C#). I would like the app to be compatible with older versions of Windows, so Windows 10 'Modern' Apps thingy won't work.

The reason I'm asking, is to know what skills to look for when hiring for a developer (btw, if you can make this app, feel free to shoot me an email loansolutionsph@outlook.com)

USb Devices Querying

$
0
0

Hi

I'm looking for a namespace for windows desktop apps that is the alternative to "Windows.Devices.Usb" which is used in

Windows universal apps. I am building a program that does the same thing as Microsofts "UsbVeiw.exe".I want to query

a list of all usb devices an the windows desktop computer. Is there a replacement for this is the library?

Thanks for your reply


michael r demulling

P.S. I'm using Visual Studio Community 2015 Service Pack 1 C#

Found a article that helps:

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/9a959b36-4158-4d15-a9ef-9ab7fa538941/can-i-use-windowsdevicesenumeration-namespace-in-nonmetrodesktop-app?forum=tailoringappsfordevices

But my question still stands--is there a namespace for windows desktop forms for querying Usb

devices? This article allows me to use Windows.Devices.Usb in a desktop app.

Library for graphic functions like in PowerPoint or CorelDraw

$
0
0

I am looking for a library that contains graphics functions like "line, circle, arc, rectangle, bezier" and allows to place these elements on the cnavas and modify them including scaling and turning. So the library should also contain code that draws the border around the graphic elements when they are clicked and allows to grab the handles on the border for manipulation. On bezier curves it should allow to modify individual points and segements of the curve. 

Thanks,

Holger

Viewing all 6180 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>