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?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS