#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include "cabman.h"
Go to the source code of this file.
◆ Attr2Str()
Definition at line 126 of file cabman.cxx.
135{
136
139 else
141
142
145 else
147
148
151 else
153
154
157 else
159
162}
#define CAB_ATTRIB_HIDDEN
#define CAB_ATTRIB_READONLY
#define CAB_ATTRIB_SYSTEM
#define CAB_ATTRIB_ARCHIVE
Referenced by CCABManager::DisplayCabinet().
◆ Date2Str()
Definition at line 55 of file cabman.cxx.
64{
66
67
68 Str[0] = (
char)(
'0' + ((Date & 0x01E0) >> 5) / 10);
69 Str[1] = (
char)(
'0' + ((Date & 0x01E0) >> 5) % 10);
71
72 Str[3] = (
char)(
'0' + (Date & 0x001F) / 10);
73 Str[4] = (
char)(
'0' + (Date & 0x001F) % 10);
75
76 dw = 1980 + ((Date & 0xFE00) >> 9);
83}
REFIID LPVOID DWORD_PTR dw
Referenced by CCABManager::DisplayCabinet().
◆ main()
◆ Pad()
Definition at line 29 of file cabman.cxx.
41{
43
45
47 {
50 }
52}
_ACRTIMP size_t __cdecl strlen(const char *)
#define memcpy(s1, s2, n)
_In_ ULONG _In_ ULONG _In_ ULONG Length
◆ Time2Str()
Definition at line 86 of file cabman.cxx.
95{
96 bool PM;
99
100 Hour = ((
Time & 0xF800) >> 11);
101 PM = (Hour >= 12);
102 Hour %= 12;
103 if (Hour == 0)
104 Hour = 12;
105
106 if (Hour >= 10)
107 Str[0] = (
char)(
'0' + Hour / 10);
109 Str[1] = (
char)(
'0' + Hour % 10);
111
112 Str[3] = (
char)(
'0' + ((
Time & 0x07E0) >> 5) / 10);
113 Str[4] = (
char)(
'0' + ((
Time & 0x07E0) >> 5) % 10);
115
119
120 Str[8] = PM?
'p' :
'a';
123}
static PLARGE_INTEGER Time
Referenced by CCABManager::DisplayCabinet().