Sample Code
Windows Driver Samples/ Toaster Package Sample/ C++/ toastva/ toastva.h/
/*++ Copyright (c) Microsoft Corporation. All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Module Name: toastva.h Abstract: Header files and resource IDs used by the TOASTVA sample. --*/ #include <windows.h> #include <windowsx.h> #include <string.h> #include <shellapi.h> #include <prsht.h> #include <windef.h> #include <regstr.h> #include <cfgmgr32.h> #include <setupapi.h> #include <newdev.h> #include "resource.h" // // String constants // #define ENUMERATOR_NAME L"{b85b7c50-6a01-11d2-b841-00c04fad5171}" #define HW_ID_TO_UPDATE L"{b85b7c50-6a01-11d2-b841-00c04fad5171}\\MsToaster" #define DEVICE_INF_NAME L"toastpkg.inf" #define TOASTAPP_SETUP_PATH L"ToastApp\\setup.exe" // // global variables // extern HINSTANCE g_hInstance; // // utility routines // BOOL IsDeviceInstallInProgress(VOID); VOID MarkDevicesAsNeedReinstall( _In_ HDEVINFO DeviceInfoSet ); DWORD GetDeviceConfigFlags( _In_ HDEVINFO DeviceInfoSet, _In_ PSP_DEVINFO_DATA DeviceInfoData ); VOID SetDeviceConfigFlags( _In_ HDEVINFO DeviceInfoSet, _In_ PSP_DEVINFO_DATA DeviceInfoData, _In_ DWORD ConfigFlags ); HDEVINFO GetNonPresentDevices( _In_ LPCWSTR Enumerator OPTIONAL, _In_ LPCWSTR HardwareID ); VOID DoValueAddWizard( _In_ LPCWSTR MediaRootDirectory );
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials