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

Retrieveng ProductCode property for .msp database

$
0
0
I open the file using
MsiOpenDatabase(szFileName, MSIDBOPEN_READONLY + (PathMatchSpec(szFileName, L"*.msp") ? MSIDBOPEN_PATCHFILE : 0), &hMSI);
(szFileName can be a path to MSI or MSP file). When I call
MsiDatabaseOpenView(hMSI, L"Select `Value` from `Property` where `Property`='ProductCode'", &hDBView);
I receive an ERROR_BAD_QUERY_SYNTAX error. How can I query a ProductCode from the MSP file?

If I fall I will arise on my way to paradise


VS2015 Community Fail to detect Windows 10 SDK Standalone Installation

$
0
0

Hello all,

I want to build an UWP apps with VS2015, so I decided to install it through the Windows 10 SDK Standalone which I downloaded it from developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

Download was completed (~700MB in total) and I installed it. Then I restarted my PC. But, when I opened VS2015, it says there is no SDK installed for UWP apps. Whats going on right here? Am I did it wrong?

Any help will be appreciated. Thanks...

Kernel Power Error ID 41

$
0
0
Hello everyone!I recently bought a new power supply same as the old one, and I got the blue screen of death while reinstalling windows but on the old 8.1 was working just fine. I checked the event logs, and it was the kernel power error ID 41. Ever since then, I've been getting reboots in my system. If anyone can tell me how to fix this error that would be awesome! Thanks!

p.s. Graphic card might be the problem? since it got an error while trying to install the drive followed by a blue screen, its like i cant install it from amd only the one that windows 8.1 provides, it doesnt have any sort of boots(default). Therefore i cant figure why i cant install it from amd, it might be that the problem? + i have this wierd multiple gpu's that i didnt had before i had only one

PC: amd fx octacore 3.6Ghz.
8gm ram ddr3 kyngstone hyperbeast
intel SSD 128GB +1TB normal drive
amd ati radeon 7800 twin frozr 2gb ddr5
power supply Energon EPS 750W

Determining an executable's boundary in case of overlay presence

$
0
0
What is a correct way to determine an executable file boundary when it has an attached archive as overlay (e.g. cab archive)? I tried to SizeOfHeaders+SizeOfCode+SizeOfInitializedData, but it works quite rarely.

If I fall I will arise on my way to paradise

Mircosoft Passport Apis with Windows native apps

$
0
0

I'm working on a native app in which I want to integrate windows hello Biometric authentication. In order to do that I would need Microsoft Passport's UWP app apis(KeyCredentialManager). The problem is that Microsoft Passport's Apis only work with universal windows application. Is there any way by which I can leverage Microsoft passport's 2FA in windows native apps?

Thanks,

Application in Startup loading failure

$
0
0

Hi!

I'm an SSD verifying engineer.

My job is verifying SSD's Power Cycle Reliability, so which tools I usually use are Rebooter made by Passmark and Powertest made by MS.

To test SSD's Power cycle reliability, for example, I start and set Rebooter application on testing SSD, primary disk with Windows OS, with 3000 cycles.

This Rebooter application is always loaded right after windows booting. I think this application register itself on Startup Registry. This can be shown in Task Manager -> Startup tab.

The problem is that after updating Windows 10 from 10586 to 14393(Redstone), this Rebooter application cannot be loaded automatically at some random cycle.

This is very critical for me to keep verifying test because it make the test stop.

With Windows 10 10586, it never occurs. With 14393.00 or 14393.447, the newer version, it occurs.

If someone have solution or advises for this, please leave reply here.

Thanks.

Accessing multiple datatables

$
0
0

I have a loop that creates about 8 datatables (they are not in a dataset YET).  I need to reference the correct one to add data.  Here is what I do to create it:

dtLineDetail = New DataTable("Detail" & lineRow("Line"))

'add columns
dtLineDetail.Columns.Add("Col1", GetType(String))
dtLineDetail.Columns.Add("Col2", GetType(String))

How do I reference for example Detail2 data table directly?

thanks for your help in advance.


*** Please allow me to mark threads as answered and I will, Thank you ***

use IMbnDeviceServicesContext.GetDeviceService() on Desktop App (Windows 8.1), but get error code 0x80070032

$
0
0

The MBN interface api knows that it can be used normally with desktop app in windows 8.1, but my app is not works.
When I use IMbnDeviceServicesContext.GetDeviceService() to get basic connect uuid has error, the error code is 
"Unexpected exception occurred: System.Runtime.InteropServices.COMException (0x80070032)" -> 0x80070032 is  ERROR_NOT_SUPPORTED: The request is not supported.

