23#if defined DBG || defined PRINT_ALWAYS
24#define ODS(sz) OutputDebugString(sz)
29#define arraylen(a) (sizeof(a)/sizeof(a[0]))
126#define DW_GLOBAL_QUIT_EVENT_NAME L"Global\\DwQuitEvent"
127#define DW_QUIT_EVENT_NAME L"DwQuitEvent"
165#define UDF_OPTION_GLOBAL 1
166#define UDF_OPTION_MEDIASPEC 10
167#define UDF_OPTION_DEVSPEC 2
168#define UDF_OPTION_DISKSPEC 3
169#define UDF_OPTION_MAX_DEPTH 0xffffffff
PRTL_UNICODE_STRING_BUFFER Path
static WCHAR ServiceName[]
static const WCHAR szDeviceName[]
GLenum GLuint GLenum GLsizei const GLchar * buf
GLboolean GLboolean GLboolean GLboolean a
static HANDLE ULONG_PTR dwData
ULONG UDFPhSendIOCTL(IN ULONG IoControlCode, IN HANDLE DeviceObject, IN PVOID InputBuffer, IN ULONG InputBufferLength, OUT PVOID OutputBuffer, IN ULONG OutputBufferLength, IN BOOLEAN OverrideVerify, IN PVOID Dummy)
Send Device IO Controls to undelaying level via handle.
HANDLE CreatePublicEvent(PWCHAR EventName)
_JS_DEVICE_TYPE
CD/DVD-RW device types.
char *__cdecl mystrrchr(const char *string, int ch)
ULONG MyMessageBox(HINSTANCE hInst, HWND hWnd, LPCSTR pszFormat, LPCSTR pszTitle, UINT fuStyle,...)
BOOL GetRegUlong(LPSTR pszKey, LPSTR pszValue, LPDWORD pszData)
int __cdecl Exist(PCHAR path)
BOOL GetRegString(LPSTR pszKey, LPSTR pszValue, LPSTR pszData, DWORD dwBufSize)
Get string from registry by Key path and Value name.
PCHAR UDFGetDeviceName(PCHAR szDeviceName)
TCHAR * MediaTypeStrings[]
enum _JS_DEVICE_TYPE JS_DEVICE_TYPE
CD/DVD-RW device types.
DWORD WINAPI LauncherRoutine2(LPVOID lpParameter)
Start app with desired parameters.
BOOL SetOptUlong(PCHAR Path, PCHAR OptName, PULONG OptVal)
void *__cdecl mymemchr(const void *buf, int chr, size_t cnt)
BOOL Privilege(LPTSTR pszPrivilege, BOOL bEnable)
BOOL RegDelString(LPSTR pszKey, LPSTR pszValue)
ULONG UDFGetOptUlongInherited(PCHAR Drive, PCHAR OptName, PULONG OptVal, ULONG CheckDepth)
BOOL CheckCdrwFilter(BOOL ReInstall)
BOOL RegisterDword(LPSTR pszKey, LPSTR pszValue, DWORD dwData)
enum _JS_SERVICE_STATE JS_SERVICE_STATE
Service state constants.
_JS_SERVICE_STATE
Service state constants.
@ JS_SERVICE_RUNNING
Service is running.
@ JS_SERVICE_NOT_PRESENT
Service not installed.
@ JS_SERVICE_NOT_RUNNING
Service installed, but not running.
@ JS_ERROR_STATUS
Errror while taking service status.
HANDLE OpenOurVolume(PCHAR szDeviceName)
JS_SERVICE_STATE ServiceInfo(LPCTSTR ServiceName)
Return service status by service name.
BOOL GetOptUlong(PCHAR Path, PCHAR OptName, PULONG OptVal)
char *__cdecl mystrchr(const char *string, int ch)
ULONG drv_letter_to_index(WCHAR a)
BOOL RegisterString(LPSTR pszKey, LPSTR pszValue, LPSTR pszData, BOOLEAN MultiSz, DWORD size)
_In_ PDEVICE_OBJECT DeviceObject
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer