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.
 
 
 
 
 
 

117 lines
1.6 KiB

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
util.h
Abstract:
This module defines the shared data structure and function prototypes
for the security manager
Author:
Jin Huang (jinhuang) 23-Jan-1997
Revision History:
--*/
#ifndef _UTIL_
#define _UTIL_
#ifdef __cplusplus
extern "C" {
#endif
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#ifdef __cplusplus
}
#endif
//
// Windows Headers
//
#include <windows.h>
//#include <rpc.h>
//
// C Runtime Header
//
#include <malloc.h>
#include <memory.h>
#include <process.h>
#include <signal.h>
#include <string.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <scesvc.h>
#ifdef __cplusplus
extern "C" {
#endif
//
// function definitions
//
SCESTATUS
SmbsvcpDosErrorToSceStatus(
DWORD rc
);
DWORD
SmbsvcpRegQueryIntValue(
IN HKEY hKeyRoot,
IN PWSTR SubKey,
IN PWSTR ValueName,
OUT DWORD *Value
);
DWORD
SmbsvcpRegSetIntValue(
IN HKEY hKeyRoot,
IN PWSTR SubKey,
IN PWSTR ValueName,
IN DWORD Value
);
DWORD
SmbsvcpRegQueryValue(
IN HKEY hKeyRoot,
IN PWSTR SubKey,
IN PCWSTR ValueName,
OUT PVOID *Value,
OUT LPDWORD pRegType
);
DWORD
SmbsvcpRegSetValue(
IN HKEY hKeyRoot,
IN PWSTR SubKey,
IN PWSTR ValueName,
IN DWORD RegType,
IN BYTE *Value,
IN DWORD ValueLen
);
DWORD
SmbsvcpSceStatusToDosError(
IN SCESTATUS SceStatus
);
#ifdef __cplusplus
}
#endif
#endif