How can I solve this problem?

os : win 8.1,

app : desktop app, use mbnapim, wpf

reference code : https://code.msdn.microsoft.com/windowsapps/Modern-Win32COM-mobile-8f762ad8/view/Discussions#content

==================
{

MbnInterfaceManager mbnInfMgr;
IMbnInterfaceManager infMgr;
IMbnInterface mobileInterface;
IMbnDeviceServicesManager m_MbnDeviceServicesManager;
IMbnDeviceServicesContext m_MbnDeviceServicesContext;
IMbnDeviceService deviceService;

mbnInfMgr = new MbnInterfaceManager();
infMgr = (IMbnInterfaceManager)mbnInfMgr;
IMbnInterface[] interfaces = (IMbnInterface[])infMgr.GetInterfaces();
mobileInterface = interfaces[0];
m_MbnDeviceServicesManager = (IMbnDeviceServicesManager)new MbnDeviceServicesManager();
m_MbnDeviceServicesContext = m_MbnDeviceServicesManager.GetDeviceServicesContext(mobileInterface.InterfaceID);
IReadOnlyList<MBN_DEVICE_SERVICE> deviceServiceList = (IReadOnlyList<MBN_DEVICE_SERVICE>)m_MbnDeviceServicesContext.EnumerateDeviceServices();
deviceService = m_MbnDeviceServicesContext.GetDeviceService("{a289cc33-bcbb-8b4f-b6b0-133ec2aae6df}");

}
=================




Windows Biometric Framework access from non administrative accounts

$
0
0

I have an application that needs to have biometric authentication. The users using that app would be using laptops with native (on board) fingerprint scanners. Keeping this in mind I used Windows Biometric Framework as my obvious choice for authentication. I am using WBF for just raw image capture, so in essence I am using just the WinBioOpenSession and WinBioCaptureSample functions.

My test Application works well and the Fingerprint is captured successfully. Now here is the problem: This only works if I run my application as an Administrator. The moment I try and run it as a normal domain user the WinBioOpenSession call fails.

I tried multiple things:

  1. Create a WCF service running with LocalSystem Privileges. Now service runs in background, hence if I call this service from my app for WBF functions they fail because WBF needs an active Foreground application.

  2. Added the WinBioAcquireFocus function (as I read in documentation that this can help in running WBF from services). The AcquireFocus runs successfully but the OpenSession fails yet again

3). Tried multiple things from Windows like task scheduler, run as etc. But the trouble remains the same.

So basically I need a process that runs in the foreground with admin privileges (should run like this every time, for a simple reason that I cannot have an admin entering his credentials for all domain users every time).

Is there a way to make WBF accessible to user accounts (non admin accounts). If not, then how to really use WBF for custom apps?

Thanks, Abhi

GetUserDefaultUILanguage API returns incorrect language on Win8.1 for French Canada

$
0
0
I set the language of my windows 8.1 system to French Canada(Fr-ca), and use GetUserDefaultUILanguage API to get the user default language, but it returns value 1036(Fr-fr) which is incorrect, it should be 3084(Fr-ca). And it returns a correct value(3084) on windows 10. Do you know how to get the correct value on Window 8.1 for Fr-ca

How to access to help icon in fileDialog

$
0
0

I am working onIFileOpenDialog/IFileDialog interfaces using MSDN example shown in

https://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/winui/shell/appplatform/commonfiledialog

Hi,

There is a icon “?” on the top right corner, which is the icon for help.

We have “HTML context help” for each screen for users and we would like to use this icon   .

How can I get access to this icon so that it will show the instructions we can provide how to use this fileDialog

At this time clicking this icon shows instructions for window search procedures.

Thank you,

ChangChiTheGraphics


chang Chi

How do you delay an EXE to run, which is run through "run" key?

$
0
0

I'm setting run key for an application, but I want Windows to run the app after login and after some time interval. Is this possible to provide delay to run key?

OR

Otherwise, I can schedule a task, but I've noticed that task created using an account requires that account to be logged in for the task to run.

Is there any way, I can schedule a task to run for "any" user login? Behavior which is exactly similar to run key?


Sameer Thigale

[U8.1] Making a window follow relative to another window.

$
0
0

