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.
129 lines
2.0 KiB
129 lines
2.0 KiB
/*++
|
|
|
|
Copyright (c) 1987-1996 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
nlp.h
|
|
|
|
Abstract:
|
|
|
|
Private Netlogon service utility routines.
|
|
|
|
Author:
|
|
|
|
Cliff Van Dyke (cliffv) 7-Jun-1991
|
|
|
|
Environment:
|
|
|
|
User mode only.
|
|
Contains NT-specific code.
|
|
Requires ANSI C extensions: slash-slash comments, long external names.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
//
|
|
// Procedure forwards from nlp.c
|
|
//
|
|
|
|
LPWSTR
|
|
NlStringToLpwstr(
|
|
IN PUNICODE_STRING String
|
|
);
|
|
|
|
LPSTR
|
|
NlStringToLpstr(
|
|
IN PUNICODE_STRING String
|
|
);
|
|
|
|
BOOLEAN
|
|
NlAllocStringFromWStr(
|
|
IN LPWSTR InString,
|
|
OUT PUNICODE_STRING OutString
|
|
);
|
|
|
|
BOOLEAN
|
|
NlDuplicateUnicodeString(
|
|
IN PUNICODE_STRING InString OPTIONAL,
|
|
OUT PUNICODE_STRING OutString
|
|
);
|
|
|
|
VOID
|
|
NlFreeUnicodeString(
|
|
IN PUNICODE_STRING InString OPTIONAL
|
|
);
|
|
|
|
VOID
|
|
NlpClearEventlogList (
|
|
VOID
|
|
);
|
|
|
|
VOID
|
|
NlpWriteEventlog (
|
|
IN DWORD EventID,
|
|
IN DWORD EventType,
|
|
IN LPBYTE buffer OPTIONAL,
|
|
IN DWORD numbytes,
|
|
IN LPWSTR *msgbuf,
|
|
IN DWORD strcount
|
|
);
|
|
|
|
VOID
|
|
NlpWriteEventlogEx (
|
|
IN DWORD EventId,
|
|
IN DWORD EventType,
|
|
IN LPBYTE RawDataBuffer OPTIONAL,
|
|
IN DWORD RawDataSize,
|
|
IN LPWSTR *StringArray,
|
|
IN DWORD StringCount,
|
|
IN DWORD StatusMessageIndex
|
|
);
|
|
|
|
DWORD
|
|
NlpAtoX(
|
|
IN LPWSTR String
|
|
);
|
|
|
|
VOID
|
|
NlWaitForSingleObject(
|
|
IN LPSTR WaitReason,
|
|
IN HANDLE WaitHandle
|
|
);
|
|
|
|
BOOLEAN
|
|
NlWaitForSamService(
|
|
BOOLEAN NetlogonServiceCalling
|
|
);
|
|
|
|
VOID
|
|
NlpPutString(
|
|
IN PUNICODE_STRING OutString,
|
|
IN PUNICODE_STRING InString,
|
|
IN PUCHAR *Where
|
|
);
|
|
|
|
NET_API_STATUS
|
|
NlReadBinaryLog(
|
|
IN LPWSTR FileSuffix,
|
|
IN BOOL DeleteName,
|
|
OUT LPBYTE *Buffer,
|
|
OUT PULONG BufferSize
|
|
);
|
|
|
|
BOOLEAN
|
|
NlpIsNtStatusResourceError(
|
|
NTSTATUS Status
|
|
);
|
|
|
|
BOOLEAN
|
|
NlpDidDcFail(
|
|
NTSTATUS Status
|
|
);
|
|
|
|
//
|
|
// Fast version of NtQuerySystemTime
|
|
//
|
|
|
|
#define NlQuerySystemTime( _Time ) GetSystemTimeAsFileTime( (LPFILETIME)(_Time) )
|