Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
2.1 KiB

/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
cfgi.h
Abstract:
This module contains the internal structure definitions and APIs used by
the Configuration Manager.
Author:
Jim Cavalaris (jamesca) 03-01-2001
Environment:
User-mode only.
Revision History:
01-March-2001 jamesca
Creation and initial implementation.
--*/
#ifndef _CFGI_H_
#define _CFGI_H_
//
// Client machine handle structure and signature
//
typedef struct PnP_Machine_s {
PVOID hStringTable;
PVOID hBindingHandle;
WORD wVersion;
ULONG ulSignature;
WCHAR szMachineName[MAX_PATH + 3];
} PNP_MACHINE, *PPNP_MACHINE;
#define MACHINE_HANDLE_SIGNATURE 'HMPP'
//
// Client context handle signature
//
#define CLIENT_CONTEXT_SIGNATURE 'HCPP'
//
// Client string table priming string
//
#define PRIMING_STRING TEXT("PLT")
//
// Client side private utility routines
//
BOOL
INVALID_DEVINST(
IN PWSTR pDeviceID
);
VOID
CopyFixedUpDeviceId(
OUT LPWSTR DestinationString,
IN LPCWSTR SourceString,
IN DWORD SourceStringLen
);
CONFIGRET
PnPUnicodeToMultiByte(
IN PWSTR UnicodeString,
IN ULONG UnicodeStringLen,
OUT PSTR AnsiString OPTIONAL,
IN OUT PULONG AnsiStringLen
);
CONFIGRET
PnPMultiByteToUnicode(
IN PSTR AnsiString,
IN ULONG AnsiStringLen,
OUT PWSTR UnicodeString OPTIONAL,
IN OUT PULONG UnicodeStringLen
);
BOOL
PnPGetGlobalHandles(
IN HMACHINE hMachine,
PVOID *phStringTable OPTIONAL,
PVOID *phBindingHandle OPTIONAL
);
BOOL
PnPRetrieveMachineName(
IN HMACHINE hMachine,
OUT LPWSTR pszMachineName
);
BOOL
PnPGetVersion(
IN HMACHINE hMachine,
IN WORD* pwVersion
);
HANDLE
PnPEnablePrivileges(
IN PDWORD Privileges,
IN ULONG PrivilegeCount
);
VOID
PnPRestorePrivileges(
IN HANDLE hToken
);
#endif // _CFGI_H_