I'm trying to make a window overlay another window within the same process.  This overlay is not mouse clickable and has an alpha channel on it.  So I figured I'd haveWS_EX_LAYERED and WS_EX_TRANSPARENT set, but this also requires aWS_POPUP. WS_POPUP implies that it can have a parent.

As I understand (please correct me if I'm wrong), WS_POPUP is incompatible withWS_CHILD, because WS_CHILD implies it must have a owner.  A window cannot have aparentand an owner.  An owned window will have it's window moved relative to the owner, where a child will not.  In order for my overlay window to constantly overlay the parent, I have to hook into theWM_SIZE, WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED.  However, these have a tremendous lag, which I found surprising and annoying.

I've looked around a bit and found that this is not an uncommon problem, which also doesn't seem to have a solution.  Considering how prevalent this problem is, WHY hasn't Microsoft addressed this?  Or am I missing a solution out there somewhere?


I don't mind someone marking a post as "Proposed as answer", but DO NOT mark it as "Answered". If I am the OP, I will decide if a post actually answers my post or not. Thank you.



Any plans to make DirectX cross platform?

$
0
0
Any plans to make DirectX cross platform? Would make my life much easier and always develop for Windows first as my main focus. It would allow me to make it for Windows best and concentrate on the app and not how to raise money for cross platform development. ;)

SB Software Developer



How to copy multiple files to another directory

$
0
0

Hi,


I wish to copy multiple files to another directory.

In the example shown below I have a string called “bufffercopy” which contains 3 information: one is directory name, and two file names that reside in the directoy as shown under the marking //11111.

The ‘\#’ indicates characters preceding it is a directory name.

The ‘\*’ indicates characters preceding it is a file name residing in the directory.

bufffercopy” says there is "C:\\PreVisionT\\prev” directory, and within it two files “adv3.bmp”,

“adv1.bmp”.

I extract these info and labe them dirtmp for directory name;

 and extract namtmp for filename, as shown under marking //22222

under //33333, I obtain filesrc, and filetgtT,and use them with CopyFileA as shown under /55555

Notice that I do not use

//    strcpy(namtmp, "adv1.bmp");

The result is that the first file copies to the target directory,

But second file does not copy to target directory

If I activate and explicitely spcify ‘namtmp’ as shown below, under //33333,

     strcpy(namtmp, "adv1.bmp");

both files copy to target directory well.

I tried my own copying code. Save10f(), shown below substituting “CopyFileA”, under //66666

It gives same result, and it copies 1<sup>st</sup> file file, and tells that it cannot find the source file for the 2<sup>nd</sup> file.

Would you help me, please.

Thank you,

ChangChiTheGraphics

int ilocD, iloc1;
char dirtmp[200], namtmp[200], filesrc[200],filetgtT[120];

bufffercopy = (char*)malloc(500);

//11111
strcpy(bufffercopy, "C:\\PreVisionT\\prev#adv3.bmp* adv1.bmp*");

p = bufffercopy;
i = 0;
while (1){
	ilocD = strcspn(p, "\#\*");
	iloc1 = ilocD;
	if (iloc1 < 2)return 0; // break;
	if (*(p + iloc1) == '\#') {
		if (iloc1 < 2)return 0;
		*(p + iloc1) = '\0';
		strcpy(dirtmp, p);
		p = p + ilocD + 1;
	}
	else if (*(p + iloc1) == '\*') {
              if (iloc1 < 2)return 0;
      		*(p + iloc1) = '\0';
//22222
		strcpy(namtmp, p);
              if (i == 0){
//33333
//			strcpy(namtmp, "adv1.bmp");
			strcpy(filesrc, dirtmp); strcat(filesrc, "\\"); strcat(filesrc, namtmp);
			strcpy(filetgtT, filetgt); strcat(filetgtT, "\\"); strcat(filetgtT, namtmp);
		}
		else if (i == 1){
//44444
//			strcpy(namtmp, "adv3.bmp");
			strcpy(filesrc, dirtmp); strcat(filesrc, "\\"); strcat(filesrc, namtmp);
			strcpy(filetgtT, filetgt); strcat(filetgtT, "\\"); strcat(filetgtT, namtmp);
		}
		else break;
//55555
		bres = CopyFileA(filesrc, filetgtT, 0);
//66666
//              save10f(filesrc, filetgtT);
		i++;
		p = p + ilocD + 1;
	}
}//while(1)
if (bufffercopy != NULL){
	free(bufffercopy); bufffercopy = NULL;
}
return 0;
int save10f(char* name1,char* name2)
{
FILE *cout, *cin;
char *buff, nam1[MAXPATH], nam2[MAXPATH];
int num1, num2, size, result, pict, pict2, count;
long loc, pos;
if ((cin = fopen(nam1, "r+b")) == NULL){
	free(buff);
	return(-10);
}
if ((cout = fopen(nam2, "w+b")) == NULL){
	free(buff); fclose(cin);
	return(-11);
}
fseek(cin, 0L, SEEK_END);
pos = ftell(cin);
fseek(cin, 0L, SEEK_SET);
fseek(cout, 0L, SEEK_SET);
do{
	num1 = fread((char*)buff, sizeof(char), size, cin);
	num2 = fwrite((char*)buff, sizeof(char), num1, cout);
	if (num2 != num1){
		result = -2;
	}
} while (num1 == size);
fclose(cin); fclose(cout); free(buff);
}



chang Chi


How Can Draw Font Over DirectX 3D Context?

$
0
0

I use DirecreatectX11.
So want to create ID2D1Device1.

But 'CreateDevice' function return Error.
hr = m_d2dFactory->CreateDevice(dxgiDevice, &m_d2dDevice);
Error Message : "One or more arguments are invalid."

I can understand the reason.
I use Visual Studio2015, C++, platform 8.1.

I add the sample code.
please let me know.

Is there any sample code use ID2D1Device1?


////////////////////////////////////////////////////////////////////////////////////////////////////
namespace DX
{
    // Provides an interface for an application that owns DeviceResources to be notified of the device being lost or created.
    interface IDeviceNotify
    {
        virtual void    OnDeviceLost() = 0;
        virtual void    OnDeviceRestored() = 0;
    };

    // Controls all the DirectX device resources.
    class DeviceResources
    {
    public:
        DeviceResources();
        void     SetWindow(HWND);
        void     SetLogicalSize(CSize logicalSize);
        void     SetCurrentOrientation();
        void     SetDpi(float dpi);
        void     ValidateDevice();
        void     HandleDeviceLost();
        void     RegisterDeviceNotify(IDeviceNotify* deviceNotify);
        void     Trim();
        void     Present();
        void     WaitOnSwapChain();
 void     OnMessage(MSG);

        // Device Accessors.
        CSize     GetOutputSize() const   { return m_outputSize; }
        CSize     GetLogicalSize() const   { return m_logicalSize; }
     
        // D3D Accessors.
        ID3D11Device2*    GetD3DDevice()    { return (ID3D11Device2*)&m_d3dDevice; }
        ID3D11DeviceContext2*   GetD3DDeviceContext()   { return (ID3D11DeviceContext2*)&m_d3dContext; }
        IDXGISwapChain1*   GetSwapChain()    { return (IDXGISwapChain1*)&m_swapChain; }
        D3D_FEATURE_LEVEL   GetDeviceFeatureLevel()   { return m_d3dFeatureLevel; }
        ID3D11RenderTargetView*   GetBackBufferRenderTargetView()  { return (ID3D11RenderTargetView*)&m_d3dRenderTargetView; }
        ID3D11DepthStencilView*   GetDepthStencilView()   { return (ID3D11DepthStencilView *)&m_d3dDepthStencilView; }
        D3D11_VIEWPORT    GetScreenViewport()   { return m_screenViewport; }
 void     Render(CSR_CharacterRender*);
 void     ReleaseDeviceResources();
 void     SetLatency();
 HWND     GetHWND()    { return m_hWindow; }
 void     GetRotateMat(D3DXVECTOR3 fRotate);
 ID3D11Device*    m_d3dDeviceOrg = nullptr;
 ID3D11DeviceContext*   m_d3dContextOrg = nullptr;

 CSR_CharacterRender   m_oCharacterRender;
 LARGE_INTEGER    m_fTime, m_fRatio;
 CPoint     m_nClickPos;

    private:
        void     CreateDeviceIndependentResources();
        void     CreateDeviceResources();
        void     CreateWindowSizeDependentResources();
 
        // Direct3D objects.
 ID3D11Device2*    m_d3dDevice = nullptr;
 ID2D1Device1*    m_d2dDevice = nullptr;
        ID3D11DeviceContext2*   m_d3dContext = nullptr;
        IDXGISwapChain1*   m_swapChain = nullptr;
 IDXGISwapChain2*   m_swapChain2 = nullptr;

        // Direct3D rendering objects. Required for 3D.
        ID3D11RenderTargetView*   m_d3dRenderTargetView = nullptr;
        ID3D11DepthStencilView*   m_d3dDepthStencilView = nullptr;
 D3D11_VIEWPORT    m_screenViewport;

        // Direct2D drawing components.
        ID2D1Factory2*    m_d2dFactory=nullptr;
      
        // DirectWrite drawing components.
        IDWriteFactory2*   m_dwriteFactory = nullptr;
 IDWriteTextFormat*   m_pTextFormat = nullptr;
 ID2D1SolidColorBrush*      m_FPSBrush = nullptr;
     
        // Cached reference to the Window.
        HWND     m_hWindow;

        // Cached device properties.
        D3D_FEATURE_LEVEL   m_d3dFeatureLevel;
        CSize     m_d3dRenderTargetSize;
        CSize     m_outputSize;
        CSize     m_logicalSize;    

         // Used by the WaitOnSwapChain method.
        HANDLE     m_frameLatencyWaitableObject;

        // The IDeviceNotify can be held directly as it owns the DeviceResources.
        IDeviceNotify*    m_deviceNotify=nullptr;
 FLOAT     m_pBackColor[4];
    };
}

////////////////////////////////////////////////////////////////////////////////////////////////////
void
DX::DeviceResources::CreateDeviceIndependentResources()
{
    // Initialize Direct2D resources.
    D2D1_FACTORY_OPTIONS options;
    ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS));

#if defined(_DEBUG)
    // If the project is in a debug build, enable Direct2D debugging via SDK Layers.
    options.debugLevel = D2D1_DEBUG_LEVEL_INFORMATION;
#endif

    // Initialize the Direct2D Factory.
 D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, __uuidof(ID2D1Factory2), &options, (void**)&m_d2dFactory);
 
    // Initialize the DirectWrite Factory.
 IUnknown* pWriteFactory = nullptr;
 DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory2), (IUnknown**)&pWriteFactory);
 m_dwriteFactory = (IDWriteFactory2*)pWriteFactory;
}

void
DX::DeviceResources::CreateDeviceResources()
{
    // This flag adds support for surfaces with a different color channel ordering
    // than the API default. It is required for compatibility with Direct2D.
    //UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
 UINT creationFlags = 0;

#if defined(_DEBUG)
    //if (DX::SdkLayersAvailable())
    {
        // If the project is in a debug build, enable debugging via SDK Layers with this flag.
        creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
    }
#endif

    // This array defines the set of DirectX hardware feature levels this app will support.
    // Note the ordering should be preserved.
    // Don't forget to declare your application's minimum required feature level in its
    // description.  All applications are assumed to support 9.1 unless otherwise stated.
    D3D_FEATURE_LEVEL featureLevels[] =
    {
        D3D_FEATURE_LEVEL_11_1,
        D3D_FEATURE_LEVEL_11_0,
    };

    // Create the Direct3D 11 API device object and a corresponding context.
    ID3D11Device* device=nullptr;
    ID3D11DeviceContext* context = nullptr;

    HRESULT hr = D3D11CreateDevice(
 nullptr, // Specify nullptr to use the default adapter.
        D3D_DRIVER_TYPE_HARDWARE,   // Create a device using the hardware graphics driver.
 0, // Should be 0 unless the driver is D3D_DRIVER_TYPE_HARDWARE.
        creationFlags,              // Set debug and Direct2D compatibility flags.
        featureLevels,              // List of feature levels this app can support.
        ARRAYSIZE(featureLevels),   // Size of the list above.
        D3D11_SDK_VERSION,          // Always set this to D3D11_SDK_VERSION for Windows Store apps.
 &device, // Returns the Direct3D device created.
        &m_d3dFeatureLevel,         // Returns feature level of device created.
 &context // Returns the device immediate context.
  );

    if (FAILED(hr))
    {
        // If the initialization fails, fall back to the WARP device.
        // For more information on WARP, see:
  D3D11CreateDevice(nullptr, D3D_DRIVER_TYPE_HARDWARE, 0, creationFlags, featureLevels, ARRAYSIZE(featureLevels), D3D11_SDK_VERSION, &device, &m_d3dFeatureLevel, &context);
    }

 // Store pointers to the Direct3D 11.1 API device and immediate context.
 m_d3dDeviceOrg = device;
 m_d3dContextOrg = context;
 hr = device->QueryInterface(__uuidof(ID3D11Device2), reinterpret_cast<void**>(&m_d3dDevice));
 hr = context->QueryInterface(__uuidof(ID3D11DeviceContext2), reinterpret_cast<void**>(&m_d3dContext));

 D3D11_RASTERIZER_DESC drd = {
  D3D11_FILL_SOLID, //D3D11_FILL_MODE FillMode;
  D3D11_CULL_BACK,//D3D11_CULL_MODE CullMode;
  FALSE, //BOOL FrontCounterClockwise;
  0, //INT DepthBias;
  0.0f,//FLOAT DepthBiasClamp;
  0.0f,//FLOAT SlopeScaledDepthBias;
  TRUE,//BOOL DepthClipEnable;
  FALSE,//BOOL ScissorEnable;
  TRUE,//BOOL MultisampleEnable;
  FALSE//BOOL AntialiasedLineEnable;      
 };
 ID3D11RasterizerState* pRS = NULL;
 hr = m_d3dDeviceOrg->CreateRasterizerState(&drd, &pRS);
 if (hr==S_OK)
 {
  context->RSSetState(pRS);
 }

 IDXGIDevice3* dxgiDevice = nullptr;
 hr = m_d3dDevice->QueryInterface(__uuidof(IDXGIDevice3), reinterpret_cast<void**>(&dxgiDevice));
 hr = m_d2dFactory->CreateDevice(dxgiDevice, &m_d2dDevice);
}
////////////////////////////////////////////////////////////////////////////////////////////////////

Multiple Windows.old (000, 001, 002) folders (req for technical documentation)

$
0
0

I'm not sure if this is the right forum for my question. If not, please point me to the correct one.

I know that if you perform a clean install to the same partition as an existing version of
Windows, the contents of the existing Users (or Documents and Settings), Program
Files, and Windows directories will be placed in a directory named Windows.old, and the
old operating system will no longer be available.

But I'm looking for a technical explanation for the creation of the windows.old.000, windows.old.001, windows.old.002, windows.old.003 etc folders.

Become windows.old renamed to windows.old.000 after a new install on the same partition and 000 to 001 ?

I would like to have some technical documentation. 

Thanks in advance !



Can VB use DirextX for sound?

$
0
0

Hello all

Several years ago I wrote a Visual Basic program in Visual Studio Express 2008.  I used DirectX for sound playback and that worked just fine.  I have purchased a Windows 10 machine and tried to run that application on it and got numerous error messages.

I installed Visual Studio 2015 on it and loaded my code up on that new machine.  It looks like the calls to DirectX have changed since then, so I am not sure what's the best way to sort out this problem.   Can VB make calls out to DirectX anymore? Or does one need to learn C# to do that?

I'm more of a hobbyist programmer, so I haven't stayed up to date on all the changes from one IDE to another.  (I've had enough troubles going from XP, to 7, to 8 then to 10!)

Essentially my application reads the game pad input, then plays a random sound in a specific folder for each button pressed.  I also had it tiered into a servo controller, so the robot could do movement, sounds and so on.  

I thank you for your time and suggestions.


Paul http://paulsr2d2.blogspot.com http://www.youtube.com/paulsr2d2

Is there any API to open a windows10 modern calendar in vc++ win32?

$
0
0

Hi,

Can anyone help me in opening the modern calendar in windows-10 using c++ win32 API's.

I see the modern calendar app in program files folder with (HxCalendarAppImm.exe). Thanks for the help.


Regards, Ravi Raj Nukala

RFC3161 timestamp information in digital signature (authenticode)

$
0
0

there is a KB article that explains How To Get Information from Authenticode Signed Executableshttps://support.microsoft.com/en-us/kb/323809

This works very well, but if the timestamp server countersignature is according to RFC3161 (necessitated by SHA2 dual signing as explained herehttp://zabkat.com/blog/code-signing-sha1-armageddon.htm ), then there is no szOID_RSA_counterSign information in CMSG_SIGNER_INFO; instead there is this poorly documented szOID_RFC3161_counterSign.

I have tried many things but I cannot get the (counter)signer name or time off it. CryptDecodeObject(PKCS7_SIGNER_INFO) which is recommended in KB-323809 fails with error 0x8009310b (ASN1 bad tag value met)

How do I get the countersigner in this situation?

thanks

nikos

PS. Please do not move this post to a different forum, I have an MSDN subscription and expect an answer from somebody from microsoft support, thanks!

Viewing all 6180 articles
Browse latest View live


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